Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add supported CPython/PyPy versions to cargo package metadata #4751

Open
messense opened this issue Dec 2, 2024 · 2 comments · May be fixed by #4756
Open

Add supported CPython/PyPy versions to cargo package metadata #4751

messense opened this issue Dec 2, 2024 · 2 comments · May be fixed by #4756

Comments

@messense
Copy link
Member

messense commented Dec 2, 2024

https://doc.rust-lang.org/cargo/reference/manifest.html#the-metadata-table

Currently maturin hardcodes minimal supported interpreter versions based on pyo3 versions, it'd be nice if this information is encoded in cargo package metadata of pyo3 and pyo3-ffi so we can make it future-proof in maturin.

For example:

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

[package.metadata.pypy]
version = ">=3.9,<3.11"
@messense messense changed the title Add minimal supported CPython/PyPy versions to cargo package metadata Add supported CPython/PyPy versions to cargo package metadata Dec 2, 2024
@davidhewitt
Copy link
Member

Seems like a good idea, I guess these are then available to maturin via cargo metadata?

@messense
Copy link
Member Author

messense commented Dec 3, 2024

Yes, that's the hope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants