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

NEP-29 - enforce minimum Python version 3.10 #6591

Merged
merged 5 commits into from
May 9, 2024

Conversation

pavoljuhas
Copy link
Collaborator

@pavoljuhas pavoljuhas commented May 9, 2024

  • Raise exception if running with Python <= 3.9.x
  • Clean up checks and notes relevant for old Pythons
  • Bump up to numpy~=1.22 which is effectively the minimum version
    that works with Python 3.10. We are a bit more permissive than
    NEP 29 which suggests numpy-1.23+.

Fixes: #6463
Ref: https://numpy.org/neps/nep-0029-deprecation_policy.html

numpy-1.22.0 is the first version that has binary wheels for Python 3.10
and is compatible with transitive requirements from cirq-all.txt.

We are a bit more tolerant than NEP 29 which suggests numpy-1.23+.
Copy link

codecov bot commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.79%. Comparing base (bfba965) to head (1aa3173).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6591      +/-   ##
==========================================
- Coverage   97.79%   97.79%   -0.01%     
==========================================
  Files        1124     1124              
  Lines       95705    95704       -1     
==========================================
- Hits        93595    93594       -1     
  Misses       2110     2110              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pavoljuhas pavoljuhas merged commit f6bfb7f into quantumlib:main May 9, 2024
34 checks passed
@pavoljuhas pavoljuhas deleted the require-python-3.10 branch May 9, 2024 21:52
jselig-rigetti pushed a commit to jselig-rigetti/Cirq that referenced this pull request May 28, 2024
- Raise exception if running with Python <= 3.9.x
- Clean up checks and notes relevant for old Pythons
- Bump up to numpy~=1.22 which is effectively the minimum version
  that works with Python 3.10.  We are a bit more permissive than
  NEP 29 which suggests numpy-1.23+.

Fixes: quantumlib#6463
Ref: https://numpy.org/neps/nep-0029-deprecation_policy.html
@pavoljuhas pavoljuhas mentioned this pull request May 28, 2024
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop python 3.9
3 participants