Skip to content

Bump Numpy required version to 1.20 #1192

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

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Oct 16, 2022

We use the named parameter shape of numpy.empty_like:

It had been introduced in Numpy 1.17.0:
https://numpy.org/doc/stable/reference/generated/numpy.empty_like.html

According to NEP 29, NumPy 1.20+ is currently supported:
https://numpy.org/neps/nep-0029-deprecation_policy.html

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/tutorial.rst
  • Changes documented in docs/release.rst
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@DimitriPapadopoulos DimitriPapadopoulos changed the title Bump Numpty required version to 1.17 Bump Numpy required version to 1.17 Oct 16, 2022
@DimitriPapadopoulos
Copy link
Contributor Author

Perhaps test against the oldest supported version instead of / in addition to the latest version:

# Break this out into a separate file to allow testing against
# different versions of numpy. This file should pin to the latest
# numpy version.
numpy==1.23.4

@DimitriPapadopoulos DimitriPapadopoulos changed the title Bump Numpy required version to 1.17 Bump Numpy required version to 1.20 Oct 18, 2022
@jakirkham jakirkham enabled auto-merge (squash) October 18, 2022 21:47
@jakirkham
Copy link
Member

Thanks Dimitri! 🙏

Merging once CI passes 😄

@codecov
Copy link

codecov bot commented Oct 18, 2022

Codecov Report

Merging #1192 (b99505d) into main (da7ba0c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1192   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files          35       35           
  Lines       14135    14136    +1     
=======================================
+ Hits        14134    14135    +1     
  Misses          1        1           
Impacted Files Coverage Δ
zarr/util.py 100.00% <0.00%> (ø)

@jakirkham jakirkham merged commit c8cd89d into zarr-developers:main Oct 19, 2022
@DimitriPapadopoulos DimitriPapadopoulos deleted the numpy.empty_like_shape branch October 19, 2022 07:04
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