From 8f7cf4047d16bf7d9b9d0c2e63a1db90fe8bd2f2 Mon Sep 17 00:00:00 2001 From: Stefan Negru Date: Tue, 12 Dec 2023 11:34:20 +0200 Subject: [PATCH] switch to python 3.11 --- .github/workflows/style.yml | 2 +- .github/workflows/unit.yml | 6 +++--- Dockerfile | 6 +++--- setup.py | 3 +-- tox.ini | 5 ++--- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index fe4f13b..3a51b4c 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -8,7 +8,7 @@ jobs: max-parallel: 4 matrix: os: [ubuntu-latest] - python-version: [3.9] + python-version: ["3.11"] runs-on: ${{ matrix.os }} diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index ce8cce6..d53c66a 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -8,7 +8,7 @@ jobs: max-parallel: 4 matrix: os: [ubuntu-latest] - python-version: [3.8, 3.9] + python-version: ["3.11"] runs-on: ${{ matrix.os }} @@ -26,8 +26,8 @@ jobs: run: | python -m pip install --upgrade pip pip install tox tox-gh-actions - - name: Run unit tests for python 3.9 - if: ${{ matrix.python-version == '3.9' }} + - name: Run unit tests for python 3.11 + if: ${{ matrix.python-version == '3.11' }} # env: # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run: tox -e py39 diff --git a/Dockerfile b/Dockerfile index 7a09689..db2ff67 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-alpine3.17 as BUILD +FROM python:3.11-alpine3.18 as BUILD RUN apk add --no-cache git gcc musl-dev libffi-dev make gnupg && \ rm -rf /var/cache/apk/* @@ -11,14 +11,14 @@ RUN pip install --upgrade pip && \ pip install -r /root/sdaorch/requirements.txt && \ pip install /root/sdaorch -FROM python:3.9-alpine3.17 +FROM python:3.11-alpine3.18 LABEL maintainer "NeIC System Developers" LABEL org.label-schema.schema-version="1.0" RUN apk add --no-cache --update supervisor -COPY --from=BUILD /usr/local/lib/python3.9/ usr/local/lib/python3.9/ +COPY --from=BUILD /usr/local/lib/python3.11/ usr/local/lib/python3.11/ COPY --from=BUILD /usr/local/bin/sdainbox /usr/local/bin/ diff --git a/setup.py b/setup.py index 24431f1..25df47b 100644 --- a/setup.py +++ b/setup.py @@ -43,8 +43,7 @@ "Intended Audience :: Information Technology", # Pick your license as you wish "License :: OSI Approved :: Apache Software License", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.11", ], install_requires=["amqpstorm", "jsonschema", "httpx", "shortuuid"], extras_require={ diff --git a/tox.ini b/tox.ini index e6ef07c..13bb45a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38, py39, flake8, mypy, black +envlist = py311, flake8, mypy, black skipsdist = True [flake8] @@ -42,5 +42,4 @@ commands = py.test -x --cov=sda_orchestrator tests/ [gh-actions] python = - 3.8: py38 - 3.9: flake8, py39, docs, mypy, black + 3.11: flake8, py39, docs, mypy, black