From 6f4bc34d51cf4f03d2840f003edb02f1d9d3c575 Mon Sep 17 00:00:00 2001 From: Dmitry Dygalo Date: Mon, 25 Apr 2022 19:00:30 +0200 Subject: [PATCH] build: Add Python 3.10 --- .github/workflows/build.yml | 2 +- .github/workflows/python-release.yml | 4 ++-- bindings/python/CHANGELOG.md | 4 ++++ bindings/python/Cargo.toml | 1 + bindings/python/README.rst | 2 +- bindings/python/setup.py | 1 + bindings/python/tox.ini | 2 +- 7 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3690bd3..e981dd7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -83,7 +83,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04, macos-11, windows-2019] - python-version: ['3.6', '3.7', '3.8', '3.9'] + python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] name: Python ${{ matrix.python-version }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index 0f80c61..8572c39 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: os: [macos-11, windows-2019] - python-version: ['3.6', '3.7', '3.8', '3.9'] + python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] architecture: [x86, x64] exclude: - os: macos-11 @@ -48,7 +48,7 @@ jobs: matrix: # List of the language-implementation API pairs to publish wheels for # The list of supported is obtainable by running `docker run quay.io/pypa/manylinux2014_x86_64 ls /opt/python` - PYTHON_IMPLEMENTATION_ABI: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39] + PYTHON_IMPLEMENTATION_ABI: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39, cp310-cp310] runs-on: ubuntu-20.04 container: quay.io/pypa/manylinux2014_x86_64 # Builds wheels on CentOS 7 (supported until 2024) env: diff --git a/bindings/python/CHANGELOG.md b/bindings/python/CHANGELOG.md index e9c6bfb..b1a428b 100644 --- a/bindings/python/CHANGELOG.md +++ b/bindings/python/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Added + +- Python 3.10 support + ## [0.14.0] - 2022-01-31 ### Added diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 62d9bbe..e6a8859 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -47,6 +47,7 @@ classifier = [ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", ] diff --git a/bindings/python/README.rst b/bindings/python/README.rst index 846074a..1105066 100644 --- a/bindings/python/README.rst +++ b/bindings/python/README.rst @@ -152,7 +152,7 @@ Measured with stable Rust 1.56, CPython 3.9.7 / PyPy3 7.3.6 on i8700K (12 cores) Python support -------------- -``jsonschema-rs`` supports CPython 3.6, 3.7, 3.8 and 3.9. +``jsonschema-rs`` supports CPython 3.6, 3.7, 3.8, 3.9, and 3.10. License ------- diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 5d69d95..91404f6 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -43,6 +43,7 @@ def call_setup(): "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Rust", ], diff --git a/bindings/python/tox.ini b/bindings/python/tox.ini index f8152e0..e23c4f3 100644 --- a/bindings/python/tox.ini +++ b/bindings/python/tox.ini @@ -3,7 +3,7 @@ # (workaround the fact that setup.py does not honor pyproject.toml) skipsdist = True -envlist = py{36,37,38,39} +envlist = py{36,37,38,39,310} [testenv] deps =