Skip to content

Commit

Permalink
Remove python3.9 from CI tests (#6495)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoureldinYosri authored Mar 14, 2024
1 parent dc1065d commit 2700f95
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 33 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Pytest Ubuntu
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.10', '3.11']
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
name: Pytest Windows
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.10', '3.11']
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
Expand All @@ -70,7 +70,7 @@ jobs:
name: Pytest MacOS
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.10', '3.11']
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: pip install -r dev_tools/requirements/isolated-base.env.txt
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Misc
run: check/misc
Expand All @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install dependencies
run: pip install -r dev_tools/requirements/deps/packaging.txt
Expand All @@ -46,7 +46,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install dependencies
run: pip install -r dev_tools/requirements/deps/format.txt
Expand All @@ -59,7 +59,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install mypy
run: pip install -r dev_tools/requirements/mypy.env.txt
Expand All @@ -74,7 +74,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install changed files test dependencies
run: dev_tools/conf/pip-install-minimal-for-pytest-changed-files.sh
Expand All @@ -87,7 +87,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install pylint
run: pip install -r dev_tools/requirements/pylint.env.txt
Expand All @@ -102,7 +102,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: pip install -r dev_tools/requirements/dev.env.txt
Expand All @@ -117,7 +117,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: pip install -r dev_tools/requirements/deps/tensorflow-docs.txt
Expand All @@ -139,7 +139,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install dependencies
run: pip install -r dev_tools/requirements/isolated-base.env.txt
Expand All @@ -149,7 +149,7 @@ jobs:
name: Pytest Ubuntu
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11' ]
python-version: [ '3.10', '3.11' ]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: pip install pip-tools
Expand All @@ -194,7 +194,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: |
Expand All @@ -210,7 +210,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- uses: actions/cache@v4
with:
Expand All @@ -234,7 +234,7 @@ jobs:
name: Pytest Windows
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11' ]
python-version: [ '3.10', '3.11' ]
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
Expand All @@ -259,7 +259,7 @@ jobs:
name: Pytest MacOS
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11' ]
python-version: [ '3.10', '3.11' ]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -292,7 +292,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: pip install -r dev_tools/requirements/isolated-base.env.txt
Expand All @@ -310,7 +310,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: pip install -r dev_tools/requirements/notebooks.env.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim AS cirq_base
FROM python:3.10-slim AS cirq_base

# Install dependencies.
# rm -rf /var/lib/apt/lists/* cleans up apt cache. See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
Expand Down
2 changes: 1 addition & 1 deletion asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dvcs": "git",
"environment_type": "virtualenv",
"show_commit_url": "https://github.com/quantumlib/Cirq/commit/",
"pythons": ["3.9"],
"pythons": ["3.10"],
"matrix": {"env_nobuild": {"PYTHONOPTIMIZE": ["-O", ""]}},
"benchmark_dir": "benchmarks",
"env_dir": ".asv/env",
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To run all benchmarks, navigate to the root Cirq directory at the command line a

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

Please refer [Running Benchmarks guide by ASV](https://asv.readthedocs.io/en/stable/using.html#running-benchmarks) for more information.
Expand Down
2 changes: 1 addition & 1 deletion dev_tools/packaging/packaging_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ trap '{ rm -rf "${tmp_dir}"; }' EXIT

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

export CIRQ_PRE_RELEASE_VERSION
CIRQ_PRE_RELEASE_VERSION=$(dev_tools/packaging/generate-dev-version-id.sh)
Expand Down
2 changes: 1 addition & 1 deletion dev_tools/pr_monitor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# value of the cirqbot-api-key secret.
########################################################################################

FROM python:3.9-slim
FROM python:3.10-slim

RUN mkdir -p /app/dev_tools/pr_monitor
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ See the previous section for instructions.

1. Install system dependencies.

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

```bash
Expand Down
8 changes: 4 additions & 4 deletions docs/start/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ If you want to create a development environment, see the [development page](../d

## Python version support

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

## Installing on Linux

0. Make sure you have python 3.9.0 or greater.
0. Make sure you have python 3.10.0 or greater.

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

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

Expand Down Expand Up @@ -154,7 +154,7 @@ or internal Google systems.
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.
1. Make sure you have python 3.9.0 or greater.
1. Make sure you have python 3.10.0 or greater.
See [Installing Python 3 on Windows](https://docs.python-guide.org/starting/install3/win/) @ the hitchhiker's guide to python.

Expand Down
2 changes: 1 addition & 1 deletion release.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ release.

### Preparation

System requirements: Linux, python3.9
System requirements: Linux, python3.10

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

0 comments on commit 2700f95

Please sign in to comment.