Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 61be887

Browse files
committed
Rename files, mark compilation working again
1 parent 5fe85a4 commit 61be887

File tree

204 files changed

+4713
-1229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+4713
-1229
lines changed

poetry.lock

Lines changed: 269 additions & 583 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poetry]
2-
name = "betterproto"
2+
name = "betterproto2_compiler"
33
version = "2.0.0b7"
44
description = "A better Protobuf / gRPC generator & library"
55
authors = ["Daniel G. Taylor <[email protected]>"]
@@ -8,11 +8,12 @@ repository = "https://github.com/danielgtaylor/python-betterproto"
88
keywords = ["protobuf", "gRPC"]
99
license = "MIT"
1010
packages = [
11-
{ include = "betterproto", from = "src" }
11+
{ include = "betterproto2_compiler", from = "src" }
1212
]
1313

1414
[tool.poetry.dependencies]
1515
python = "^3.10"
16+
betterproto = { git = "https://github.com/betterproto/python-betterproto2", rev = "881bd6e09a809dc61add4ae4ed6a3c70c1fca00a" }
1617
# The Ruff version is pinned. To update it, also update it in .pre-commit-config.yaml
1718
ruff = "~0.7.4"
1819
grpclib = "^0.4.1"
@@ -24,6 +25,7 @@ typing-extensions = "^4.7.1"
2425
jinja2 = ">=3.0.3"
2526
mypy = "^1.11.2"
2627
pre-commit = "^2.17.0"
28+
grpcio-tools = "^1.54.2"
2729
mkdocs-material = {version = "^9.5.49", python = ">=3.10"}
2830
mkdocstrings = {version = "^0.27.0", python = ">=3.10", extras = ["python"]}
2931

@@ -39,14 +41,14 @@ cachelib = "^0.10.2"
3941
tomlkit = ">=0.7.0"
4042

4143
[tool.poetry.scripts]
42-
protoc-gen-python_betterproto = "betterproto.plugin:main"
44+
protoc-gen-python_betterproto = "betterproto2_compiler.plugin:main"
4345

4446
[tool.poetry.extras]
4547
rust-codec = ["betterproto-rust-codec"]
4648

4749
[tool.ruff]
4850
extend-exclude = ["tests/output_*"]
49-
target-version = "py38"
51+
target-version = "py310"
5052
line-length = 120
5153

5254
[tool.ruff.lint]
@@ -108,7 +110,7 @@ help = "Build the sphinx docs"
108110
[tool.poe.tasks.generate_lib]
109111
cmd = """
110112
protoc
111-
--plugin=protoc-gen-custom=src/betterproto/plugin/main.py
113+
--plugin=protoc-gen-custom=src/betterproto2_compiler/plugin/main.py
112114
--custom_opt=INCLUDE_GOOGLE
113115
--custom_out=src/betterproto/lib/std
114116
-I /usr/local/include/

pytest.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/betterproto/lib/google/protobuf/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/betterproto/lib/google/protobuf/compiler/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)