Skip to content

Commit 3254362

Browse files
authored
NEP-29 - require minimum Python version 3.11 (#7499)
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
1 parent fee1d37 commit 3254362

File tree

9 files changed

+17
-26
lines changed

9 files changed

+17
-26
lines changed

cirq-aqt/setup.py

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

cirq-core/cirq/_version.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@
1313
# limitations under the License.
1414

1515
"""Define version number here, read it from setup.py automatically,
16-
and warn users that the latest version of cirq uses python 3.11+"""
16+
and warn users that the latest version of Cirq uses Python 3.11+"""
1717

1818
import sys
1919

20-
# TODO: #6648 - update when internal docs build supports python3.11
21-
if sys.version_info < (3, 11 - 1, 0): # pragma: no cover
20+
if sys.version_info < (3, 11, 0): # pragma: no cover
2221
raise SystemError(
23-
"You installed the latest version of cirq but aren't on python 3.11+.\n"
22+
"You installed the latest version of Cirq but aren't on Python 3.11+.\n"
2423
'To fix this error, you need to either:\n'
2524
'\n'
26-
'A) Update to python 3.11 or later.\n'
25+
'A) Update to Python 3.11 or later.\n'
2726
'- OR -\n'
2827
'B) Explicitly install an older deprecated-but-compatible version '
29-
'of cirq (e.g. "python -m pip install cirq==1.5.0")'
28+
'of Cirq (e.g. "python -m pip install cirq==1.5.0")'
3029
)
3130

3231
__version__ = "1.6.0.dev0"

cirq-core/setup.py

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

cirq-google/cirq_google/_version.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@
1313
# limitations under the License.
1414

1515
"""Define version number here, read it from setup.py automatically,
16-
and warn users that the latest version of cirq uses python 3.11+"""
16+
and warn users that the latest version of Cirq uses Python 3.11+"""
1717

1818
import sys
1919

20-
# TODO: #6648 - update when internal docs build supports python3.11
21-
if sys.version_info < (3, 11 - 1, 0): # pragma: no cover
20+
if sys.version_info < (3, 11, 0): # pragma: no cover
2221
raise SystemError(
23-
"You installed the latest version of cirq but aren't on python 3.11+.\n"
22+
"You installed the latest version of Cirq but aren't on Python 3.11+.\n"
2423
'To fix this error, you need to either:\n'
2524
'\n'
26-
'A) Update to python 3.11 or later.\n'
25+
'A) Update to Python 3.11 or later.\n'
2726
'- OR -\n'
2827
'B) Explicitly install an older deprecated-but-compatible version '
29-
'of cirq (e.g. "python -m pip install cirq==1.5.0")'
28+
'of Cirq (e.g. "python -m pip install cirq==1.5.0")'
3029
)
3130

3231
__version__ = "1.6.0.dev0"

cirq-google/setup.py

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

cirq-ionq/setup.py

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

cirq-pasqal/setup.py

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

cirq-web/setup.py

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

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
author_email='[email protected]',
5050
maintainer="Google Quantum AI open-source maintainers",
5151
maintainer_email="[email protected]",
52-
# TODO: #6648 - update when internal docs build supports python3.11
53-
python_requires='>=3.10.0',
52+
python_requires='>=3.11.0',
5453
install_requires=requirements,
5554
extras_require={'dev_env': dev_requirements},
5655
license='Apache 2',

0 commit comments

Comments
 (0)