summaryrefslogtreecommitdiff
path: root/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild')
-rw-r--r--dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
index 000f78506f36..f534eab9e4c8 100644
--- a/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
+++ b/dev-python/python-betterproto/python-betterproto-2.0.0_beta4.ebuild
@@ -42,14 +42,16 @@ distutils_enable_tests pytest
distutils_enable_sphinx docs \
'>=dev-python/sphinx_rtd_theme-0.5.0'
+python_prepare() {
+ default
+ python_fix_shebang tests/generate.py src/betterproto/plugin/main.py
+}
+
python_test() {
"${EPYTHON}" -m tests.generate -v
epytest
}
pkg_postinst() {
- optfeature "protoc compilation support" dev-python/black
- optfeature "protoc compilation support" dev-python/isort
- optfeature "protoc compilation support" dev-python/grpcio-tools
- optfeature "protoc compilation support" dev-python/jinja
+ optfeature "protoc compilation support" "dev-python/black dev-python/isort dev-python/grpcio-tools dev-python/jinja"
}