Skip to content

Commit

Permalink
feat: update Python to v3.11 (#158)
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
Co-authored-by: Marco Nenciarini <[email protected]>
  • Loading branch information
NiccoloFei and mnencia committed Nov 6, 2023
1 parent 3f8ce2d commit 37fbb32
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.11'

- name: Prepare Environment
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions UBI/Dockerfile-multiarch.template
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions UBI/Dockerfile-multilang.template
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions UBI/Dockerfile-postgis-multilang.template
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions UBI/Dockerfile-postgis.template
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions UBI/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 37fbb32

Please sign in to comment.