Skip to content

Commit 301f82c

Browse files
committed
Increase min Python version to 3.11
Cirq 1.6 has a Python minimum version of 3.11, which means this can no longer test on 3.10.
1 parent d11f826 commit 301f82c

6 files changed

Lines changed: 8 additions & 9 deletions

File tree

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
:width: 75%
44
:align: center
55

6-
.. |python| image:: https://img.shields.io/badge/Python-3.10+-fcbc2c.svg?style=flat-square&logo=python&logoColor=white
7-
:alt: Compatible with Python versions 3.10 and higher
6+
.. |python| image:: https://img.shields.io/badge/Python-3.11+-fcbc2c.svg?style=flat-square&logo=python&logoColor=white
7+
:alt: Compatible with Python versions 3.11 and higher
88
:target: https://www.python.org/downloads/
99

1010
.. |license| image:: https://img.shields.io/badge/License-Apache%202.0-3c60b1.svg?logo=opensourceinitiative&logoColor=white&style=flat-square

dev_tools/conf/.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ prefer-stubs=no
112112

113113
# Minimum Python version to use for version dependent checks. Will default to
114114
# the version used to run pylint.
115-
py-version=3.10
115+
py-version=3.11
116116

117117
# Discover python modules and packages in the file system subtree.
118118
recursive=yes

dev_tools/requirements/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG PYTHON_VERSION=3.10
15+
ARG PYTHON_VERSION=3.11
1616
FROM python:${PYTHON_VERSION}
1717

1818
WORKDIR /pip-compile
@@ -26,4 +26,4 @@ COPY deps/ ./deps/
2626
COPY run-pip-compiles.py ./
2727

2828
ARG PLATFORM="default"
29-
RUN python run-pip-compiles.py --platform $PLATFORM
29+
RUN python run-pip-compiles.py --platform $PLATFORM

dev_tools/requirements/re-pip-compile-in-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ docker rm -v "$container_id"
3737

3838
# Do it again for `max_compat`.
3939
# Set the docker build args; use a unique image name; use the correct output directory.
40-
docker build -t openfermion-pip-compile-max-compat --build-arg='PYTHON_VERSION=3.10' --build-arg='PLATFORM=max_compat' "$SCRIPT_DIR"
40+
docker build -t openfermion-pip-compile-max-compat --build-arg='PYTHON_VERSION=3.11' --build-arg='PLATFORM=max_compat' "$SCRIPT_DIR"
4141
container_id=$(docker create openfermion-pip-compile-max-compat)
4242
docker cp "$container_id:/pip-compile/max_compat" "$SCRIPT_DIR/"
4343
docker rm -v "$container_id"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414

1515
[tool.black]
1616
line-length = 100
17-
target_version = ['py310', 'py311', 'py312', 'py313']
17+
target_version = ['py311', 'py312', 'py313']
1818
skip-string-normalization = true
1919
skip-magic-trailing-comma = true

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
maintainer_email='quantum-oss-maintainers@google.com',
4848
description=('The electronic structure package for quantum computers.'),
4949
long_description=long_description,
50-
python_requires='>=3.10.0',
50+
python_requires='>=3.11.0',
5151
install_requires=requirements,
5252
extras_require={'resources': resource_requirements},
5353
packages=find_packages(where='src'),
@@ -70,7 +70,6 @@
7070
'Operating System :: Microsoft :: Windows',
7171
'Operating System :: POSIX :: Linux',
7272
'Programming Language :: Python :: 3',
73-
'Programming Language :: Python :: 3.10',
7473
'Programming Language :: Python :: 3.11',
7574
'Programming Language :: Python :: 3.12',
7675
'Programming Language :: Python :: 3.13',

0 commit comments

Comments
 (0)