Skip to content

Commit 2700f95

Browse files
Remove python3.9 from CI tests (#6495)
1 parent dc1065d commit 2700f95

File tree

12 files changed

+33
-33
lines changed

12 files changed

+33
-33
lines changed

.github/workflows/ci-daily.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Pytest Ubuntu
1515
strategy:
1616
matrix:
17-
python-version: ['3.9', '3.10', '3.11']
17+
python-version: ['3.10', '3.11']
1818
runs-on: ubuntu-20.04
1919
steps:
2020
- uses: actions/checkout@v4
@@ -44,7 +44,7 @@ jobs:
4444
name: Pytest Windows
4545
strategy:
4646
matrix:
47-
python-version: ['3.9', '3.10', '3.11']
47+
python-version: ['3.10', '3.11']
4848
runs-on: windows-2019
4949
steps:
5050
- uses: actions/checkout@v4
@@ -70,7 +70,7 @@ jobs:
7070
name: Pytest MacOS
7171
strategy:
7272
matrix:
73-
python-version: ['3.9', '3.10', '3.11']
73+
python-version: ['3.10', '3.11']
7474
runs-on: macos-latest
7575
steps:
7676
- uses: actions/checkout@v4

.github/workflows/ci-weekly.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-python@v5
2525
with:
26-
python-version: '3.9'
26+
python-version: '3.10'
2727
architecture: 'x64'
2828
- name: Install requirements
2929
run: pip install -r dev_tools/requirements/isolated-base.env.txt

.github/workflows/ci.yml

+17-17
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- uses: actions/setup-python@v5
2222
with:
23-
python-version: '3.9'
23+
python-version: '3.10'
2424
architecture: 'x64'
2525
- name: Misc
2626
run: check/misc
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v4
3232
- uses: actions/setup-python@v5
3333
with:
34-
python-version: '3.9'
34+
python-version: '3.10'
3535
architecture: 'x64'
3636
- name: Install dependencies
3737
run: pip install -r dev_tools/requirements/deps/packaging.txt
@@ -46,7 +46,7 @@ jobs:
4646
fetch-depth: 0
4747
- uses: actions/setup-python@v5
4848
with:
49-
python-version: '3.9'
49+
python-version: '3.10'
5050
architecture: 'x64'
5151
- name: Install dependencies
5252
run: pip install -r dev_tools/requirements/deps/format.txt
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/checkout@v4
6060
- uses: actions/setup-python@v5
6161
with:
62-
python-version: '3.9'
62+
python-version: '3.10'
6363
architecture: 'x64'
6464
- name: Install mypy
6565
run: pip install -r dev_tools/requirements/mypy.env.txt
@@ -74,7 +74,7 @@ jobs:
7474
fetch-depth: 0
7575
- uses: actions/setup-python@v5
7676
with:
77-
python-version: '3.9'
77+
python-version: '3.10'
7878
architecture: 'x64'
7979
- name: Install changed files test dependencies
8080
run: dev_tools/conf/pip-install-minimal-for-pytest-changed-files.sh
@@ -87,7 +87,7 @@ jobs:
8787
- uses: actions/checkout@v4
8888
- uses: actions/setup-python@v5
8989
with:
90-
python-version: '3.9'
90+
python-version: '3.10'
9191
architecture: 'x64'
9292
- name: Install pylint
9393
run: pip install -r dev_tools/requirements/pylint.env.txt
@@ -102,7 +102,7 @@ jobs:
102102
- uses: actions/checkout@v4
103103
- uses: actions/setup-python@v5
104104
with:
105-
python-version: '3.9'
105+
python-version: '3.10'
106106
architecture: 'x64'
107107
- name: Install requirements
108108
run: pip install -r dev_tools/requirements/dev.env.txt
@@ -117,7 +117,7 @@ jobs:
117117
- uses: actions/checkout@v4
118118
- uses: actions/setup-python@v5
119119
with:
120-
python-version: '3.9'
120+
python-version: '3.10'
121121
architecture: 'x64'
122122
- name: Install requirements
123123
run: pip install -r dev_tools/requirements/deps/tensorflow-docs.txt
@@ -139,7 +139,7 @@ jobs:
139139
- uses: actions/checkout@v4
140140
- uses: actions/setup-python@v5
141141
with:
142-
python-version: '3.9'
142+
python-version: '3.10'
143143
architecture: 'x64'
144144
- name: Install dependencies
145145
run: pip install -r dev_tools/requirements/isolated-base.env.txt
@@ -149,7 +149,7 @@ jobs:
149149
name: Pytest Ubuntu
150150
strategy:
151151
matrix:
152-
python-version: [ '3.9', '3.10', '3.11' ]
152+
python-version: [ '3.10', '3.11' ]
153153
runs-on: ubuntu-20.04
154154
steps:
155155
- uses: actions/checkout@v4
@@ -178,7 +178,7 @@ jobs:
178178
- uses: actions/checkout@v4
179179
- uses: actions/setup-python@v5
180180
with:
181-
python-version: '3.9'
181+
python-version: '3.10'
182182
architecture: 'x64'
183183
- name: Install requirements
184184
run: pip install pip-tools
@@ -194,7 +194,7 @@ jobs:
194194
fetch-depth: 0
195195
- uses: actions/setup-python@v5
196196
with:
197-
python-version: '3.9'
197+
python-version: '3.10'
198198
architecture: 'x64'
199199
- name: Install requirements
200200
run: |
@@ -210,7 +210,7 @@ jobs:
210210
fetch-depth: 0
211211
- uses: actions/setup-python@v5
212212
with:
213-
python-version: '3.9'
213+
python-version: '3.10'
214214
architecture: 'x64'
215215
- uses: actions/cache@v4
216216
with:
@@ -234,7 +234,7 @@ jobs:
234234
name: Pytest Windows
235235
strategy:
236236
matrix:
237-
python-version: [ '3.9', '3.10', '3.11' ]
237+
python-version: [ '3.10', '3.11' ]
238238
runs-on: windows-2019
239239
steps:
240240
- uses: actions/checkout@v4
@@ -259,7 +259,7 @@ jobs:
259259
name: Pytest MacOS
260260
strategy:
261261
matrix:
262-
python-version: [ '3.9', '3.10', '3.11' ]
262+
python-version: [ '3.10', '3.11' ]
263263
runs-on: macos-latest
264264
steps:
265265
- uses: actions/checkout@v4
@@ -292,7 +292,7 @@ jobs:
292292
fetch-depth: 0
293293
- uses: actions/setup-python@v5
294294
with:
295-
python-version: '3.9'
295+
python-version: '3.10'
296296
architecture: 'x64'
297297
- name: Install requirements
298298
run: pip install -r dev_tools/requirements/isolated-base.env.txt
@@ -310,7 +310,7 @@ jobs:
310310
- uses: actions/checkout@v4
311311
- uses: actions/setup-python@v5
312312
with:
313-
python-version: '3.9'
313+
python-version: '3.10'
314314
architecture: 'x64'
315315
- name: Install requirements
316316
run: pip install -r dev_tools/requirements/notebooks.env.txt

.github/workflows/release-main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.9'
18+
python-version: '3.10'
1919
architecture: 'x64'
2020
- name: Install dependencies
2121
run: |

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim AS cirq_base
1+
FROM python:3.10-slim AS cirq_base
22

33
# Install dependencies.
44
# rm -rf /var/lib/apt/lists/* cleans up apt cache. See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

asv.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dvcs": "git",
99
"environment_type": "virtualenv",
1010
"show_commit_url": "https://github.com/quantumlib/Cirq/commit/",
11-
"pythons": ["3.9"],
11+
"pythons": ["3.10"],
1212
"matrix": {"env_nobuild": {"PYTHONOPTIMIZE": ["-O", ""]}},
1313
"benchmark_dir": "benchmarks",
1414
"env_dir": ".asv/env",

benchmarks/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To run all benchmarks, navigate to the root Cirq directory at the command line a
1313

1414
You can also pass arguments to the script, which would be forwarded to the `asv run` command. For eg:
1515
```bash
16-
./check/asv_run --quick --bench bench_examples --python 3.9
16+
./check/asv_run --quick --bench bench_examples --python 3.10
1717
```
1818

1919
Please refer [Running Benchmarks guide by ASV](https://asv.readthedocs.io/en/stable/using.html#running-benchmarks) for more information.

dev_tools/packaging/packaging_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trap '{ rm -rf "${tmp_dir}"; }' EXIT
2828

2929
# New virtual environment
3030
echo "Working in a fresh virtualenv at ${tmp_dir}/env"
31-
python3.9 -m venv "${tmp_dir}/env"
31+
python3.10 -m venv "${tmp_dir}/env"
3232

3333
export CIRQ_PRE_RELEASE_VERSION
3434
CIRQ_PRE_RELEASE_VERSION=$(dev_tools/packaging/generate-dev-version-id.sh)

dev_tools/pr_monitor/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# value of the cirqbot-api-key secret.
2424
########################################################################################
2525

26-
FROM python:3.9-slim
26+
FROM python:3.10-slim
2727

2828
RUN mkdir -p /app/dev_tools/pr_monitor
2929
WORKDIR /app

docs/dev/development.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ See the previous section for instructions.
9494

9595
1. Install system dependencies.
9696

97-
Make sure you have python 3.9 or greater.
97+
Make sure you have python 3.10 or greater.
9898
You can install most other dependencies via `apt-get`:
9999

100100
```bash

docs/start/install.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ If you want to create a development environment, see the [development page](../d
1212

1313
## Python version support
1414

15-
Cirq currently supports python 3.9 and later.
15+
Cirq currently supports python 3.10 and later.
1616
We follow numpy's schedule for python version support defined in [NEP 29](https://numpy.org/neps/nep-0029-deprecation_policy.html),
1717
though we may deviate from that schedule by extending support for older python
1818
versions if they are needed by [Colab](https://colab.research.google.com/)
1919
or internal Google systems.
2020

2121
## Installing on Linux
2222

23-
0. Make sure you have python 3.9.0 or greater.
23+
0. Make sure you have python 3.10.0 or greater.
2424

2525
See [Installing Python 3 on Linux](https://docs.python-guide.org/starting/install3/linux/) @ the hitchhiker's guide to python.
2626

@@ -87,7 +87,7 @@ or internal Google systems.
8787
8888
## Installing on Mac OS X
8989
90-
0. Make sure you have python 3.9.0 or greater.
90+
0. Make sure you have python 3.10.0 or greater.
9191
9292
See [Installing Python 3 on Mac OS X](https://docs.python-guide.org/starting/install3/osx/) @ the hitchhiker's guide to python.
9393

@@ -154,7 +154,7 @@ or internal Google systems.
154154
155155
0. If you are using the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/about), use the [Linux install instructions](#installing-on-linux) instead of these instructions.
156156
157-
1. Make sure you have python 3.9.0 or greater.
157+
1. Make sure you have python 3.10.0 or greater.
158158
159159
See [Installing Python 3 on Windows](https://docs.python-guide.org/starting/install3/win/) @ the hitchhiker's guide to python.
160160

release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ release.
8282

8383
### Preparation
8484

85-
System requirements: Linux, python3.9
85+
System requirements: Linux, python3.10
8686

8787
For MINOR / MAJOR release: Make sure you're on an up-to-date main branch and
8888
in cirq's root directory.

0 commit comments

Comments
 (0)