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

Dev requirements are included when using Pipenv #87

Closed
Tethik opened this issue Oct 10, 2017 · 6 comments
Closed

Dev requirements are included when using Pipenv #87

Tethik opened this issue Oct 10, 2017 · 6 comments

Comments

@Tethik
Copy link
Contributor

Tethik commented Oct 10, 2017

When generating requirements.txt from a pipenv/pipfile, development dependencies are perhaps unnecessarily included. The package size could be reduced by avoiding this somehow.

Unfortunately pipenv does not support locking develop dependencies: https://github.com/kennethreitz/pipenv/issues/245

@dschep
Copy link
Collaborator

dschep commented Oct 10, 2017

Huh, I'm on the side of the folks who expected lock -r to omit dev dependencies. That script in a comment on that PR may be useful.

@Tethik
Copy link
Contributor Author

Tethik commented Oct 10, 2017

Same!

Another approach I was thinking of was to do something like:

mkdir tmp
cp Pipfile.lock tmp/ && cd !$
pipenv install # without dev 
pipenv run pip freeze > requirements.txt 

However that will leave behind an unused virtualenv, as well as download the requirements twice.

@kadrach
Copy link

kadrach commented Nov 7, 2017

This is fixed by updating pipenv.

@dschep
Copy link
Collaborator

dschep commented Nov 7, 2017

Awesome! Thanks for pointing that out @kadrach

@dschep dschep closed this as completed Nov 7, 2017
@Tethik
Copy link
Contributor Author

Tethik commented Nov 8, 2017

Yep! Works for me now too with pipenv v8.3.2 and I can happily use the Pipfile instead of requirements.txt

@heri16
Copy link
Contributor

heri16 commented Dec 15, 2017

Might need to reopen this issue due to packages like Cython which is required during the build process. #113

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

No branches or pull requests

4 participants