-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: migrate project toolchain to python 3.11 and ubuntu 22.04
This commit upgrades all of the project configuration files, GitHub Action workflows, and Dockerfiles to use Python 3.11 and Ubuntu 22.04. The Dockerfiles use the deadsnakes PPA to install a recent version of Python 3.11, since the Ubuntu package repository only provides the first release candidate for Python 3.11.0, which is missing bug fixes. References to Python 3.9 have been replaced with Python 3.11 in the project documentation. This commit also upgrades the pinned version of Tensorflow to 2.16.1 and PyTorch to 2.2.2, which both have installable wheel support for Python 3.11. This change required updating some of the Dioptra plugins to work with the default eager execution model and the current API for Tensorflow. The detectron2 and pytorch-lightning packages have been dropped due to lack of support and compatibility with these versions of PyTorch and Python. This commit also adds async_timeout as an explicit dependency for the worker and restapi images. This fixes the problem introduced in redis/redis-py#2602 where async_timeout was removed as a dependency for Python 3.11, which had a ripple effect that resulted in unexpected breakage. Adding the dependency back fixes the issue. Co-authored-by: Keith Manville <[email protected]>
- Loading branch information
1 parent
d39c986
commit b97a016
Showing
90 changed files
with
11,424 additions
and
12,574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ env: | |
|
||
jobs: | ||
build-docker-dioptra-apps: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
dioptra-app: | ||
|
@@ -111,7 +111,7 @@ jobs: | |
path: /tmp/${{ env.PROJECT_PREFIX }}_${{ matrix.dioptra-app }}_dev.tar.gz | ||
|
||
container-test: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
if: ${{ false }} # disable for now | ||
needs: | ||
- build-docker-dioptra-apps | ||
|
@@ -123,10 +123,10 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup python 3.9 | ||
- name: setup python 3.11 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.9" | ||
python-version: "3.11" | ||
|
||
- name: upgrade pip | ||
run: | | ||
|
@@ -170,7 +170,7 @@ jobs: | |
tox -e containers-${{ matrix.dioptra-app }} | ||
integration-test: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
if: ${{ false }} # disable for now | ||
needs: | ||
- build-docker-dioptra-apps | ||
|
@@ -183,10 +183,10 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup python 3.9 | ||
- name: setup python 3.11 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.9" | ||
python-version: "3.11" | ||
|
||
- name: upgrade pip | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,14 +25,14 @@ on: | |
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup python 3.9 | ||
- name: setup python 3.11 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.9" | ||
python-version: "3.11" | ||
|
||
- name: upgrade pip | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.