-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Trivial nits:
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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
'To fix this error, you need to either:\n' | ||
|
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.
Just curious: why do this as
11 - 1
?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.
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 than3.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.