bndr/pipreqs

Support requirement extras in mapping file

Open

#103 opened on Oct 26, 2017

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Python (5,545 stars) (368 forks)batch import
enhancementhelp wantedmapping

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 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