requirements-parser
requirements-parser copied to clipboard
A Pip requirements file parser.
It would be nice to be able to parse a version with a trailing wildcard (e.g. `requirements-parser==0.5.*`), as defined in PEP440. I don't now much the library, maybe supporting such...
The type of `Requirement.specs` is declared to be `List[str]`: https://github.com/madpah/requirements-parser/blob/1ce923617147dd984c280d56cb1f02fcd3589a7c/requirements/requirement.py#L90 However, the actual type is `List[Tuple[str, str]]`, like `[('>', '1.5'), ('
See the attached example of uninstalling requirements-parser Notice that authors.rst, license and readme.md are uninstalled from the top level dir outside the requirements package. This is problematic since these files...
Currently this library fails to parse requirement lines of the form: `SomeProject@git+https://git.repo/[email protected][extra]` This feature should parse the above example to a `Requirements` as follows: ``` { "line": "SomeProject@git+https://git.repo/[email protected][extra]", "editable": false,...
As documented https://pip.pypa.io/en/stable/cli/pip_install/#examples (point 9), it is possible to define requirements as follows, which this library cannot parse at present: ``` python -m pip install SomeProject@http://my.package.repo/SomeProject-1.2.3-py33-none-any.whl python -m pip install...
As a follow-up to the https://github.com/madpah/requirements-parser/pull/63 it would be awesome if you could add support for private repositories (currently they are not (https://github.com/madpah/requirements-parser/blob/master/requirements/parser.py#L72-L76)). This came out of the detective work...
Signed-off-by: Abhijeet Kasurde
Draft PR for Release 1.0.0. Includes: - #72 - #71 Signed-off-by: Paul Horton
Pip allows for packages to be referenced locally using relative and absolute file paths (as documented in [Pip's Examples](https://pip.pypa.io/en/stable/cli/pip_install/#examples)). This feature will ensure that all valid variants of locally referenced...
The following issues and PRs all talk about addition of more _typing_ to `requirements-parser`: - #69 - #65 This feature will look to provide typing through addition of [Python Properties](https://docs.python.org/3/library/functions.html?highlight=property#property)...