diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5864ac786..fbf2ce20c 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.7.1 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: pip install tox - name: Build docs @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b22dd74b8..eff2b76a9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index 3cd0c5c51..c1dbfca8b 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ac8dd999..03a0ac1d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.readthedocs.yml b/.readthedocs.yml index 2d561b88b..0c8b65131 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.11" + python: "3.12" sphinx: configuration: docs/conf.py diff --git a/Dockerfile b/Dockerfile index 57600adfd..0916cc8cf 100644 --- a/Dockerfile +++ b/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/ diff --git a/pyproject.toml b/pyproject.toml index 641ac90ac..4abce38ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"}