Skip to content

Commit e6fa226

Browse files
Migrate from setuptools to uv_build
Replace setuptools build backend with uv_build (v0.9.28) for all three workspace members. Configure explicit module names for namespace packages (nats.client, nats.server) and the main nats package.
1 parent a2ce783 commit e6fa226

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

nats-core/pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=61.0"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["uv_build>=0.9.28,<0.10.0"]
3+
build-backend = "uv_build"
44

55
[project]
66
name = "nats-core"
@@ -32,8 +32,8 @@ Documentation = "https://github.com/nats-io/nats.py"
3232
Issues = "https://github.com/nats-io/nats.py/issues"
3333
Source = "https://github.com/nats-io/nats.py"
3434

35-
[tool.setuptools.packages.find]
36-
where = ["src"]
35+
[tool.uv.build-backend]
36+
module-name = "nats.client"
3737

3838
[dependency-groups]
3939
dev = [

nats-server/pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=61.0"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["uv_build>=0.9.28,<0.10.0"]
3+
build-backend = "uv_build"
44

55
[project]
66
name = "nats-server"
@@ -30,8 +30,8 @@ Documentation = "https://github.com/nats-io/nats.py"
3030
Issues = "https://github.com/nats-io/nats.py/issues"
3131
Source = "https://github.com/nats-io/nats.py"
3232

33-
[tool.setuptools.packages.find]
34-
where = ["src"]
33+
[tool.uv.build-backend]
34+
module-name = "nats.server"
3535

3636
[tool.pytest.ini_options]
3737
asyncio_default_fixture_loop_scope = "function"

nats/pyproject.toml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=68.0"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["uv_build>=0.9.28,<0.10.0"]
3+
build-backend = "uv_build"
44

55
[project]
66
name = "nats-py"
@@ -34,12 +34,6 @@ nkeys = ['nkeys']
3434
aiohttp = ['aiohttp']
3535
fast_parse = ['fast-mail-parser']
3636

37-
[tool.setuptools]
38-
zip-safe = true
39-
package-dir = {"" = "src"}
37+
[tool.uv.build-backend]
38+
module-name = "nats"
4039

41-
[tool.setuptools.packages.find]
42-
where = ["src"]
43-
include = ["nats*"]
44-
exclude = ["scripts", "tests"]
45-
namespaces = false

0 commit comments

Comments
 (0)