Skip to content

Commit 54f87b4

Browse files
committed
feat: read build-details.json (PEP 739) for version detection (Fixes #449)
Python 3.14+ ships a build-details.json file in the platform-independent stdlib directory. Use it as a faster, more authoritative source than parsing patchlevel.h headers, slotting it between pyvenv.cfg and the existing header-based fallback in the version detection chain.
1 parent 53a78ed commit 54f87b4

8 files changed

Lines changed: 631 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pet-python-utils/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ serde_json = "1.0.93"
1818
sha2 = "0.10.6"
1919
env_logger = "0.10.2"
2020

21+
[dev-dependencies]
22+
tempfile = "3.10"
23+
2124
[features]
2225
ci = []
2326
ci-jupyter-container = []

0 commit comments

Comments
 (0)