Open pyfreyr opened 1 year ago
I feel this is mostly a duplicate of https://github.com/python-poetry/roadmap/issues/3 -- you want to get top-level dependency information, and PEP 621 metadata will be the best way for Poetry to expose that, as it will require no special tools to extract.
What use case do you have for locked versions/hashes of top-level deps? Or do you just want the information exposed in PEP 621?
yes, the locked versions of top level deps. Keep simple and concise of requirements.txt for reading
I prefer the requirements.txt of vcs to build docker image, i think it will easy to use cache and read if export simple. If use pyproject.toml, any change will break docker cache strategy, such as version updated which not affect depends.
pyproject.toml:
now
poetry export
output:Maybe we can support option to output top packages that only specified by pyproject.toml directly(the example above is just
httpx
)Expected export: