Skip to content

Commit

Permalink
Merge pull request #2343 from python-gitlab/feat/python-3-11
Browse files Browse the repository at this point in the history
feat(build): officially support Python 3.11
  • Loading branch information
max-wittig committed Oct 26, 2022
2 parents 31a39e1 + 74f66c7 commit a3b4824
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre_commit.yml
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions 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/
Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -48,6 +48,7 @@ def get_version() -> str:
"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"],
Expand Down

0 comments on commit a3b4824

Please sign in to comment.