chore: Update `pyo3` to `0.16` & drop Python 3.6 support

This commit is contained in:
Dmitry Dygalo 2022-03-23 11:23:56 +01:00 committed by Dmitry Dygalo
parent 606b52c518
commit fc779c8c39
6 changed files with 18 additions and 11 deletions

View File

@ -103,7 +103,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10']
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

View File

@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [macos-11, windows-2019]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['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, cp310-cp310]
PYTHON_IMPLEMENTATION_ABI: [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:

View File

@ -9,6 +9,15 @@
### Fixed
- Installation error due to `pyo3-built` incompatibility
- Memory leak in `iter_errors`. [#325](https://github.com/Stranger6667/jsonschema-rs/issues/325)
### Changed
- Update `pyo3` to `0.16`.
### Removed
- Support for Python 3.6
## [0.14.0] - 2022-01-31

View File

@ -25,13 +25,13 @@ default-features = false
features = ["resolve-http", "resolve-file"]
[dependencies]
serde_json = "1"
serde = "1"
pyo3 = { version = "^0.15", features = ["extension-module"] }
serde_json = "1.0.81"
serde = "1.0.137"
pyo3 = { version = "0.16.4", features = ["extension-module"] }
pyo3-built = "0.4.7"
[package.metadata.maturin]
requires-python = ">=3.6"
requires-python = ">=3.7"
project-url = { repository = "https://github.com/Stranger6667/jsonschema-rs" }
maintainer = "Dmitry Dygalo"
maintainer-email = "Dmitry Dygalo <dadygalo@gmail.com>"
@ -43,7 +43,6 @@ classifier = [
"Operating System :: OS Independent",
"Programming Language :: Rust",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",

View File

@ -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, 3.9, and 3.10.
``jsonschema-rs`` supports CPython 3.7, 3.8, 3.9, and 3.10.
License
-------

View File

@ -29,7 +29,7 @@ def call_setup():
author_email="dadygalo@gmail.com",
maintainer="Dmitry Dygalo",
maintainer_email="dadygalo@gmail.com",
python_requires=">=3.6",
python_requires=">=3.7",
url="https://github.com/Stranger6667/jsonschema-rs/tree/master/python",
license="MIT",
rust_extensions=[RustExtension("jsonschema_rs", binding=Binding.PyO3)],
@ -39,7 +39,6 @@ def call_setup():
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",