Make compiler dependencies optional

This commit is contained in:
Daniel G. Taylor
2019-10-22 21:08:30 -07:00
parent 5dae20970b
commit 109dc5a8a5
3 changed files with 17 additions and 5 deletions

View File

@@ -14,7 +14,9 @@ setup(
packages=find_packages(
exclude=["tests", "*.tests", "*.tests.*", "output", "output.*"]
),
package_data={"betterproto": ["py.typed", "templates"]},
install_requires=["grpclib", "protobuf"],
package_data={"betterproto": ["py.typed", "templates/template.py"]},
python_requires=">=3.7",
install_requires=["grpclib"],
extras_require={"compiler": ["jinja2", "protobuf"]},
zip_safe=False,
)