Skip to content

Commit

Permalink
Merge pull request grpc#7776 from kpayson64/templatize_dependencies
Browse files Browse the repository at this point in the history
Use templates for python version dependencies
  • Loading branch information
nicolasnoble authored Aug 18, 2016
2 parents fedcf7d + 8348973 commit 9882e9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/python/grpcio_health_checking/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
}

SETUP_REQUIRES = (
'grpcio-tools>=0.15.0',
'grpcio-tools>={version}'.format(version=grpc_version.VERSION),
)

INSTALL_REQUIRES = (
'protobuf>=3.0.0',
'grpcio>=0.15.0',
'grpcio>={version}'.format(version=grpc_version.VERSION),
)

COMMAND_CLASS = {
Expand Down
10 changes: 3 additions & 7 deletions src/python/grpcio_tests/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,14 @@
'coverage>=4.0',
'enum34>=1.0.4',
'futures>=2.2.0',
'grpcio>=0.14.0',
'grpcio-health-checking>=0.14.0',
'grpcio>={version}'.format(version=grpc_version.VERSION),
'grpcio-tools>={version}'.format(version=grpc_version.VERSION),
'grpcio-health-checking>={version}'.format(version=grpc_version.VERSION),
'oauth2client>=1.4.7',
'protobuf>=3.0.0',
'six>=1.10',
)

SETUP_REQUIRES = (
'grpcio-tools>=0.14.0',
)

COMMAND_CLASS = {
# Run `preprocess` *before* doing any packaging!
'preprocess': commands.GatherProto,
Expand Down Expand Up @@ -115,7 +112,6 @@
package_dir=PACKAGE_DIRECTORIES,
package_data=PACKAGE_DATA,
install_requires=INSTALL_REQUIRES,
setup_requires=SETUP_REQUIRES,
cmdclass=COMMAND_CLASS,
tests_require=TESTS_REQUIRE,
test_suite=TEST_SUITE,
Expand Down
2 changes: 1 addition & 1 deletion tools/distrib/python/grpcio_tools/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def maybe_cythonize(exts):
namespace_packages=['grpc'],
install_requires=[
'protobuf>=3.0.0',
'grpcio>=0.15.0',
'grpcio>={version}'.format(version=grpc_version.VERSION),
],
package_data=package_data(),
)

0 comments on commit 9882e9b

Please sign in to comment.