Skip to content

Commit 609d93d

Browse files
authored
Permit installation for Python 3.10 (docs build only) (#7445)
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
1 parent 73ede52 commit 609d93d

File tree

11 files changed

+21
-11
lines changed

11 files changed

+21
-11
lines changed

cirq-aqt/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
author_email='[email protected]',
4747
maintainer="Google Quantum AI open-source maintainers",
4848
maintainer_email="[email protected]",
49-
python_requires='>=3.11.0',
49+
# TODO: #6648 - update when internal docs build supports python3.11
50+
python_requires='>=3.10.0',
5051
install_requires=requirements,
5152
license='Apache 2',
5253
description=description,

cirq-core/cirq/_version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
import sys
1919

20-
if sys.version_info < (3, 11, 0): # pragma: no cover
20+
# TODO: #6648 - update when internal docs build supports python3.11
21+
if sys.version_info < (3, 11 - 1, 0): # pragma: no cover
2122
raise SystemError(
2223
"You installed the latest version of cirq but aren't on python 3.11+.\n"
2324
'To fix this error, you need to either:\n'

cirq-core/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
author_email='[email protected]',
5050
maintainer="The Quantum AI open-source software maintainers",
5151
maintainer_email="[email protected]",
52-
python_requires=('>=3.11.0'),
52+
# TODO: #6648 - update when internal docs build supports python3.11
53+
python_requires='>=3.10.0',
5354
install_requires=requirements,
5455
extras_require={'contrib': contrib_requirements},
5556
license='Apache 2',

cirq-google/cirq_google/_version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
import sys
1919

20-
if sys.version_info < (3, 11, 0): # pragma: no cover
20+
# TODO: #6648 - update when internal docs build supports python3.11
21+
if sys.version_info < (3, 11 - 1, 0): # pragma: no cover
2122
raise SystemError(
2223
"You installed the latest version of cirq but aren't on python 3.11+.\n"
2324
'To fix this error, you need to either:\n'

cirq-google/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
author_email='[email protected]',
4848
maintainer="Google Quantum AI open-source maintainers",
4949
maintainer_email="[email protected]",
50-
python_requires='>=3.11.0',
50+
# TODO: #6648 - update when internal docs build supports python3.11
51+
python_requires='>=3.10.0',
5152
install_requires=requirements,
5253
license='Apache 2',
5354
description=description,

cirq-ionq/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
author_email='[email protected]',
4646
maintainer="Google Quantum AI open-source maintainers",
4747
maintainer_email="[email protected]",
48-
python_requires='>=3.11.0',
48+
# TODO: #6648 - update when internal docs build supports python3.11
49+
python_requires='>=3.10.0',
4950
install_requires=requirements,
5051
license='Apache 2',
5152
description=description,

cirq-pasqal/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
author_email='[email protected]',
4545
maintainer="Google Quantum AI open-source maintainers",
4646
maintainer_email="[email protected]",
47-
python_requires='>=3.11.0',
47+
# TODO: #6648 - update when internal docs build supports python3.11
48+
python_requires='>=3.10.0',
4849
install_requires=requirements,
4950
license='Apache 2',
5051
description=description,

cirq-rigetti/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
author_email='[email protected]',
4646
maintainer="Google Quantum AI open-source maintainers",
4747
maintainer_email="[email protected]",
48-
python_requires='>=3.11.0',
48+
# TODO: #6648 - update when internal docs build supports python3.11
49+
python_requires='>=3.10.0',
4950
install_requires=requirements,
5051
license='Apache 2',
5152
description=description,

cirq-web/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
author_email='[email protected]',
4343
maintainer="Google Quantum AI open-source maintainers",
4444
maintainer_email="[email protected]",
45-
python_requires='>=3.11.0',
45+
# TODO: #6648 - update when internal docs build supports python3.11
46+
python_requires='>=3.10.0',
4647
install_requires=requirements,
4748
license='Apache 2',
4849
description=description,

dev_tools/modules_test_data/mod1/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author_email='[email protected]',
2525
maintainer="The Quantum AI open-source software maintainers",
2626
maintainer_email="[email protected]",
27-
python_requires=('>=3.11.0'),
27+
python_requires='>=3.11.0',
2828
install_requires=requirements,
2929
license='Apache 2',
3030
packages=pack1_packages,

0 commit comments

Comments
 (0)