Skip to content

Require numpy >= 1.24#250

Merged
mhvk merged 2 commits into
liberfa:mainfrom
eerovaher:drop-np-123
May 19, 2026
Merged

Require numpy >= 1.24#250
mhvk merged 2 commits into
liberfa:mainfrom
eerovaher:drop-np-123

Conversation

@eerovaher
Copy link
Copy Markdown
Contributor

@eerovaher eerovaher commented May 15, 2026

With older numpy versions ufuncs without parameters do not work. There are several such functions in pyerfa, so those numpy versions are not being properly supported anyways. SPEC 0 allows dropping support for numpy < 2, so we will still be very generous with our requirements.

With older `numpy` versions ufuncs without parameters do not work. There
are several such functions in `pyerfa`, so those `numpy` versions were
not properly supported anyways.
@avalentino avalentino requested a review from mhvk May 15, 2026 14:32
Copy link
Copy Markdown
Contributor

@mhvk mhvk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is indeed overdue. Only one request: could you add an entry in CHANGES.rst? Those entries will be put in the release notes (and really we should have a release soon, so this is another good reason to do so).

Comment thread CHANGES.rst
====================
- Let multi-output functions now return a ``namedtuple`` so that
the various results can be accessed by attribute. [gh-176]
- ``pyerfa`` now requires Python 3.10 or later. [gh-185]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the current change log pyerfa refers to itself in at least three different ways:

- PyERFA now only uses the Python limited API. [gh-94]

- Ensured pyerfa works on PyPy too with the Python limited API. [gh-120]

compilation of packages that have ``pyerfa`` as a dependency.

I chose to use pyerfa because that is what has been used most recently.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't this PR about numpy? In itself fine to mention python too!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR only updates the numpy requirement, but I noticed that I had forgotten to add the PR number to the erfa.cal2jd() bugfix entry, and then I thought if I am updating the change log I might as well add the entry for the Python version requirement too.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry, I had missed the numpy addition further down, so all is OK.

Comment thread CHANGES.rst
====================
- Let multi-output functions now return a ``namedtuple`` so that
the various results can be accessed by attribute. [gh-176]
- ``pyerfa`` now requires Python 3.10 or later. [gh-185]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry, I had missed the numpy addition further down, so all is OK.

@mhvk mhvk merged commit 926771a into liberfa:main May 19, 2026
28 checks passed
@eerovaher eerovaher deleted the drop-np-123 branch May 19, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants