Skip to content

Support Numpy 2 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 28, 2024
Merged

Support Numpy 2 #8

merged 3 commits into from
Sep 28, 2024

Conversation

smith120bh
Copy link
Contributor

It looks like Numpy 2 ... just works on the package you've written. However, it's technically blocked right now because pyproject.toml specificies "numpy": "^1.25.1".

In this PR, I'm suggesting swapping the syntax for all dependencies to use >= instead of ^ so as to allow next major versions - at least until tests or users advise that those higher versions do not work for some reason. I'm happy to restrict this back to only swapping numpy however, if you'd prefer to lock major versions for pytest and black.

@m-clare
Copy link
Owner

m-clare commented Sep 28, 2024

LGTM. I'd pinned the dependencies based on what https://github.com/robbievanleeuwen/section-properties required, but it looks like it's fine with Numpy > 2.

@m-clare m-clare merged commit 0eafb11 into m-clare:main Sep 28, 2024
16 checks passed
@smith120bh smith120bh deleted the supportNumpy2 branch September 29, 2024 02:08
@smith120bh
Copy link
Contributor Author

smith120bh commented Sep 29, 2024

I'm playing around locally with getting section-properties to work with numpy2 as well - it is more efficient, especially for cython packages - but I'm running into some weird incompatibilities that I've not figured out yet. Nevertheless, one of the incompatibilities was cytriangle's dependency lock, so this PR is a step toward numpy2 for section-properties as well :-)

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.

2 participants