Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --extra option for extra packages in requirements.txt file #377

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Temerold
Copy link

@Temerold Temerold commented Jun 16, 2023

By using the --extra option, users can add custom packages to the requirements.txt file, like so:
$ pipreqs --extra pipreqs,example
This command generates the correct file, alphabetized and all, including pipreqs and example (in this case).

This adds pipreqs itself and example to the requirements.txt file, as my original intention was to add pipreqs to the requirements.txt file. (I know there are severely easier ways to do so, but I implemented it anyway.)

I added the test_extra_module test, which it passed alongside all other tests; should be good to go!

@Temerold Temerold changed the title Add --extra option Add --extra option for extra packages in requirements.txt file Jun 16, 2023
Copy link

@Borda Borda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be great addition

@Temerold
Copy link
Author

this would be great addition

Thank you!

This repo seems however to be very inactive, and I'm thinking about forking and making my own pip package at this point....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants