Skip to content

Commit 8f7ef12

Browse files
authored
💥 rename to numtype (#4)
1 parent 5dae791 commit 8f7ef12

File tree

6 files changed

+118
-27
lines changed

6 files changed

+118
-27
lines changed

‎.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
timeout-minutes: 5
1313
environment:
1414
name: pypi
15-
url: https://pypi.org/p/numpy-stubs
15+
url: https://pypi.org/p/numtype
1616
permissions:
1717
id-token: write
1818
steps:

‎.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# NumPy\'s Contributing guidelines
1+
# NumType\'s Contributing guidelines
22

33
Welcome to the NumPy community! We\'re excited to have you here. Whether
44
you\'re new to open source or experienced, your contributions help us

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# numpy-stubs
1+
# NumType
22

33
Under development — use at your own risk!

‎pyproject.toml

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "numpy-stubs"
6+
name = "numtype"
77
version = "2.2.2.0.dev0"
8-
description = "Official typing stubs for NumPy"
8+
description = "Experimental Typing Stubs for NumPy"
99
readme = "README.md"
1010
authors = [{name = "Joren Hammudoglu", email = "[email protected]"}]
1111
maintainers = [{name = "NumPy Developers", email = "[email protected]"}]
1212
license = "BSD-3-Clause"
13-
keywords = ["numpy", "stubs", "typing", "types", "pep484"]
13+
keywords = ["numpy", "typing", "stubs"]
1414
classifiers = [
1515
"Development Status :: 3 - Alpha",
1616
"Intended Audience :: Developers",
@@ -25,34 +25,44 @@ classifiers = [
2525
"Typing :: Stubs Only",
2626
"Typing :: Typed",
2727
]
28-
requires-python = ">=3.11"
28+
requires-python = ">=3.10"
2929
dependencies = []
3030

3131
[project.optional-dependencies]
3232
numpy = ["numpy>=2.2.2,<2.3"]
3333

3434
[project.urls]
3535
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"
3939

4040
[dependency-groups]
41-
numpy = ["numpy-stubs[numpy]"]
41+
numpy = ["numtype[numpy]"]
4242
dev = [
4343
{include-group = "numpy"},
4444
"ruff>=0.9.3",
4545
"basedmypy[faster-cache]>=2.9.1",
4646
"basedpyright>=1.24.0",
4747
]
4848

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"]
5161

5262

5363
[tool.mypy]
5464
files = ["src/**/*.py", "src/**/*.pyi"]
55-
python_version = "3.11"
65+
python_version = "3.10"
5666
strict = true
5767
disable_bytearray_promotion = true
5868
disable_memoryview_promotion = true
@@ -65,14 +75,14 @@ disallow_any_explicit = false
6575

6676

6777
[tool.pyright]
68-
include = ["src"]
78+
include = ["src/numpy-stubs"]
6979
ignore = [".venv"]
70-
venv = ".venv"
80+
venv = ".venv/"
7181
venvPath = "."
72-
stubPath = "."
73-
pythonVersion = "3.11"
82+
stubPath = "src/"
83+
pythonVersion = "3.10"
7484
pythonPlatform = "All"
75-
typeCheckingMode = "strict"
85+
typeCheckingMode = "standard"
7686

7787
deprecateTypingAliases = true
7888
enableReachabilityAnalysis = false
@@ -155,12 +165,22 @@ preview = true
155165
suppress-dummy-args = true
156166

157167
[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+
]
159178
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
160179
"ctypes" = "ct"
161180
"datetime" = "dt"
162181
"numpy" = "np"
163182
"numpy.typing" = "npt"
183+
"numtype" = "nt"
164184

165185
[tool.ruff.lint.isort]
166186
case-sensitive = true

0 commit comments

Comments
 (0)