Skip to content

Commit

Permalink
feat: officially support Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch authored and JohnVillalovos committed Oct 12, 2023
1 parent f1654b8 commit 2a69c0e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 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.7.1
with:
python-version: "3.11"
python-version: "3.12"
- 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.7.1
with:
python-version: "3.11"
python-version: "3.12"
- 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.7.1
with:
python-version: "3.11"
python-version: "3.12"
- 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@v4.1.0
- uses: actions/setup-python@v4.7.1
with:
python-version: "3.11"
python-version: "3.12"
- name: install tox
run: pip install tox==3.26.0
- name: pre-commit
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/test.yml
Expand Up @@ -34,17 +34,19 @@ jobs:
toxenv: py310,smoke
- version: "3.11"
toxenv: py311,smoke
- version: '3.12.0-alpha - 3.12' # SemVer's version range syntax
- version: "3.12"
toxenv: py312,smoke
- version: '3.13.0-alpha - 3.13' # SemVer's version range syntax
toxenv: py313,smoke
include:
- os: macos-latest
python:
version: "3.11"
toxenv: py310,smoke
version: "3.12"
toxenv: py312,smoke
- os: windows-latest
python:
version: "3.11"
toxenv: py310,smoke
version: "3.12"
toxenv: py312,smoke
steps:
- uses: actions/checkout@v4.1.0
- name: Set up Python ${{ matrix.python.version }}
Expand All @@ -68,7 +70,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4.7.1
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: pip install tox
- name: Run tests
Expand All @@ -89,7 +91,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.7.1
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: pip install tox
- name: Run tests
Expand All @@ -111,7 +113,7 @@ jobs:
- uses: actions/checkout@v4.1.0
- uses: actions/setup-python@v4.7.1
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: |
pip install -r requirements-test.txt
Expand All @@ -130,7 +132,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4.7.1
with:
python-version: '3.11'
python-version: '3.12'
- uses: actions/download-artifact@v3.0.2
with:
name: dist
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.11"
python: "3.12"

sphinx:
configuration: docs/conf.py
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,11 +1,11 @@
ARG PYTHON_FLAVOR=alpine
FROM python:3.11-${PYTHON_FLAVOR} AS build
FROM python:3.12-${PYTHON_FLAVOR} AS build

WORKDIR /opt/python-gitlab
COPY . .
RUN pip install build && python -m build

FROM python:3.11-${PYTHON_FLAVOR}
FROM python:3.12-${PYTHON_FLAVOR}

WORKDIR /opt/python-gitlab
COPY --from=build /opt/python-gitlab/dist dist/
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Expand Up @@ -33,7 +33,8 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = ["api", "client", "gitlab", "python", "python-gitlab", "wrapper"]
license = {text = "LGPL-3.0-or-later"}
Expand Down

0 comments on commit 2a69c0e

Please sign in to comment.