2 ms·
What 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 buil
by zahlman 2y ago
What 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/).