From dffc32bb34df7bc5e3b19a36cc7429175161d6fb Mon Sep 17 00:00:00 2001 From: MARCHAND MANON Date: Tue, 15 Oct 2024 11:23:19 +0200 Subject: [PATCH] maint: add support for python 3.13 and relax constraint on numpy --- pyproject.toml | 18 +++++++++++++++--- python/mocpy/fmoc/fmoc.py | 2 +- python/mocpy/moc/moc.py | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index aa47b0a2..27261f6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ requires-python = ">=3.8" dependencies = [ "astropy<5.3; python_version == '3.8'", "astropy; python_version > '3.8'", - "numpy<2.0", + "numpy", "matplotlib", # Used in fill and border "cdshealpix>=0.6.4", # Used in fill and border "networkx>=2.5", # Used in get_boundaries @@ -18,8 +18,17 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Rust", "License :: OSI Approved :: BSD License", - "Topic :: Scientific/Engineering :: Astronomy" + "Topic :: Scientific/Engineering :: Astronomy", + "Intended Audience :: Science/Research", + "Intended Audience :: Education", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] +keywords=["astronomy", "astrophysics", "HEALPix"] [project.optional-dependencies] # optional to load FITS from URLs @@ -58,7 +67,10 @@ notebooks = [ ] [project.urls] -repository = "https://github.com/cds-astro/mocpy" +Documentation = "https://cds-astro.github.io/mocpy/" +Repository = "https://github.com/cds-astro/mocpy" +Issues = "https://github.com/cds-astro/mocpy/issues" +Changelog = "https://github.com/cds-astro/mocpy/blob/master/CHANGELOG.md" # Build a mocpy-x.x.x.tar.gz containing sources (from maturin). [build-system] diff --git a/python/mocpy/fmoc/fmoc.py b/python/mocpy/fmoc/fmoc.py index 2abcdd48..5fa23202 100644 --- a/python/mocpy/fmoc/fmoc.py +++ b/python/mocpy/fmoc/fmoc.py @@ -44,7 +44,7 @@ def max_order(self): -------- >>> from mocpy import FrequencyMOC >>> fmoc = FrequencyMOC.from_json({8: [12, 14, 16], 22: [120, 121, 122]}) - >>> fmoc.max_order + >>> print(fmoc.max_order) 22 """ depth = mocpy.get_fmoc_depth(self.store_index) diff --git a/python/mocpy/moc/moc.py b/python/mocpy/moc/moc.py index c7178695..b9edfdb3 100644 --- a/python/mocpy/moc/moc.py +++ b/python/mocpy/moc/moc.py @@ -2346,7 +2346,7 @@ def wcs( >>> import matplotlib.pyplot as plt >>> moc = MOC.from_str("2/2-25 28 29 4/0 6/") >>> fig = plt.figure() - >>> moc.wcs(fig) # DOCTEST: +IGNORE_RESULT + >>> moc.wcs(fig) # doctest: +SKIP WCS Keywords Number of WCS axes: 2