@@ -17,7 +17,6 @@ black = { version = ">=19.3b0", optional = true }
1717dataclasses = { version = " ^0.7" , python = " >=3.6, <3.7" }
1818grpclib = " ^0.4.1"
1919jinja2 = { version = " ^2.11.2" , optional = true }
20- protobuf = { version = " ^3.12.2" , optional = true }
2120python-dateutil = " ^2.8"
2221
2322[tool .poetry .dev-dependencies ]
@@ -26,7 +25,7 @@ bpython = "^0.19"
2625grpcio-tools = " ^1.30.0"
2726jinja2 = " ^2.11.2"
2827mypy = " ^0.770"
29- poethepoet = " ^0.5 .0"
28+ poethepoet = " >=0.9 .0"
3029protobuf = " ^3.12.2"
3130pytest = " ^5.4.2"
3231pytest-asyncio = " ^0.12.0"
@@ -43,7 +42,7 @@ asv = "^0.4.2"
4342protoc-gen-python_betterproto = " betterproto.plugin:main"
4443
4544[tool .poetry .extras ]
46- compiler = [" black" , " jinja2" , " protobuf " ]
45+ compiler = [" black" , " jinja2" ]
4746
4847[tool .poe .tasks ]
4948# Dev workflow tasks
@@ -55,6 +54,16 @@ docs = { cmd = "sphinx-build docs docs/build", help = "Build the sphinx d
5554bench = { shell = " asv run master^! && asv run HEAD^! && asv compare master HEAD" , help = " Benchmark current commit vs. master branch" }
5655clean = { cmd = " rm -rf .asv .coverage .mypy_cache .pytest_cache dist betterproto.egg-info **/__pycache__ tests/output_*" , help = " Clean out generated files from the workspace" }
5756
57+ generate_lib.cmd = """
58+ protoc
59+ --plugin=protoc-gen-custom=src/betterproto/plugin/main.py
60+ --custom_opt=INCLUDE_GOOGLE
61+ --custom_out=src/betterproto/lib
62+ -I /usr/local/include/
63+ /usr/local/include/google/protobuf/**/*.proto
64+ """
65+ generate_lib.help = " Regenerate the types in betterproto.lib.google"
66+
5867# CI tasks
5968full-test = { shell = " poe generate && tox" , help = " Run tests with multiple pythons" }
6069check-style = { cmd = " black . --check --diff --exclude tests/output_" , help = " Check if code style is correct" }
0 commit comments