File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ]
611name = " numtype"
@@ -10,6 +15,7 @@ readme = "README.md"
1015authors = [{ name = " Joren Hammudoglu" , email = " jhammudoglu@gmail.com" }]
1116maintainers = [{ name = " NumPy Developers" , email = " numpy-discussion@python.org" }]
1217license = " BSD-3-Clause"
18+ license-files = [" LICENSE" ]
1319keywords = [" numpy" , " typing" , " stubs" ]
1420classifiers = [
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 ]
Original file line number Diff line number Diff line change 1+ raise ImportError ("_numtype should not be imported at runtime" ) # noqa: EM101, TRY003
You can’t perform that action at this time.
0 commit comments