requirementslib icon indicating copy to clipboard operation
requirementslib copied to clipboard

Support parsing and formatting PEP 345-style dependency strings

Open uranusjr opened this issue 7 years ago • 4 comments
trafficstars

https://www.python.org/dev/peps/pep-0345/#requires-dist-multiple-use

Not sure whether this is a good idea, but just throwing it out here. This would be useful to interface with other tools e.g. Flit, which uses this style to specify requirements.

The parsing part is probably already supported (because packaging is used), but the formatting would need additional implementation.

uranusjr avatar Jul 25 '18 05:07 uranusjr

is this for resolution or for creating a requirement? IF the latter, what doesn't work atm?

techalchemy avatar Jul 25 '18 05:07 techalchemy

Specifically I’m experimenting on a PEP 517 build system that interfaces with Pipfile. That means I’ll need to extract Pipfile entries and convert them into Wheel and SDist metadata. They both specify dependencies in PEP 345 format.

uranusjr avatar Jul 25 '18 06:07 uranusjr

you're talking about pyproject.toml style implementations though right? Pep 345 metadata is already parsed somewhere, I just need to see an example project that has it implemented

techalchemy avatar Jul 25 '18 08:07 techalchemy

The parsing part is likely already supported, but it’d be helpful to be about to output to that form. Currently I’m formatting the line myself.

uranusjr avatar Jul 25 '18 19:07 uranusjr

I believe this is supported now, but willing to re-open if I am off-base.

matteius avatar Sep 12 '22 02:09 matteius