-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv incorrectly resolves dev-dependencies #1220
Comments
this is a known bug — |
I would lean toward #1177 (comment) as a solution |
Is there a workaround until a release is made to fix this issue? |
Current workaround is to repeat production dependencies in |
I've thrown together a script to help detect conflicting versions between the different sections of It's not that pretty, but it works. :) |
Another side effect of this that I noticed in #1342 is that In my mind, the dev packages section is meant to be complimentary/additive to the dependencies in the main section, not alternative set of dependencies. Therefore, I think that @techalchemy's suggestion of a flat |
fixed |
Pro-tip: You may still encounter this bug after upgrading if your lockfile was generated before the fix. Removing then creating a new lockfile with an updated Pipenv fixes the issue for me. |
Where was this fixed? I'm experiencing the issue with:
|
I also still have this problem with pipenv 2018.11.26 and Python 3.7.2 on Linux. |
When installing
dev
dependencies some packages receive wrong versions.These packages seem to ignore constraints defined in
Pipfile
.Describe your environment
$ python -V
, 3.6.2$ pipenv --version
, 9.0.1Expected result
I expect that
django==1.11
will be installed.Actual result
django==2.0
is installed.Steps to replicate
Pipfile
Pipfile.lock
Now, run
pipenv install --dev
.And
pip freeze
just to be sure:As you can see
django==2.0
violates my constraintdjango<1.12
.The text was updated successfully, but these errors were encountered: