-
Notifications
You must be signed in to change notification settings - Fork 12
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
Numpy 2.0 + scipy + matplotlib pre-release workflow #89
Conversation
for more information, see https://pre-commit.ci
@smoia I could use your input here. This import mechanism you have in the root Lines 13 to 18 in a3ff818
is causing deprecation warnings (or even If you really want to have all functions/members accessible from the Alternatively, I can fix the circular import by keeping the import at the root level ( |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #89 +/- ##
==========================================
+ Coverage 90.85% 90.90% +0.05%
==========================================
Files 14 15 +1
Lines 1236 1287 +51
Branches 0 310 +310
==========================================
+ Hits 1123 1170 +47
- Misses 113 117 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@smoia If you agree with the proposed import changes above, this PR is good to go. |
@mscheltienne do you still need any action on the admin side? I see all checks are successful, but I don't know if you need something more? |
@smoia Looks like the codecov token is already setup, the uploads did not fail (CI would have been green anyway, |
Nice - can we change the default for failing to true so that we can catch issues if they happen? As for import, breaking API at this stage of development is fine, we just need to signal it with different labels. |
Actually, any reason conftest needs to move to root, beside emulation of other packages? |
yes, but in practice it's not a great idea and that's why the default is
To apply the configuration to all tests. For now, it's not that important since you have all tests in the same folder, but it's common to have:
And in this case, if |
I see, makes sense! I'll have a look this weekend at all the changes! Thank you Mathieu! |
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.
Feels like much more/slightly different than what described in the title , but thank you for looking into all of this @mscheltienne !
Just a quick change that is more style than anything else.
Is it ready to merge or would you like to do more?
Good to merge, |
I'll merge as is and open a second PR to replace |
Closes #88
pytest
to8.0
and above.pytest
introduced backward incompatible changes especially in the handling of warnings throughpytest.warns
.conftest.py
to the root of the repository, mimicking the structure from other scientific python project (numpy
,scipy
,mne
, ...)pytest
to turn warnings into errors, and add structure inconftest.py
to ignore warnings (example here in MNE: https://github.com/mne-tools/mne-python/blob/90067893e330c1941c055be22bc5f442ad320ec3/mne/conftest.py#L129-L210)numpy 2.0
and its numerous API/ABI breaks.compat
workflow on github actionsreadfp
(since python 3.2..) fromconfigparser
loader.find_module
np.NINF
andnp.trapz
codecov
configurationChange Type
bugfix
(+0.0.1)minor
(+0.1.0)major
(+1.0.0)refactoring
(no version update)test
(no version update)infrastructure
(no version update)documentation
(no version update)other