Move betterproto → src/betterproto
This change avoids some nasty import issues and also ensures that the right code is tested and arbitrary code is not included when packaging.
This commit is contained in:
parent
cebf9176a3
commit
459d12b24d
4
Makefile
4
Makefile
@ -6,13 +6,13 @@ help: ## - Show this help.
|
||||
# Dev workflow tasks
|
||||
|
||||
generate: ## - Generate test cases (do this once before running test)
|
||||
poetry run ./tests/generate.py
|
||||
poetry run python -m tests.generate
|
||||
|
||||
test: ## - Run tests
|
||||
poetry run pytest --cov betterproto
|
||||
|
||||
types: ## - Check types with mypy
|
||||
poetry run mypy betterproto --ignore-missing-imports
|
||||
poetry run mypy src/betterproto --ignore-missing-imports
|
||||
|
||||
format: ## - Apply black formatting to source code
|
||||
poetry run black . --exclude tests/output_
|
||||
|
@ -7,8 +7,9 @@ readme = "README.md"
|
||||
repository = "https://github.com/danielgtaylor/python-betterproto"
|
||||
keywords = ["protobuf", "gRPC"]
|
||||
license = "MIT"
|
||||
|
||||
exclude = ["betterproto/tests"]
|
||||
packages = [
|
||||
{ include = "betterproto", from = "src" }
|
||||
]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.6"
|
||||
|
Loading…
x
Reference in New Issue
Block a user