Skip to content
Discussion options

You must be logged in to vote

aha, I was thinking along env var lines this is much easier:

pyo3/pyo3-ffi/Cargo.toml

Lines 52 to 54 in 1a3e53f

[package.metadata.cpython]
min-version = "3.7"
max-version = "3.14" # inclusive

hmmm

(comrak) louis 🌟 ~/dev/comrak $ cargo tree -i pyo3-ffi
pyo3-ffi v0.27.0
└── pyo3 v0.27.0
    └── comrak v0.1.0 (/home/louis/dev/comrak)

So I can get at this automatically via

PYO3_FFI_VERSION=$(cargo tree -i pyo3-ffi --edges no-dev,no-build,no-proc-macro --prefix none | head -n1 | cut -d " " -f 2 | sed 's/^v//')

or for situations without cargo // otherwise avoiding it (like possibly in CI before building it)

PYO3_FFI_VERSION=$(grep -m 1 -A 1 'name = "pyo3-ffi"' Cargo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lmmx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant