Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish to PyPI

permissions: {}

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.9"

- name: Install Poetry
uses: snok/install-poetry@v1.4.1
with:
version: 1.2.2
virtualenvs-in-project: true

- name: Build package
run: poetry build

- name: Store distribution artifacts
uses: actions/upload-artifact@v7
with:
name: dist
path: dist/

publish:
runs-on: ubuntu-latest
needs: build
environment: pypi
permissions:
Comment thread
MetinSa marked this conversation as resolved.
id-token: write
steps:
- name: Download distribution artifacts
uses: actions/download-artifact@v7
with:
name: dist
path: dist/
Comment thread
MetinSa marked this conversation as resolved.

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
36 changes: 18 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "zodipy"
version = "1.1.2"
version = "1.1.3"
description = "A Python package for zodiacal light simulations"
authors = ["Metin San <metinisan@gmail.com>"]
readme = "README.md"
Expand All @@ -10,7 +10,7 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engingiteering :: Astronomy",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
keywords = [
Expand Down Expand Up @@ -74,21 +74,21 @@ filterwarnings = [

[tool.ruff]
lint.select = [
"F",
"D",
"F",
"E",
"W",
"C",
"B",
"I",
"YTT",
"ANN",
"S",
"BLE",
"A",
"C4",
"EM",
"F",
"D",
"F",
"E",
"W",
"C",
"B",
"I",
"YTT",
"ANN",
"S",
"BLE",
"A",
"C4",
"EM",
"ISC",
"ICN",
"G",
Expand Down Expand Up @@ -121,4 +121,4 @@ lint.pydocstyle.convention = "google"

[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
"docs/*" = ["INP001", "T201", "S101"]
"docs/*" = ["INP001", "T201", "S101"]
Loading