From 2b16e813e184a996679e6388719d50c06dffdf7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Sat, 3 Aug 2024 12:37:00 +0200 Subject: [PATCH] fix(dependencies): force using Numpy 2.0 --- kosmorrolib/events.py | 6 +++--- pyproject.toml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kosmorrolib/events.py b/kosmorrolib/events.py index 7bbcb14..f999572 100644 --- a/kosmorrolib/events.py +++ b/kosmorrolib/events.py @@ -250,7 +250,7 @@ def _search_maximal_elongations( EventType.MAXIMAL_ELONGATION, [planet], translate_to_timezone(time.utc_datetime(), timezone), - details={"deg": elongation}, + details={"deg": float(elongation)}, ) ) @@ -299,7 +299,7 @@ def _search_apogee(to_aster: Object, from_aster: Object = EARTH) -> callable: EventType.APOGEE, [to_aster], translate_to_timezone(time.utc_datetime(), timezone), - details={"distance_km": distances[i]}, + details={"distance_km": float(distances[i])}, ) ) @@ -338,7 +338,7 @@ def _search_perigee(aster: Object, from_aster: Object = EARTH) -> callable: EventType.PERIGEE, [aster], translate_to_timezone(time.utc_datetime(), timezone), - details={"distance_km": distances[i]}, + details={"distance_km": float(distances[i])}, ) ) diff --git a/pyproject.toml b/pyproject.toml index 23db412..c805ade 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,12 +20,12 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.8" -skyfield = "^1.21" +skyfield = "^1.49" numpy = [ { version = "<1.25", python = "3.8.*" }, - { version = "^1.25", python = ">=3.9,<3.13" }, + { version = "^2.0", python = ">=3.9,<3.13" }, ] -skyfield-data = ">=3,<6" +skyfield-data = "*" python-dateutil = "^2.8" [tool.poetry.group.dev.dependencies]