Merge pull request #23170 from lidizheng/setup-extras

Add protobuf as an "extras" dependency to grpcio package
pull/23246/head
Lidi Zheng 5 years ago committed by GitHub
commit 2729f08364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      requirements.bazel.txt
  2. 2
      requirements.txt
  3. 4
      setup.py
  4. 2
      tools/distrib/python/grpcio_tools/setup.py

@ -2,7 +2,7 @@
coverage>=4.0
cython>=0.29.8
enum34>=1.0.4
protobuf>=3.5.0.post1
protobuf>=3.5.0.post1, < 4.0dev
six>=1.10
wheel>=0.29
futures>=2.2.0

@ -2,6 +2,6 @@
coverage>=4.0
cython>=0.29.8
enum34>=1.0.4
protobuf>=3.5.0.post1
protobuf>=3.5.0.post1, < 4.0dev
six>=1.10
wheel>=0.29

@ -355,6 +355,9 @@ INSTALL_REQUIRES = (
"futures>=2.2.0; python_version<'3.2'",
"enum34>=1.0.4; python_version<'3.4'",
)
EXTRAS_REQUIRES = {
'protobuf': 'grpcio-tools>={version}'.format(version=grpc_version.VERSION),
}
SETUP_REQUIRES = INSTALL_REQUIRES + (
'Sphinx~=1.8.1',
@ -417,6 +420,7 @@ setuptools.setup(
package_dir=PACKAGE_DIRECTORIES,
package_data=PACKAGE_DATA,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRES,
setup_requires=SETUP_REQUIRES,
cmdclass=COMMAND_CLASS,
)

@ -219,7 +219,7 @@ setuptools.setup(
ext_modules=extension_modules(),
packages=setuptools.find_packages('.'),
install_requires=[
'protobuf>=3.5.0.post1',
'protobuf>=3.5.0.post1, < 4.0dev',
'grpcio>={version}'.format(version=grpc_version.VERSION),
],
package_data=package_data(),

Loading…
Cancel
Save