bndr / bndr/pipreqs

Support requirement extras in mapping file

Open
#103 0 comments 1 reaction 0 assignees View on GitHub
enhancement help wanted mapping
Dominant language
Python
Stars
7.5k
Forks
424
PR merge metrics
No merged PRs in 30d

Description

Per #61, it's occasionally useful to be able to use an `extras` requirement (e.g. `requests[security]` or `scikit-learn[alldeps]`). This can be accomplished using [`Requirement` objects](https://setuptools.readthedocs.io/en/latest/pkg_resources.html#requirement-objects) and the `Requirement.parse` method to extract the name prior to performing a search against the package index API and to add it back during the serialization step.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.