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

Make pipreqs not write duplicate lines to requirements.txt file #41

Merged
merged 3 commits into from
Feb 10, 2016
Merged

Make pipreqs not write duplicate lines to requirements.txt file #41

merged 3 commits into from
Feb 10, 2016

Conversation

dimp-gh
Copy link
Contributor

@dimp-gh dimp-gh commented Feb 10, 2016

Test file:

import pymongo
from bson.objectid import ObjectId

For this file pipreqs generates the following requirements.txt:

pymongo==3.2.1
pymongo==3.2.1

This pull-request fixes this unfortunate behaviour by patching get_pkg_names function.

@bndr
Copy link
Owner

bndr commented Feb 10, 2016

Thanks! Looks good

bndr added a commit that referenced this pull request Feb 10, 2016
Make pipreqs not write diplicate lines to requirements.txt file
@bndr bndr merged commit bd3f208 into bndr:master Feb 10, 2016
@dimp-gh dimp-gh changed the title Make pipreqs not write diplicate lines to requirements.txt file Make pipreqs not write duplicate lines to requirements.txt file Feb 10, 2016
@dimp-gh dimp-gh deleted the fix-duplicate-dependencies branch February 10, 2016 18:10
@evanxlao evanxlao mentioned this pull request Aug 2, 2023
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