-
Notifications
You must be signed in to change notification settings - Fork 84
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
Incompatible pinned requirements #921
Comments
Thanks for the report, Tom. urllib3 was updated for security reasons. the requests library should support the new version of urllib3. They are aware of the issue and planning on rolling out an upgrade for urllib3 1.25 soon (https://github.com/kennethreitz/requests/issues/5065). I think the best move is to wait for them. |
How about we say that |
I think we should add |
@t-b sure--I believe that's what is currently done with the requirements-doc.txt file |
@tjd2002 yeah |
@bendichter upon reading your link more closely: it looks like the security fix was backported to urllib3==1.24.3, so I think that's what we should use until requests updates. I'll push a PR for that. I'll also add pip check in a separate PR |
Actually @t-b, adding in Also, the instructions for generating the requirements files currently recommend a nice method of just using pip freeze to capture all the pinned requirements. Neither pip nor conda complains if there are exact duplicate lines across these files, so I think it's harmless to leave it with duplicate entries across these two files (at least for requirements-dev.txt. requirements-doc.txt does not have pinned versions, and looks like it has been manually managed, so I won't touch that for now). |
suggested next stepWaiting requests is updated to work with the fixed version of urllib3, I suggest to revert #914 pip check
Adding requirements files
The requirements files They contain duplicated packages due to the steps currently documented for updating them. On the other hand, the dependency specified in Lines 16 to 18 in 765aeb7
|
The security issue CVE-2019-9740 has been backported to the 1.24 series of urllib3 (see release notes section at https://pypi.org/project/urllib3/1.24.3/ ), so I think it is should be safe to use 1.24.3. This is what I did in #923.
OK this is done in #925. Adds |
Resolve urllib3 dependency conflict (fix #921)
Both requirements.txt and requirements-dev.txt include
requests=2.20.0
urllib=1.25.2
This leads to the following conflict:
Pip actually completes the install, but we should choose compatible pinned versions. Also, should add a call to
pip check
to CI so that we capture problems like this.The text was updated successfully, but these errors were encountered: