From e84e58b79665a3f795a39a6bde43884df0f7fc3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Fei?= Date: Tue, 31 Oct 2023 16:16:11 +0100 Subject: [PATCH] feat: update Python to v3.11 (#158) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Niccolò Fei Signed-off-by: Marco Nenciarini Co-authored-by: Marco Nenciarini --- .github/workflows/build.yml | 2 +- .github/workflows/update.yml | 2 +- UBI/Dockerfile-multiarch.template | 6 +++--- UBI/Dockerfile-multilang.template | 6 +++--- UBI/Dockerfile-postgis-multilang.template | 6 +++--- UBI/Dockerfile-postgis.template | 6 +++--- UBI/Dockerfile.template | 6 +++--- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90d041058..3290589d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -97,7 +97,7 @@ jobs: exit-code: '1' failure-threshold: WARN accept-keywords: key - accept-filenames: usr/share/cmake/Templates/Windows/Windows_TemporaryKey.pfx,etc/trusted-key.key,usr/share/doc/perl-IO-Socket-SSL/certs/server_enc.p12,usr/share/doc/perl-IO-Socket-SSL/certs/server.p12,usr/local/lib/python3.8/site-packages/azure/core/settings.py,usr/share/postgresql-common/pgdg/apt.postgresql.org.asc,usr/local/lib/python3.7/dist-packages/azure/core/settings.py,etc/ssl/private/ssl-cert-snakeoil.key + accept-filenames: usr/share/cmake/Templates/Windows/Windows_TemporaryKey.pfx,etc/trusted-key.key,usr/share/doc/perl-IO-Socket-SSL/certs/server_enc.p12,usr/share/doc/perl-IO-Socket-SSL/certs/server.p12,usr/share/postgresql-common/pgdg/apt.postgresql.org.asc,etc/ssl/private/ssl-cert-snakeoil.key,usr/local/lib/python3.11/site-packages/azure/core/settings.py - name: Build and push uses: docker/build-push-action@v5 diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 352c62e1a..224868c30 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -18,7 +18,7 @@ jobs: token: ${{ secrets.REPO_GHA_PAT }} - uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.11' - name: Update docker-entrypoint uses: nick-fields/retry@v2 with: diff --git a/UBI/Dockerfile-multiarch.template b/UBI/Dockerfile-multiarch.template index 4e695d1ad..1a4e0fb01 100644 --- a/UBI/Dockerfile-multiarch.template +++ b/UBI/Dockerfile-multiarch.template @@ -64,9 +64,9 @@ RUN --mount=type=secret,id=cs_token \ # Install barman-cloud RUN set -xe ; \ - yum -y install python38-pip python38-psycopg2 ; \ - pip3.8 install --upgrade pip ; \ - pip3.8 install -r requirements.txt ; \ + yum -y install python3.11-pip python3.11-psycopg2 ; \ + pip3.11 install --upgrade pip ; \ + pip3.11 install -r requirements.txt ; \ yum -y clean all --enablerepo='*' # make the sample config easier to munge (and "correct by default") diff --git a/UBI/Dockerfile-multilang.template b/UBI/Dockerfile-multilang.template index ebd659c2a..5fa018850 100644 --- a/UBI/Dockerfile-multilang.template +++ b/UBI/Dockerfile-multilang.template @@ -56,9 +56,9 @@ RUN --mount=type=secret,id=cs_token \ # Install barman-cloud RUN set -xe ; \ - yum -y install python38-pip python38-psycopg2 ; \ - pip3.8 install --upgrade pip ; \ - pip3.8 install -r requirements.txt ; \ + yum -y install python3.11-pip python3.11-psycopg2 ; \ + pip3.11 install --upgrade pip ; \ + pip3.11 install -r requirements.txt ; \ yum -y clean all --enablerepo='*' # make the sample config easier to munge (and "correct by default") diff --git a/UBI/Dockerfile-postgis-multilang.template b/UBI/Dockerfile-postgis-multilang.template index bd3e40673..0023e7912 100644 --- a/UBI/Dockerfile-postgis-multilang.template +++ b/UBI/Dockerfile-postgis-multilang.template @@ -46,9 +46,9 @@ RUN set -xe ; \ # Install barman-cloud RUN set -xe ; \ - yum -y install python38-pip python38-psycopg2 ; \ - pip3.8 install --upgrade pip ; \ - pip3.8 install -r requirements.txt ; \ + yum -y install python3.11-pip python3.11-psycopg2 ; \ + pip3.11 install --upgrade pip ; \ + pip3.11 install -r requirements.txt ; \ yum -y clean all --enablerepo='*' # make the sample config easier to munge (and "correct by default") diff --git a/UBI/Dockerfile-postgis.template b/UBI/Dockerfile-postgis.template index c0fde2fdb..7d569424b 100644 --- a/UBI/Dockerfile-postgis.template +++ b/UBI/Dockerfile-postgis.template @@ -45,9 +45,9 @@ RUN set -xe ; \ # Install barman-cloud RUN set -xe ; \ - yum -y install python38-pip python38-psycopg2 ; \ - pip3.8 install --upgrade pip ; \ - pip3.8 install -r requirements.txt ; \ + yum -y install python3.11-pip python3.11-psycopg2 ; \ + pip3.11 install --upgrade pip ; \ + pip3.11 install -r requirements.txt ; \ yum -y clean all --enablerepo='*' # make the sample config easier to munge (and "correct by default") diff --git a/UBI/Dockerfile.template b/UBI/Dockerfile.template index c77e1e926..3c671b1d9 100644 --- a/UBI/Dockerfile.template +++ b/UBI/Dockerfile.template @@ -55,9 +55,9 @@ RUN --mount=type=secret,id=cs_token \ # Install barman-cloud RUN set -xe ; \ - yum -y install python38-pip python38-psycopg2 ; \ - pip3.8 install --upgrade pip ; \ - pip3.8 install -r requirements.txt ; \ + yum -y install python3.11-pip python3.11-psycopg2 ; \ + pip3.11 install --upgrade pip ; \ + pip3.11 install -r requirements.txt ; \ yum -y clean all --enablerepo='*' # make the sample config easier to munge (and "correct by default")