Skip to content

Commit be25b14

Browse files
authored
Merge pull request #671 from numpy/uv-build-backend
2 parents ba5431e + bec6019 commit be25b14

2 files changed

Lines changed: 9 additions & 19 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
[build-system]
2-
requires = ["hatchling"]
3-
build-backend = "hatchling.build"
2+
requires = ["uv_build>=0.8"]
3+
build-backend = "uv_build"
4+
5+
[tool.uv.build-backend]
6+
module-name = ["numpy-stubs", "_numtype", "numtype"]
7+
module-root = "src"
8+
source-exclude = ['\@test', ".ruff_cache", ".ruff.toml"]
49

510
[project]
611
name = "numtype"
@@ -10,6 +15,7 @@ readme = "README.md"
1015
authors = [{ name = "Joren Hammudoglu", email = "jhammudoglu@gmail.com" }]
1116
maintainers = [{ name = "NumPy Developers", email = "numpy-discussion@python.org" }]
1217
license = "BSD-3-Clause"
18+
license-files = ["LICENSE"]
1319
keywords = ["numpy", "typing", "stubs"]
1420
classifiers = [
1521
"Development Status :: 3 - Alpha",
@@ -90,23 +96,6 @@ dev = [
9096
{ include-group = "docs" },
9197
]
9298

93-
# hatch
94-
95-
[tool.hatch.build]
96-
exclude = [
97-
"**/@test",
98-
"**/*.yml",
99-
"**/.*",
100-
"/docs",
101-
"/tool",
102-
"CONTRIBUTING.md",
103-
"uv.lock",
104-
]
105-
skip-excluded-dirs = true
106-
107-
[tool.hatch.build.targets.wheel]
108-
packages = ["src/_numtype", "src/numtype", "src/numpy-stubs"]
109-
11099
# mypy
111100

112101
[tool.mypy]

src/_numtype/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
raise ImportError("_numtype should not be imported at runtime") # noqa: EM101, TRY003

0 commit comments

Comments
 (0)