pipreqs icon indicating copy to clipboard operation
pipreqs copied to clipboard

Optionally omit package version from requirements file

Open jonafato opened this issue 7 years ago • 2 comments

Developers don't always want to include pinned dependencies in the output generated by pipreqs (e.g. when using it in conjunction with pip-compile from https://github.com/jazzband/pip-tools). pipreqs should have a --no-pin option to omit versions when desired.

jonafato avatar Oct 20 '17 23:10 jonafato

Pip freeze always stores the version, but I like the idea of being able to omit the versions.

troyhoffman avatar Jan 23 '18 22:01 troyhoffman

It seems this has been implemented already, but I wanted to add another suggestion. I would find it helpful, even when omitting package versions, to indicate which version I have used. So my ideal output would be using >= rather than ==, still using the version number I have installed. This gives you the best of both worlds: You are not forcing any installer to an old version, but you still transmit the information which (old) version worked for you.

bersbersbers avatar Nov 18 '19 08:11 bersbersbers

Everything suggested here seems to have been implemented already, closing

alan-barzilay avatar Sep 21 '23 02:09 alan-barzilay