From f5dcb020230b74d4cadb55a10ae127a1ed9db83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Thu, 25 Jun 2026 09:38:11 +0200 Subject: [PATCH] chore: update pyproject.toml --- pyproject.toml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1e7b676..35957a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,9 @@ -[tool.poetry] +[project] name = "kosmorrolib" version = "1.0.13" -authors = ["Jérôme Deuchnord "] +authors = [ + { name = "Jérôme Deuchnord", email = "jerome@deuchnord.fr" } +] homepage = "https://kosmorro.space/lib" repository = "https://github.com/Kosmorro/lib" documentation = "https://kosmorro.space/lib/doc" @@ -10,6 +12,20 @@ license = "AGPL-3.0-or-later" description = "A library to computes the ephemerides." readme = "README.md" +requires-python = "^3.8" +dependencies = [ + "skyfield (>=1.49,<2.0)", + + # handling Python constraints of older versions of NumPy + "numpy (>=1.0,<1.25) ; python_version == '3.8'", + "numpy (>=2.0,<2.1) ; python_version == '3.9'", + "numpy (>=2.1,<2.3) ; python_version == '3.10'", + "numpy (>=2.3,<3.0) ; python_version >= '3.11'", + + "skyfield-data (>=7.0.0)", + "python-dateutil (>=2.8,<3.0)" +] + classifiers = [ "Development Status :: 5 - Production/Stable", "Topic :: Scientific/Engineering :: Astronomy", @@ -19,16 +35,6 @@ classifiers = [ ] [tool.poetry.dependencies] -python = "^3.8" -skyfield = "^1.49" -numpy = [ - { version = "<1.25", python = "3.8.*" }, - { version = "<2.1", python = "3.9.*" }, - { version = "<2.3", python = "3.10.*" }, - { version = "^2.3", python = ">=3.11" }, -] -skyfield-data = "*" -python-dateutil = "^2.8" [tool.poetry.group.dev.dependencies] black = ">23.1,<25.0"