Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.11 #7304

Merged
merged 10 commits into from
Oct 27, 2022
2 changes: 2 additions & 0 deletions .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
pytest-options:
- "--exclude-services"
- "--only-services"
Expand Down Expand Up @@ -161,6 +162,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
pytest-options:
- "--exclude-services"

Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- "3.11"

steps:
# Not needed until we want multiarchecture builds
Expand Down Expand Up @@ -122,6 +123,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- "3.11"

steps:
# Not needed until we want multiarchecture builds
Expand Down Expand Up @@ -270,6 +272,12 @@ jobs:
name: release-image-${{ github.sha }}-3.10
path: /tmp/3.10/

- name: Download image artifacts for Python 3.11
uses: actions/download-artifact@v3
with:
name: release-image-${{ github.sha }}-3.11
path: /tmp/3.11/

- name: Download conda image artifacts for Python 3.7
uses: actions/download-artifact@v3
with:
Expand All @@ -294,16 +302,24 @@ jobs:
name: release-image-${{ github.sha }}-3.10-conda
path: /tmp/3.10/

- name: Download conda image artifacts for Python 3.11
uses: actions/download-artifact@v3
with:
name: release-image-${{ github.sha }}-3.11-conda
path: /tmp/3.11/

- name: Load images
run: |
docker load --input /tmp/3.7/image.tar
docker load --input /tmp/3.8/image.tar
docker load --input /tmp/3.9/image.tar
docker load --input /tmp/3.10/image.tar
docker load --input /tmp/3.11/image.tar
docker load --input /tmp/3.7/image-conda.tar
docker load --input /tmp/3.8/image-conda.tar
docker load --input /tmp/3.9/image-conda.tar
docker load --input /tmp/3.10/image-conda.tar
docker load --input /tmp/3.10/image-conda.
docker load --input /tmp/3.11/image-conda.tar

- name: Login to DockerHub
uses: docker/login-action@v2
Expand Down
8 changes: 7 additions & 1 deletion docs/concepts/infrastructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ Additionally, we have "convenience" tags which are updated with each release to

For example, when release `2.1.1` is published:

1. Images with the release packaged are built for each supported Python version (3.7, 3.8, 3.9, 3.10) with both standard Python and Conda.
1. Images with the release packaged are built for each supported Python version (3.7, 3.8, 3.9, 3.10, 3.11) with both standard Python and Conda.
2. These images are tagged with the full description, e.g. `prefect:2.1.1-python3.7` and `prefect:2.1.1-python3.7-conda`.
3. For users that want more specific pins, these images are also tagged with the SHA of the git commit of the release, e.g. `sha-88a7ff17a3435ec33c95c0323b8f05d7b9f3f6d2-python3.7`
4. For users that want to be on the latest `2.1.x` release, receiving patch updates, we update a tag without the patch version to this release, e.g. `prefect.2.1-python3.7`.
Expand All @@ -284,14 +284,17 @@ Standard Python images are based on the official Python `slim` images, e.g. `pyt
| Tag | Prefect Version | Python Version |
| --------------------- | :-------------------------: | -------------: |
| 2-latest | most recent v2 PyPi version | 3.10 |
| 2-python3.11 | most recent v2 PyPi version | 3.11 |
| 2-python3.10 | most recent v2 PyPi version | 3.10 |
| 2-python3.9 | most recent v2 PyPi version | 3.9 |
| 2-python3.8 | most recent v2 PyPi version | 3.8 |
| 2-python3.7 | most recent v2 PyPi version | 3.7 |
| 2.X-python3.11 | 2.X | 3.11 |
| 2.X-python3.10 | 2.X | 3.10 |
| 2.X-python3.9 | 2.X | 3.9 |
| 2.X-python3.8 | 2.X | 3.8 |
| 2.X-python3.7 | 2.X | 3.7 |
| sha-<hash>-python3.11 | <hash> | 3.11 |
| sha-<hash>-python3.10 | <hash> | 3.10 |
| sha-<hash>-python3.9 | <hash> | 3.9 |
| sha-<hash>-python3.8 | <hash> | 3.8 |
Expand All @@ -305,14 +308,17 @@ Conda flavored images are based on `continuumio/miniconda3`. Prefect is installe
| Tag | Prefect Version | Python Version |
| --------------------------- | :-------------------------: | -------------: |
| 2-latest-conda | most recent v2 PyPi version | 3.10 |
| 2-python3.11-conda | most recent v2 PyPi version | 3.11 |
| 2-python3.10-conda | most recent v2 PyPi version | 3.10 |
| 2-python3.9-conda | most recent v2 PyPi version | 3.9 |
| 2-python3.8-conda | most recent v2 PyPi version | 3.8 |
| 2-python3.7-conda | most recent v2 PyPi version | 3.7 |
| 2.X-python3.11-conda | 2.X | 3.11 |
| 2.X-python3.10-conda | 2.X | 3.10 |
| 2.X-python3.9-conda | 2.X | 3.9 |
| 2.X-python3.8-conda | 2.X | 3.8 |
| 2.X-python3.7-conda | 2.X | 3.7 |
| sha-<hash>-python3.11-conda | <hash> | 3.11 |
| sha-<hash>-python3.10-conda | <hash> | 3.10 |
| sha-<hash>-python3.9-conda | <hash> | 3.9 |
| sha-<hash>-python3.8-conda | <hash> | 3.8 |
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
],
)