pipreqs icon indicating copy to clipboard operation
pipreqs copied to clipboard

Wrong package version

Open pastet89 opened this issue 5 years ago • 4 comments

Using pipreqs I got: Django==2.1.5 while my version was Django==2.0.

pastet89 avatar Feb 28 '19 18:02 pastet89

base on the code pipreqs.py 200 line ,it always return the new version!

       result.append({'name': item, 'version': data.latest_release_id})

uxlsl avatar Mar 12 '19 08:03 uxlsl

Well, interesting finding! However, isn't this supposed to be an unexpected behavior?

pastet89 avatar Mar 12 '19 09:03 pastet89

so caution while using!

uxlsl avatar Mar 13 '19 03:03 uxlsl

I suggest that this ia changed in later versions. If I try to fix it and contribute to the project, will @bndr accept my contribution?

На ср, 13 март 2019 г., 5:44 uxlsl [email protected] написа:

so caution while using!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bndr/pipreqs/issues/158#issuecomment-472268194, or mute the thread https://github.com/notifications/unsubscribe-auth/AHH4ARcH6hZjhTWzxXOC9e3UBo4MCIGNks5vWHQJgaJpZM4bXdPJ .

pastet89 avatar Mar 13 '19 08:03 pastet89

I'd strongly recommend to change the behavior to what @pastet89 suggests, I'd guess that this is what most people assume when saving requirements. The goal most people pursue is probably to have a reproducible install on another machine.

neopostmodern avatar Mar 28 '19 13:03 neopostmodern

I think using the --use-local option is the safest.

imlison avatar Jul 24 '19 12:07 imlison