Skip to content

Commit 810a7cb

Browse files
committed
Use uv_build for stubs example, and Python 3.10+
1 parent a17481c commit 810a7cb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docs/guides/libraries.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,11 @@ For example:
136136
[project]
137137
name = "my-great-package-stubs"
138138
version = "0.1.0"
139-
requires-python = ">=3.14"
139+
requires-python = ">=3.10"
140140
141141
[build-system]
142-
requires = ["hatchling"]
143-
build-backend = "hatchling.build"
144-
145-
[tool.hatch.build.targets.wheel]
146-
packages = ["src/my_great_package-stubs"]
142+
requires = ["uv_build>=0.9.18,<0.10.0"]
143+
build-backend = "uv_build"
147144
148145
Users are then able to install the stubs-only package separately to provide
149146
types for the original library.

0 commit comments

Comments
 (0)