From f6f892727e51b44e2ed14d2e2c47fe36c70b7920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Alvergnat?= Date: Wed, 13 Dec 2023 11:34:05 +0100 Subject: [PATCH] feat(dependencies): add python 3.12 support --- .github/workflows/ci.yml | 12 ++++++------ setup.py | 2 +- tox.ini | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e50933..5ef5a22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8", "pypy-3.9" ] + python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8", "pypy-3.9", "pypy-3.10" ] regex: [ "1", "0" ] steps: @@ -20,7 +20,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Git User config run: | @@ -54,7 +54,7 @@ jobs: if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v5 @@ -68,7 +68,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ 3.11 ] + python-version: [ 3.12 ] steps: - name: Setup python ${{ matrix.python-version }} @@ -77,7 +77,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -93,7 +93,7 @@ jobs: run: pip install python-semantic-release - name: Publish release - run: semantic-release -v DEBUG publish + run: semantic-release publish -v DEBUG env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} diff --git a/setup.py b/setup.py index 34e51d2..6e2da4d 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ with io.open('README.md', 'r', encoding='utf-8') as f: readme = f.read() -install_requires = [] +install_requires = ['setuptools;python_version>="3.12"'] native_requires = ['regex'] diff --git a/tox.ini b/tox.ini index 1128160..c6fab1b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py36,py37,py38,py39,py310,pypy3 +envlist = py37,py38,py39,py310,py311,py312,pypy3.8,pypy3.9,pypy3.10 [testenv] commands =