Skip to content

Commit 459d12b

Browse files
abnboukeversteegh
authored andcommitted
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.
1 parent cebf917 commit 459d12b

File tree

19 files changed

+5
-4
lines changed

19 files changed

+5
-4
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ help: ## - Show this help.
66
# Dev workflow tasks
77

88
generate: ## - Generate test cases (do this once before running test)
9-
poetry run ./tests/generate.py
9+
poetry run python -m tests.generate
1010

1111
test: ## - Run tests
1212
poetry run pytest --cov betterproto
1313

1414
types: ## - Check types with mypy
15-
poetry run mypy betterproto --ignore-missing-imports
15+
poetry run mypy src/betterproto --ignore-missing-imports
1616

1717
format: ## - Apply black formatting to source code
1818
poetry run black . --exclude tests/output_

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ readme = "README.md"
77
repository = "https://github.com/danielgtaylor/python-betterproto"
88
keywords = ["protobuf", "gRPC"]
99
license = "MIT"
10-
11-
exclude = ["betterproto/tests"]
10+
packages = [
11+
{ include = "betterproto", from = "src" }
12+
]
1213

1314
[tool.poetry.dependencies]
1415
python = "^3.6"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)