Skip to content

Commit d9c9ba1

Browse files
committed
Update pyprojects
1 parent 25e1d04 commit d9c9ba1

4 files changed

Lines changed: 39 additions & 40 deletions

File tree

betterproto2/pyproject.toml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ authors = [
66
{name = "Adrien Vannson", email = "adrien.vannson@protonmail.com"},
77
{name = "Daniel G. Taylor", email = "danielgtaylor@gmail.com"}
88
]
9-
# readme = "../README.md"
109
keywords = ["protobuf", "gRPC"]
1110
license = "MIT"
1211
requires-python = ">=3.10,<4.0"
@@ -25,8 +24,34 @@ grpclib = ["grpclib>=0.4.8"]
2524
pydantic = ["pydantic>=2.11.5"]
2625
all = ["grpclib>=0.4.8", "grpcio>=1.72.1", "pydantic>=2.11.5"]
2726

27+
[dependency-groups]
28+
dev = [
29+
"ipykernel>=6.29.5",
30+
"mkdocs-material>=9.6.14",
31+
"mkdocstrings[python]>=0.29.1",
32+
"mypy>=1.16.0",
33+
"pre-commit>=4.2.0",
34+
"pyright>=1.1.401",
35+
# The Ruff version is pinned. To update it, also update it in .pre-commit-config.yaml
36+
"ruff==0.9.3",
37+
]
38+
test = [
39+
"cachelib>=0.13.0",
40+
"poethepoet>=0.34.0",
41+
"protobuf>=5.29.3",
42+
"pytest>=8.4.0",
43+
"pytest-asyncio>=1.0.0",
44+
"pytest-cov>=6.1.1",
45+
"pytest-mock>=3.14.1",
46+
]
47+
2848
[tool.uv]
2949
package = true
50+
default-groups = "all"
51+
52+
[build-system]
53+
requires = ["hatchling"]
54+
build-backend = "hatchling.build"
3055

3156
# [tool.poetry]
3257
# packages = [
@@ -67,7 +92,7 @@ addopts = "-p no:warnings"
6792
# Dev workflow tasks
6893
[tool.poe.tasks.get-local-compiled-tests]
6994
# task useful for local development. Copies the compiled test files from the compiler folder to the tests folder
70-
shell = "rm -r tests/output_* && cp -r ../python-betterproto2-compiler/tests/output_* tests"
95+
shell = "rm -rf tests/output_* && cp -r ../betterproto2_compiler/tests/output_* tests"
7196

7297
[tool.poe.tasks.test]
7398
cmd = "pytest"
@@ -127,28 +152,3 @@ help = "Pulls the compiled test files from the betterproto2-compiler repository"
127152
[tool.poe.tasks.serve-docs]
128153
cmd = "mkdocs serve"
129154
help = "Serve the documentation locally"
130-
131-
[build-system]
132-
requires = ["hatchling"]
133-
build-backend = "hatchling.build"
134-
135-
[dependency-groups]
136-
dev = [
137-
"ipykernel>=6.29.5",
138-
"mkdocs-material>=9.6.14",
139-
"mkdocstrings[python]>=0.29.1",
140-
"mypy>=1.16.0",
141-
"pre-commit>=4.2.0",
142-
"pyright>=1.1.401",
143-
# The Ruff version is pinned. To update it, also update it in .pre-commit-config.yaml
144-
"ruff==0.9.3",
145-
]
146-
test = [
147-
"cachelib>=0.13.0",
148-
"poethepoet>=0.34.0",
149-
"protobuf>=5.29.3",
150-
"pytest>=8.4.0",
151-
"pytest-asyncio>=1.0.0",
152-
"pytest-cov>=6.1.1",
153-
"pytest-mock>=3.14.1",
154-
]

betterproto2/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

betterproto2_compiler/pyproject.toml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ authors = [
66
{ name = "Adrien Vannson", email = "adrien.vannson@protonmail.com" },
77
{ name = "Daniel G. Taylor", email = "danielgtaylor@gmail.com" },
88
]
9-
requires-python = ">=3.10,<4.0"
109
license = "MIT"
1110
keywords = [
1211
"protobuf",
1312
"gRPC",
1413
"compiler",
1514
]
15+
requires-python = ">=3.10,<4.0"
1616
dependencies = [
17+
# TODO use the version from the current repo?
1718
"betterproto2[grpclib]>=0.5.1,<0.6",
1819
"ruff~=0.9.3",
1920
"jinja2>=3.0.3",
@@ -42,19 +43,17 @@ test = [
4243
]
4344

4445
[tool.uv]
45-
default-groups = [
46-
"dev",
47-
"test",
48-
]
46+
package = true
47+
default-groups = "all"
4948

50-
[tool.hatch.build.targets.sdist]
51-
include = ["src/betterproto2_compiler"]
49+
# [tool.hatch.build.targets.sdist]
50+
# include = ["src/betterproto2_compiler"]
5251

53-
[tool.hatch.build.targets.wheel]
54-
include = ["src/betterproto2_compiler"]
52+
# [tool.hatch.build.targets.wheel]
53+
# include = ["src/betterproto2_compiler"]
5554

56-
[tool.hatch.build.targets.wheel.sources]
57-
"src/betterproto2_compiler" = "betterproto2_compiler"
55+
# [tool.hatch.build.targets.wheel.sources]
56+
# "src/betterproto2_compiler" = "betterproto2_compiler"
5857

5958
[build-system]
6059
requires = ["hatchling"]

betterproto2_compiler/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)