summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-10-26 08:38:05 +0200
committerNejc Habjan <nejc.habjan@siemens.com>2022-10-26 08:38:05 +0200
commit74f66c71f3974cf68f5038f4fc3995e53d44aebe (patch)
tree47c40c2da0f6830b62c0b3926120e64a3a8710b3
parent31a39e1fda848227c15c2e535fa68eabf80f3468 (diff)
downloadgitlab-74f66c71f3974cf68f5038f4fc3995e53d44aebe.tar.gz
feat(build): officially support Python 3.11
-rw-r--r--.github/workflows/docs.yml4
-rw-r--r--.github/workflows/lint.yml2
-rw-r--r--.github/workflows/pre_commit.yml2
-rw-r--r--.github/workflows/test.yml16
-rw-r--r--Dockerfile4
-rw-r--r--setup.py1
6 files changed, 15 insertions, 14 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index aec066b..47e6c34 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -26,7 +26,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4.3.0
with:
- python-version: "3.10"
+ python-version: "3.11"
- name: Install dependencies
run: pip install tox
- name: Build docs
@@ -46,7 +46,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4.3.0
with:
- python-version: "3.10"
+ python-version: "3.11"
- name: Install dependencies
run: pip install tox twine wheel
- name: Check twine readme rendering
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index cafc931..700a1be 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -27,7 +27,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v4.3.0
with:
- python-version: "3.10"
+ python-version: "3.11"
- run: pip install --upgrade tox
- name: Run commitizen (https://commitizen-tools.github.io/commitizen/)
run: tox -e cz
diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml
index 9681cc3..70aa361 100644
--- a/.github/workflows/pre_commit.yml
+++ b/.github/workflows/pre_commit.yml
@@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v3.1.0
- uses: actions/setup-python@v4.3.0
with:
- python-version: "3.10"
+ python-version: "3.11"
- name: install tox
run: pip install tox==3.26.0
- name: pre-commit
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index b39699d..b3b60ef 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -26,23 +26,23 @@ jobs:
os: [ubuntu-latest]
python:
- version: "3.7"
- toxenv: py37
+ toxenv: py37,smoke
- version: "3.8"
- toxenv: py38
+ toxenv: py38,smoke
- version: "3.9"
- toxenv: py39
+ toxenv: py39,smoke
- version: "3.10"
toxenv: py310,smoke
- - version: '3.11.0-alpha - 3.11' # SemVer's version range syntax
+ - version: "3.11"
toxenv: py311,smoke
include:
- os: macos-latest
python:
- version: "3.10"
+ version: "3.11"
toxenv: py310,smoke
- os: windows-latest
python:
- version: "3.10"
+ version: "3.11"
toxenv: py310,smoke
steps:
- uses: actions/checkout@v3.1.0
@@ -67,7 +67,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4.3.0
with:
- python-version: "3.10"
+ python-version: "3.11"
- name: Install dependencies
run: pip install tox
- name: Run tests
@@ -88,7 +88,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.3.0
with:
- python-version: "3.10"
+ python-version: "3.11"
- name: Install dependencies
run: pip install tox
- name: Run tests
diff --git a/Dockerfile b/Dockerfile
index be9d2a9..8d8755b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,11 @@
ARG PYTHON_FLAVOR=alpine
-FROM python:3.10-${PYTHON_FLAVOR} AS build
+FROM python:3.11-${PYTHON_FLAVOR} AS build
WORKDIR /opt/python-gitlab
COPY . .
RUN python setup.py bdist_wheel
-FROM python:3.10-${PYTHON_FLAVOR}
+FROM python:3.11-${PYTHON_FLAVOR}
WORKDIR /opt/python-gitlab
COPY --from=build /opt/python-gitlab/dist dist/
diff --git a/setup.py b/setup.py
index bb90c19..1da3f6f 100644
--- a/setup.py
+++ b/setup.py
@@ -48,6 +48,7 @@ setup(
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
],
extras_require={
"autocompletion": ["argcomplete>=1.10.0,<3"],