Skip to content

Permit installation for Python 3.10 (docs build only) #7445

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
merged 4 commits into from
Jun 28, 2025

Conversation

pavoljuhas
Copy link
Collaborator

Problem: Internal documentation build does not support python3.11 yet.

Solution: Allow installation for Python 3.10 so that docs build can
use latest development releases.

Related to #6648

Problem: Internal documentation build does not support python3.11 yet.

Solution: Allow installation for Python 3.10 so that docs build can
use latest development releases.

Related to quantumlib#6648
@github-actions github-actions bot added the size: S 10< lines changed <50 label Jun 27, 2025
Copy link

codecov bot commented Jun 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.70%. Comparing base (73ede52) to head (7b4cb96).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7445   +/-   ##
=======================================
  Coverage   98.70%   98.70%           
=======================================
  Files        1119     1119           
  Lines       98445    98445           
=======================================
  Hits        97168    97168           
  Misses       1277     1277           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pavoljuhas pavoljuhas requested a review from mhucka June 27, 2025 23:48
Copy link
Contributor

@mhucka mhucka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with trivial optional nits.

@@ -17,7 +17,8 @@

import sys

if sys.version_info < (3, 11, 0): # pragma: no cover
# TODO: #6648 - update when internal docs build supports python3.11
if sys.version_info < (3, 11 - 1, 0): # pragma: no cover
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: why do this as 11 - 1?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: why do this as 11 - 1?

Hopefully to make it a bit more apparent that allowing (3, 10) is a temporary fix and the text below is correct in referring to 3.11 rather than 3.10. Basically this PR secretly allows 3.10 without any advice or guarantee for its support.

I hope to revert it ASAP - subject to docs build.

@@ -17,7 +17,8 @@

import sys

if sys.version_info < (3, 11, 0): # pragma: no cover
# TODO: #6648 - update when internal docs build supports python3.11
if sys.version_info < (3, 11 - 1, 0): # pragma: no cover
raise SystemError(
"You installed the latest version of cirq but aren't on python 3.11+.\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trivial nits:

  • 3.11 → 3.10
  • cirq → Cirq
  • python → Python

Same in cirq_google/_version.py.

It's up to you if you if you think this will be in here for a short time. If it goes into release 1.6.0, though, I'd probably change them.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack - I'd leave the capitalization fixes for later so this PR can be reverted without undoing useful updates.

@pavoljuhas pavoljuhas added this pull request to the merge queue Jun 28, 2025
Merged via the queue into quantumlib:main with commit 609d93d Jun 28, 2025
35 checks passed
@pavoljuhas pavoljuhas deleted the allow-python-3.10 branch June 28, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants