From 222243293d6c8f0dbcdb9690cbaa852334e0b068 Mon Sep 17 00:00:00 2001 From: vvanglro Date: Wed, 10 Jan 2024 12:04:57 +0800 Subject: [PATCH] feat: 3.12 --- .github/workflows/release.yml | 8 ++++---- .github/workflows/test.yml | 8 ++++---- Cargo.toml | 7 ++++--- pyproject.toml | 1 + python/magic_rs/__version__.py | 2 +- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d297dd9..e2b97a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,8 +6,8 @@ on: workflow_dispatch: env: - MATURIN_VERSION: 1.1.0 - PY_ALL: 3.8 3.9 3.10 3.11 pypy3.8 pypy3.9 + MATURIN_VERSION: 1.3.0 + PY_ALL: 3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10 jobs: sdist: @@ -46,7 +46,7 @@ jobs: - os: ubuntu platform: linux - os: macos - interpreter: 3.8 3.9 3.10 3.11 pypy3.9 + interpreter: 3.8 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10 - os: ubuntu platform: linux target: aarch64 @@ -81,7 +81,7 @@ jobs: wheel-win: runs-on: windows-latest env: - PY_ALL: 3.8 3.9 3.10 3.11 C:\hostedtoolcache\windows\PyPy\3.9.17\x86\python3.exe + PY_ALL: 3.8 3.9 3.10 3.11 3.12 C:\hostedtoolcache\windows\PyPy\3.9.17\x86\python3.exe steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9365d2e..c9275c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: env: - MATURIN_VERSION: 1.1.0 + MATURIN_VERSION: 1.3.0 jobs: linux: @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8, 3.9, '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v2 @@ -40,7 +40,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8, 3.9, '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v2 @@ -64,7 +64,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8, 3.9, '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v2 diff --git a/Cargo.toml b/Cargo.toml index 16d9baf..fcc516a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "magic-rs" -version = "0.1.0" +version = "0.2.0" description = "Use rust infer crate to rewrite python-magic library" authors = [ "vvanglro " @@ -22,6 +22,7 @@ include = [ "/python/magic_rs", "/tests", "/.cargo", + "/build.rs", "!__pycache__", "!tests/.pytest_cache", "!tests/.benchmarks", @@ -36,10 +37,10 @@ crate-type = ["cdylib"] [dependencies] infer = "0.15.0" -pyo3 = { version = "0.19.2", features = ["extension-module"] } +pyo3 = { version = "=0.20.1", features = ["extension-module", "generate-import-lib"] } [build-dependencies] -pyo3-build-config = { version = "0.19.2", features = ["resolve-config"] } +pyo3-build-config = { version = "=0.20.1", features = ["resolve-config"] } [profile.release] codegen-units = 1 diff --git a/pyproject.toml b/pyproject.toml index 2727e7b..c7e8ef4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ classifiers = [ "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", "Programming Language :: Python", diff --git a/python/magic_rs/__version__.py b/python/magic_rs/__version__.py index 3dc1f76..d3ec452 100644 --- a/python/magic_rs/__version__.py +++ b/python/magic_rs/__version__.py @@ -1 +1 @@ -__version__ = "0.1.0" +__version__ = "0.2.0"