Skip to content

Commit

Permalink
maint: add support for python 3.13 and relax constraint on numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Oct 15, 2024
1 parent 1ce2c6a commit dffc32b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
18 changes: 15 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion python/mocpy/fmoc/fmoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/mocpy/moc/moc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
<BLANKLINE>
Number of WCS axes: 2
Expand Down

0 comments on commit dffc32b

Please sign in to comment.