From baa88ccab4527a50e25652edbd9ae7b8081173c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Wed, 24 Jun 2026 22:51:58 +0200 Subject: [PATCH 1/2] chore: validate Poetry configuration --- .github/workflows/black.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 205aa6d..b6517bb 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,4 +1,4 @@ -name: Code style +name: Checks on: push: @@ -17,3 +17,17 @@ jobs: with: python-version: '3.x' - uses: psf/black@stable + + poetry-check: + runs-on: ubuntu-latest + + name: Poetry + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-python@v6 + with: + python-version: '3.x' + - run: | + pip install -U pip poetry + poetry install + - run: poetry check --strict From b7410fe1dc2f8638861aa4673b4ebcfb86d913d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Wed, 24 Jun 2026 23:06:20 +0200 Subject: [PATCH 2/2] dist: update pyproject --- poetry.lock | 2 +- pyproject.toml | 29 ++++++++++++++++------------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/poetry.lock b/poetry.lock index d662ea5..9a23237 100644 --- a/poetry.lock +++ b/poetry.lock @@ -613,4 +613,4 @@ tests = ["pytest", "pytest-cov"] [metadata] lock-version = "2.1" python-versions = "^3.12" -content-hash = "961efffd4b8b692c1f6b5ab9a3d1626f9fbeeee7e4868b2d876d324cd60f3f1f" +content-hash = "8fbdf8d0016b2de7b23bfbaad5b1ce04f92072696c50c621113943eb80108a53" diff --git a/pyproject.toml b/pyproject.toml index db2ed31..e83b59e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,29 +1,32 @@ -[tool.poetry] +[project] name = "kosmorro" version = "1.0.2" description = "A program to compute the ephemerides." -authors = ["Jérôme Deuchnord "] +authors = [ + { "name" = "Jérôme Deuchnord", "email" = "jerome@deuchnord.fr>" } +] license = "AGPL-3.0-or-later" readme = "README.md" +requires-python = "^3.12" +dependencies = [ + "tabulate (>=0.8,<0.11)", + "termcolor (>=3.0,<4.0)", + "kosmorrolib (>=1.0,<2.0)", + "python-dateutil (>=2.8,<3.0)", + "Babel (>=2.9,<3.0)", + "pytz (>=2025.2,<2027.0)", + "argcomplete (>=3.6.2,<4.0)", +] + include = [ { path = "kosmorro/locales/**/*.mo", format=["sdist", "wheel"] }, { path = "kosmorro/assets", format=["sdist", "wheel"] }, ] -[tool.poetry.scripts] +[project.scripts] kosmorro = 'kosmorro.__main__:main' -[tool.poetry.dependencies] -python = "^3.12" -tabulate = ">=0.8,<0.11" -termcolor = "^3.0" -kosmorrolib = "^1.0" -python-dateutil = "^2.8" -Babel = "^2.9" -pytz = ">=2025.2,<2027.0" -argcomplete = "^3.6.2" - [tool.poetry.group.dev.dependencies] black = ">=24.8,<27.0" pytest = ">=8.3,<10.0"