@@ -3,14 +3,14 @@ requires = ["hatchling"]
3
3
build-backend = " hatchling.build"
4
4
5
5
[project ]
6
- name = " numpy-stubs "
6
+ name = " numtype "
7
7
version = " 2.2.2.0.dev0"
8
- description = " Official typing stubs for NumPy"
8
+ description = " Experimental Typing Stubs for NumPy"
9
9
readme = " README.md"
10
10
authors = [{
name =
" Joren Hammudoglu" ,
email =
" [email protected] " }]
11
11
maintainers = [{
name =
" NumPy Developers" ,
email =
" [email protected] " }]
12
12
license = " BSD-3-Clause"
13
- keywords = [" numpy" , " stubs " , " typing" , " types " , " pep484 " ]
13
+ keywords = [" numpy" , " typing" , " stubs " ]
14
14
classifiers = [
15
15
" Development Status :: 3 - Alpha" ,
16
16
" Intended Audience :: Developers" ,
@@ -25,34 +25,44 @@ classifiers = [
25
25
" Typing :: Stubs Only" ,
26
26
" Typing :: Typed" ,
27
27
]
28
- requires-python = " >=3.11 "
28
+ requires-python = " >=3.10 "
29
29
dependencies = []
30
30
31
31
[project .optional-dependencies ]
32
32
numpy = [" numpy>=2.2.2,<2.3" ]
33
33
34
34
[project .urls ]
35
35
Homepage = " https://numpy.org/"
36
- Repository = " https://github.com/jorenham/numpyi /"
37
- Issues = " https://github.com/jorenham/numpyi /issues"
38
- Changelog = " https://github.com/jorenham/numpyi /releases"
36
+ Repository = " https://github.com/jorenham/numtype /"
37
+ Issues = " https://github.com/jorenham/numtype /issues"
38
+ Changelog = " https://github.com/jorenham/numtype /releases"
39
39
40
40
[dependency-groups ]
41
- numpy = [" numpy-stubs [numpy]" ]
41
+ numpy = [" numtype [numpy]" ]
42
42
dev = [
43
43
{include-group = " numpy" },
44
44
" ruff>=0.9.3" ,
45
45
" basedmypy[faster-cache]>=2.9.1" ,
46
46
" basedpyright>=1.24.0" ,
47
47
]
48
48
49
- [tool .hatch .build ]
50
- packages = [" numpy-stubs" ]
49
+ [tool .hatch .build .targets .sdist ]
50
+ exclude = [
51
+ " /.github" ,
52
+ " /.vscode" ,
53
+ " /dist" ,
54
+ " /tests" ,
55
+ " CONTRIBUTING.md" ,
56
+ " uv.lock" ,
57
+ ]
58
+
59
+ [tool .hatch .build .targets .wheel ]
60
+ packages = [" src/numpy-stubs" ]
51
61
52
62
53
63
[tool .mypy ]
54
64
files = [" src/**/*.py" , " src/**/*.pyi" ]
55
- python_version = " 3.11 "
65
+ python_version = " 3.10 "
56
66
strict = true
57
67
disable_bytearray_promotion = true
58
68
disable_memoryview_promotion = true
@@ -65,14 +75,14 @@ disallow_any_explicit = false
65
75
66
76
67
77
[tool .pyright ]
68
- include = [" src" ]
78
+ include = [" src/numpy-stubs " ]
69
79
ignore = [" .venv" ]
70
- venv = " .venv"
80
+ venv = " .venv/ "
71
81
venvPath = " ."
72
- stubPath = " . "
73
- pythonVersion = " 3.11 "
82
+ stubPath = " src/ "
83
+ pythonVersion = " 3.10 "
74
84
pythonPlatform = " All"
75
- typeCheckingMode = " strict "
85
+ typeCheckingMode = " standard "
76
86
77
87
deprecateTypingAliases = true
78
88
enableReachabilityAnalysis = false
@@ -155,12 +165,22 @@ preview = true
155
165
suppress-dummy-args = true
156
166
157
167
[tool .ruff .lint .flake8-import-conventions ]
158
- banned-from = [" abc" , " ctypes" , " datetime" , " os" , " sys" , " numpy" , " numpy.typing" ]
168
+ banned-from = [
169
+ " abc" ,
170
+ " ctypes" ,
171
+ " datetime" ,
172
+ " os" ,
173
+ " sys" ,
174
+ " numpy" ,
175
+ " numpy.typing" ,
176
+ " numtype" ,
177
+ ]
159
178
[tool .ruff .lint .flake8-import-conventions .extend-aliases ]
160
179
"ctypes" = " ct"
161
180
"datetime" = " dt"
162
181
"numpy" = " np"
163
182
"numpy.typing" = " npt"
183
+ "numtype" = " nt"
164
184
165
185
[tool .ruff .lint .isort ]
166
186
case-sensitive = true
0 commit comments