-
Notifications
You must be signed in to change notification settings - Fork 25
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
CI and Build: Updated setup.py and continuous integration configuration #298
Conversation
This PR also fixes support of Ready for review. |
Indeed a tough one ... |
@@ -122,8 +122,7 @@ def testFcidecomp(self): | |||
self.assertTrue(data.shape[0] == 60, "Incorrect shape") | |||
self.assertTrue(data.shape[1] == 30, "Incorrect shape") | |||
self.assertTrue(data.dtype == expected_data.dtype, "Incorrect type") | |||
self.assertTrue(numpy.alltrue(data == expected_data), | |||
"Incorrect values read") | |||
self.assertTrue(numpy.all(data == expected_data), "Incorrect values read") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the one hand, you specify numpy2 is not supported (in .github/workflows/release.yml
), and here you make it compatible ...
Is there a list of plugins which are not yet numpy2-compatible ? Such a list should be made and updated when the compatibility is validated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are run twice each time:
- a first time with the latest versions of
h5py
&numpy
, so as of today, numpy2 if installed with--pre
- a second time with the "oldest supported" version of h5py for the given version of Python, and in this case I added
numpy<2
because those versions ofh5py
do not support numpy2.
The numpy<2
in the CI configuration files are for the later case.
Beside the 2 comments LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for the review! |
This PR aims at updating/simplifying the
setuptools
and CI configs and removing unnecessary code.The main breaking change is the removal of
setup.py build
command line arguments that was deprecated in favor of environment variables.Another change is the requirement of
setuptools>62.4.0
andpy-cpuinfo==9.0.0
, but that won't be visible when installing withpip
.I would include this in a major release.
Details of the changes:
setuptools>62.4.0
: allow usingpyproject.toml
and removing fallbacks todistutils
setup.py
topyproject.toml
ci/info_platform.py
[dev]
to[doc]
and use it instead ofrequirements.txt
to avoid duplicating the list of dependenciescpuinfo.py
: This is only needed when building withpython setup.py build
(as issetuptools
). In this case, a log indicates to installpy-cpuinfo
.setup.py build
command line arguments since this is a deprecated feature ofsetuptools
.setup.py