Skip to content
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

Update CI with np2 breaking change and python new version. #1

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

nennigb
Copy link
Owner

@nennigb nennigb commented Jul 22, 2024

  1. Update python versions and remove old versions
  2. Numpy 2.0 change the default printing options
    see https://numpy.org/neps/nep-0051-scalar-representation.html
    This change crash doctests on scalars. For instance:

legacy:

>>> 2+np.int64(2)
4

New style:

>>> 2+np.int64(2)
np.int64(4)

This PR propose to use

np.set_printoptions(legacy="1.25")

Only in the test runner file, here test.py.

Perhaps we could change the format in doctest when numpy 2 will be more common.

Change the default numpy 2 printing options that crash
doctests on scalars.
  - Remove 3.6 and 3.7 now in end of life.
  - update windows test to 3.11
@nennigb nennigb added the CI Improvements or evolution in CI. label Jul 22, 2024
@nennigb nennigb self-assigned this Jul 22, 2024
@nennigb nennigb merged commit 37cb192 into master Jul 22, 2024
12 checks passed
@nennigb nennigb deleted the fix-test-np2 branch July 22, 2024 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Improvements or evolution in CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant