Browse Source

Merge pull request #466 from Kosmorro/chore/poetry-check

chore: validate Poetry configuration
pull/467/head
Deuchnord 2 weeks ago
committed by GitHub
parent
commit
bfb7c60922
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
3 changed files with 32 additions and 15 deletions
  1. +15
    -1
      .github/workflows/black.yml
  2. +1
    -1
      poetry.lock
  3. +16
    -13
      pyproject.toml

+ 15
- 1
.github/workflows/black.yml View File

@@ -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

+ 1
- 1
poetry.lock View File

@@ -613,4 +613,4 @@ tests = ["pytest", "pytest-cov"]
[metadata]
lock-version = "2.1"
python-versions = "^3.12"
content-hash = "961efffd4b8b692c1f6b5ab9a3d1626f9fbeeee7e4868b2d876d324cd60f3f1f"
content-hash = "8fbdf8d0016b2de7b23bfbaad5b1ce04f92072696c50c621113943eb80108a53"

+ 16
- 13
pyproject.toml View File

@@ -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 <jerome@deuchnord.fr>"]
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"


Loading…
Cancel
Save