Skip to content

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

Merged
pavoljuhas merged 4 commits intoquantumlib:mainfrom
pavoljuhas:allow-python-3.10
Jun 28, 2025
Merged

Permit installation for Python 3.10 (docs build only)#7445
pavoljuhas merged 4 commits intoquantumlib:mainfrom
pavoljuhas:allow-python-3.10

Conversation

@pavoljuhas
Copy link
Copy Markdown
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
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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.


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
Copy Markdown
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
Copy Markdown
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.

# 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
Copy Markdown
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
Copy Markdown
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
ddddddanni pushed a commit to ddddddanni/Cirq that referenced this pull request Jul 15, 2025
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
pavoljuhas added a commit to pavoljuhas/Cirq that referenced this pull request Jul 16, 2025
Roll forward of quantumlib#7338. Internal documentation build is fixed for Python 3.11.

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

This reverts commit 609d93d.

Fixes quantumlib#6648
github-merge-queue bot pushed a commit that referenced this pull request Jul 16, 2025
NEP-29 require minimum Python version 3.11

Roll forward of #7338 because internal documentation build can now
run with Python 3.11.  A few capitalization fixups are here too.

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

This reverts commit 609d93d.

Fixes #6648
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