wishlist: parseable dependency list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Hi guys!
First of all, thanks so much for working on PBR, which is really a wonderful software for package maintainers. So far, I just love it.
Robert Collins told me that requirements.txt and test-requiremen
For example, what would be great would be something like:
pbr extract-
and
pbr extract-
that would just output on stdout a list of package and their required version. Large amount of bonus points if it can only tell me about the lower bound of the dependencies (as this is practically the only information which should be wired in the debian/control file).
My end result would be something like this, which I currently already produce with "pkgos-
Build-Depends: debhelper (>= 9),
Build-Depends-
Depends: python-babel,
python-six (>= 1.9.0),
I can of course parse and rework the output of pbr with such proposed new options instead of the currently existing requirements.txt. Though the thing which I don't want is too much hacking extracting the needed info from setup.cfg so that it produces what I have already right now through the requirements.txt.
Just to make it clear: this currently is only helpers for me, as a package maintainer, and this is not (yet) a fully automated tool. However, I may some day implement this as a lintian check (this is on my todo list), so probably it'd be a good idea to have it written in a not-so-dirty way.
So, considerations:
- that list isn't python version aware, let alone the full capabilities of markers.
- egg_info is the standard interchange for python packaging metadata today. I don't see much value in building a different format which would need to be parsed separately.
- as far as files go, just running setup.py *anything* is likely to create a file due to easy_install. We want to fix that, but thats where it is today.