Switched to extra_requires for Python 2 specific requirements#16133
Conversation
|
Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement. After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.
Regards, |
Modern Python dependancy tooling as defined in PEP-508 should use environment markers for Python version specific requirements. This allows the `grpcio` package to work with dependancy resolvers like poetry
2ba99fb to
2e4ab7a
Compare
|
|
Thanks for the PR! (Note to self: watch the distribtests suite on master to ensure Python distribtests pass on all platforms after this change) |
|
Our distribtests are failing. Does Python2 pick up |
|
Apologies. Are you using a recent version of setuptools for the installation? I believe it needs to be fairly recent. An alternative is to use environmental markers in the install_requires section: https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-platform-specific-dependencies. But again this requires as recent version of setuptools. |
|
We have a bunch of docker images that we use to test our package installation: https://github.com/grpc/grpc/tree/master/tools/dockerfile/distribtest/ I'm not up to date with the state of affairs with |
|
FYI https://github.com/grpc/grpc/blob/master/test/distrib/python/test_packages.sh is the test we run within those docker images. |
|
Thanks @mehrdada. I will spend some more time on it today and make sure I can verify using the docker images. |
Modern Python dependancy tooling as defined in PEP-508 should use environment markers for Python version specific requirements.
This allows the
grpciopackage to work with dependancy resolvers like poetry