6 ms·
Not yet! We're thinking about it but it's hard to do in a spec-compliant way.
by zanie 2y ago
Not yet! We're thinking about it but it's hard to do in a spec-compliant way.
- zahlman 2y agoWhat actually would be the hiccup there? Can't you just edit pyproject.toml and add the pinned transitive dependencies to [project.dependencies], and let a build backend take it from there? That's the extent of the pinning that the wheel format supports, anyway, as far as I understand.
- eternityforest 2y agoKind of hacktastic but I guess you could make an external tool that backs up pyproject.toml, sets it to have whatever is installed in the .venv as pinned dependencies, builds the wheel, then restored the old file. Seems like the kind of thing that might have some kind of edge case somewhere I'm not thinking of at the moment though.
- zahlman 2y ago>Seems like the kind of thing that might have some kind of edge case somewhere I'm not thinking of at the moment though. It wouldn't support hashes, or anything else that you can't do with ordinary dependency specifiers in the project.dependencies list (spec: https://peps.python.org/pep-0508/ https://peps.python.org/pep-0508/).