Skip to content

Commit 2222432

Browse files
committed
feat: 3.12
1 parent 29d08fb commit 2222432

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
workflow_dispatch:
77

88
env:
9-
MATURIN_VERSION: 1.1.0
10-
PY_ALL: 3.8 3.9 3.10 3.11 pypy3.8 pypy3.9
9+
MATURIN_VERSION: 1.3.0
10+
PY_ALL: 3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10
1111

1212
jobs:
1313
sdist:
@@ -46,7 +46,7 @@ jobs:
4646
- os: ubuntu
4747
platform: linux
4848
- os: macos
49-
interpreter: 3.8 3.9 3.10 3.11 pypy3.9
49+
interpreter: 3.8 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10
5050
- os: ubuntu
5151
platform: linux
5252
target: aarch64
@@ -81,7 +81,7 @@ jobs:
8181
wheel-win:
8282
runs-on: windows-latest
8383
env:
84-
PY_ALL: 3.8 3.9 3.10 3.11 C:\hostedtoolcache\windows\PyPy\3.9.17\x86\python3.exe
84+
PY_ALL: 3.8 3.9 3.10 3.11 3.12 C:\hostedtoolcache\windows\PyPy\3.9.17\x86\python3.exe
8585
steps:
8686
- uses: actions/checkout@v3
8787
- uses: actions/setup-python@v4

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88
workflow_dispatch:
99

1010
env:
11-
MATURIN_VERSION: 1.1.0
11+
MATURIN_VERSION: 1.3.0
1212

1313
jobs:
1414
linux:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: [3.8, 3.9, '3.10', '3.11']
19+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
2020

2121
steps:
2222
- uses: actions/checkout@v2
@@ -40,7 +40,7 @@ jobs:
4040
strategy:
4141
fail-fast: false
4242
matrix:
43-
python-version: [3.8, 3.9, '3.10', '3.11']
43+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
4444

4545
steps:
4646
- uses: actions/checkout@v2
@@ -64,7 +64,7 @@ jobs:
6464
strategy:
6565
fail-fast: false
6666
matrix:
67-
python-version: [3.8, 3.9, '3.10', '3.11']
67+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
6868

6969
steps:
7070
- uses: actions/checkout@v2

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "magic-rs"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
description = "Use rust infer crate to rewrite python-magic library"
55
authors = [
66
"vvanglro <[email protected]>"
@@ -22,6 +22,7 @@ include = [
2222
"/python/magic_rs",
2323
"/tests",
2424
"/.cargo",
25+
"/build.rs",
2526
"!__pycache__",
2627
"!tests/.pytest_cache",
2728
"!tests/.benchmarks",
@@ -36,10 +37,10 @@ crate-type = ["cdylib"]
3637

3738
[dependencies]
3839
infer = "0.15.0"
39-
pyo3 = { version = "0.19.2", features = ["extension-module"] }
40+
pyo3 = { version = "=0.20.1", features = ["extension-module", "generate-import-lib"] }
4041

4142
[build-dependencies]
42-
pyo3-build-config = { version = "0.19.2", features = ["resolve-config"] }
43+
pyo3-build-config = { version = "=0.20.1", features = ["resolve-config"] }
4344

4445
[profile.release]
4546
codegen-units = 1

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ classifiers = [
1616
"Programming Language :: Python :: 3.9",
1717
"Programming Language :: Python :: 3.10",
1818
"Programming Language :: Python :: 3.11",
19+
"Programming Language :: Python :: 3.12",
1920
"Programming Language :: Python :: Implementation :: CPython",
2021
"Programming Language :: Python :: Implementation :: PyPy",
2122
"Programming Language :: Python",

python/magic_rs/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.0"
1+
__version__ = "0.2.0"

0 commit comments

Comments
 (0)