Skip to content

Commit 2a69c0e

Browse files
nejchJohnVillalovos
authored andcommitted
feat: officially support Python 3.12
1 parent f1654b8 commit 2a69c0e

File tree

7 files changed

+20
-17
lines changed

7 files changed

+20
-17
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Python
2727
uses: actions/setup-python@v4.7.1
2828
with:
29-
python-version: "3.11"
29+
python-version: "3.12"
3030
- name: Install dependencies
3131
run: pip install tox
3232
- name: Build docs
@@ -46,7 +46,7 @@ jobs:
4646
- name: Set up Python
4747
uses: actions/setup-python@v4.7.1
4848
with:
49-
python-version: "3.11"
49+
python-version: "3.12"
5050
- name: Install dependencies
5151
run: pip install tox twine wheel
5252
- name: Check twine readme rendering

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828
- uses: actions/setup-python@v4.7.1
2929
with:
30-
python-version: "3.11"
30+
python-version: "3.12"
3131
- run: pip install --upgrade tox
3232
- name: Run commitizen (https://commitizen-tools.github.io/commitizen/)
3333
run: tox -e cz

.github/workflows/pre_commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v4.1.0
3333
- uses: actions/setup-python@v4.7.1
3434
with:
35-
python-version: "3.11"
35+
python-version: "3.12"
3636
- name: install tox
3737
run: pip install tox==3.26.0
3838
- name: pre-commit

.github/workflows/test.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,19 @@ jobs:
3434
toxenv: py310,smoke
3535
- version: "3.11"
3636
toxenv: py311,smoke
37-
- version: '3.12.0-alpha - 3.12' # SemVer's version range syntax
37+
- version: "3.12"
3838
toxenv: py312,smoke
39+
- version: '3.13.0-alpha - 3.13' # SemVer's version range syntax
40+
toxenv: py313,smoke
3941
include:
4042
- os: macos-latest
4143
python:
42-
version: "3.11"
43-
toxenv: py310,smoke
44+
version: "3.12"
45+
toxenv: py312,smoke
4446
- os: windows-latest
4547
python:
46-
version: "3.11"
47-
toxenv: py310,smoke
48+
version: "3.12"
49+
toxenv: py312,smoke
4850
steps:
4951
- uses: actions/checkout@v4.1.0
5052
- name: Set up Python ${{ matrix.python.version }}
@@ -68,7 +70,7 @@ jobs:
6870
- name: Set up Python
6971
uses: actions/setup-python@v4.7.1
7072
with:
71-
python-version: "3.11"
73+
python-version: "3.12"
7274
- name: Install dependencies
7375
run: pip install tox
7476
- name: Run tests
@@ -89,7 +91,7 @@ jobs:
8991
- name: Set up Python ${{ matrix.python-version }}
9092
uses: actions/setup-python@v4.7.1
9193
with:
92-
python-version: "3.11"
94+
python-version: "3.12"
9395
- name: Install dependencies
9496
run: pip install tox
9597
- name: Run tests
@@ -111,7 +113,7 @@ jobs:
111113
- uses: actions/checkout@v4.1.0
112114
- uses: actions/setup-python@v4.7.1
113115
with:
114-
python-version: "3.11"
116+
python-version: "3.12"
115117
- name: Install dependencies
116118
run: |
117119
pip install -r requirements-test.txt
@@ -130,7 +132,7 @@ jobs:
130132
- name: Set up Python
131133
uses: actions/setup-python@v4.7.1
132134
with:
133-
python-version: '3.11'
135+
python-version: '3.12'
134136
- uses: actions/download-artifact@v3.0.2
135137
with:
136138
name: dist

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.11"
6+
python: "3.12"
77

88
sphinx:
99
configuration: docs/conf.py

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
ARG PYTHON_FLAVOR=alpine
2-
FROM python:3.11-${PYTHON_FLAVOR} AS build
2+
FROM python:3.12-${PYTHON_FLAVOR} AS build
33

44
WORKDIR /opt/python-gitlab
55
COPY . .
66
RUN pip install build && python -m build
77

8-
FROM python:3.11-${PYTHON_FLAVOR}
8+
FROM python:3.12-${PYTHON_FLAVOR}
99

1010
WORKDIR /opt/python-gitlab
1111
COPY --from=build /opt/python-gitlab/dist dist/

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ classifiers = [
3333
"Programming Language :: Python :: 3.8",
3434
"Programming Language :: Python :: 3.9",
3535
"Programming Language :: Python :: 3.10",
36-
"Programming Language :: Python :: 3.11"
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
3738
]
3839
keywords = ["api", "client", "gitlab", "python", "python-gitlab", "wrapper"]
3940
license = {text = "LGPL-3.0-or-later"}

0 commit comments

Comments
 (0)