From 1e19d9b243b67f23d515ed199ac8dea11c190c33 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Sun, 8 Oct 2023 20:07:32 +0400 Subject: [PATCH] Add Python 3.12 and PyPy 3.10 to the supported versions. --- .github/workflows/main.yml | 18 ++++++++++++------ .pre-commit-config.yaml | 2 +- setup.py | 1 + 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f4f6136..53683e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,10 +6,10 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - uses: pre-commit/action@v3.0.0 tests: @@ -29,7 +29,10 @@ jobs: - python-version: 3.9 env: TOXENV: py - - python-version: pypy-3.8 + - python-version: pypy-3.9 + env: + TOXENV: py + - python-version: pypy-3.10 env: TOXENV: py - python-version: 3.9 @@ -41,15 +44,18 @@ jobs: - python-version: '3.11' env: TOXENV: py + - python-version: '3.12' + env: + TOXENV: py steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install system libraries if: contains(matrix.python-version, 'pypy') run: | sudo apt-get update sudo apt-get install libxml2-dev libxslt-dev - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 57fee0e..2ede084 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ default_language_version: - python: python3.10 + python: python3.12 repos: - hooks: - id: black diff --git a/setup.py b/setup.py index d1fdf92..4292dff 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ],