Update pip, setuptools, wheel, and parse requirements from METADATA #263
Conversation
|
Looks like this fails due to missing
|
|
This looks to be due to the |
6cde0d8
to
f641e95
|
This PR fixed my issues with Tensorflow and didn't introduce any regressions fwiw. How do we get a reviewer? |
|
Any update on this? This PR fixes several packages for us. Currently unable to use rules_python without this. |
|
How does this pass the test on version check? This PR does not touch the line to assert for Pip version 9.0.3: yet CI says:
|
|
Would you be able to provide some timeline for when you might be able to resolve conflicts / review and merge this PR? I'm content w/ the prescribed workaround but it would be awesome if I didn't have to list out all the transitive deps of a package. Cheers! |
f641e95
to
25141f3
* Also updates setuptools and wheel * Use pkg_resources to parse METADATA
25141f3
to
7ed8458
|
I've rebased! For what it's worth we ended up moving to https://github.com/dillon-giacoppo/rules_python_external |
|
So will this be merged? Or am I supposed to use
On a side note, do I still need this change if I simply always have a transitively-closed requirements.txt? |
|
Hey @dayfine, I maintain The relationship between If
This change is affecting how the |
|
@thundergolfer Semi-related to this issue is the dependency on the system installed version of python. Regardless of where these rules will be maintained, I put together a small rules project to address that bit of it. (https://github.com/digital-plumbers-union/rules_pyenv) For this issue, my thought is that bazel controlled versions of python would aid the bits around pip, wheels and setuptools; ensuring those too are hermetic/ bazel controlled. Anyway, I wanted to update this post with that link while I was thinking about it. Maybe you guys will find it useful too! ¯_(ツ)_/¯ |
This updates pip, setuptools, and wheel, and switches to parsing METADATA instead of metadata.json
Due to changes in pypa/wheel#195, wheel no longer includes a metadata.json, so I've also switched to using
pkg_resourcesto parse the package metadata and resolve dependencies and extras. This was most obvious in packages where wheels were built locally, but after making the change it was obvious that this should also fix some metadata related bugs.As it is currently, this might cause issues with extras for packages that only include the extras in metadata.json, but I wasn't able to find any packages that did this.
Fixes #126, #253, #95, #70, #185