Skip to content

Commit

Permalink
Add supported CPython/PyPy versions to cargo package metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 3, 2024
1 parent 2ed3bb4 commit 1aaca98
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ hashbrown = { version = ">= 0.14.5, < 0.16", optional = true }
indexmap = { version = ">= 2.5.0, < 3", optional = true }
num-bigint = { version = "0.4.2", optional = true }
num-complex = { version = ">= 0.4.6, < 0.5", optional = true }
num-rational = {version = "0.4.1", optional = true }
num-rational = { version = "0.4.1", optional = true }
rust_decimal = { version = "1.15", default-features = false, optional = true }
serde = { version = "1.0", optional = true }
smallvec = { version = "1.0", optional = true }
Expand All @@ -63,7 +63,7 @@ rayon = "1.6.1"
futures = "0.3.28"
tempfile = "3.12.0"
static_assertions = "1.1.0"
uuid = {version = "1.10.0", features = ["v4"] }
uuid = { version = "1.10.0", features = ["v4"] }

[build-dependencies]
pyo3-build-config = { path = "pyo3-build-config", version = "=0.23.2", features = ["resolve-config"] }
Expand Down Expand Up @@ -150,6 +150,12 @@ no-default-features = true
features = ["full"]
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.cpython]
version = ">=3.7,<3.14"

[package.metadata.pypy]
version = ">=3.9,<3.11"

[workspace.lints.clippy]
checked_conversions = "warn"
dbg_macro = "warn"
Expand Down
1 change: 1 addition & 0 deletions newsfragments/4756.packaging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add supported CPython/PyPy versions to cargo package metadata.
6 changes: 6 additions & 0 deletions pyo3-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ pyo3-build-config = { path = "../pyo3-build-config", version = "=0.23.2", featur

[lints]
workspace = true

[package.metadata.cpython]
version = ">=3.7,<3.14"

[package.metadata.pypy]
version = ">=3.9,<3.11"

0 comments on commit 1aaca98

Please sign in to comment.