Re:Show HN: Python requirements for Humans
by pietroalbini on Monday March 21, 2016 @01:37PM
(#11329956)
pip is not meant to be used as an API, and there is no backward compatibility guarantee, AFAIK.
There is an ongoing effort to extract all its logic into separated packages [1], thought.
> Also, unfortunately pip's parser for requirements.txt isn't public
I am not sure what you mean by "isn't public." The API is "private" or the parser is proprietary? or the API is not isolated to its own (like Ansible's command line parser is stuck inside a giant function). If the second I would be super surprise.
But I am with the repo author. I think we just need one format, one way to do things. The implementation however, needs to be discussed as the example code is pretty redundant in the effort, would be much nicer if we can just provide the path in setup.py and pip reads off setup.py and consume requirements.txt. For god sake this is dependency declaration, ain't package management.