Skip to content

Commit 32847c9

Browse files
committed
Explicitly building for NumPy >= 2
1 parent ba590a1 commit 32847c9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pyproject.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
build-backend = "setuptools.build_meta"
33
requires = [
44
"setuptools",
5-
"numpy<2",
5+
"numpy>=2",
66
]
77

88
[project]
99
name = "pocky"
10-
version = "1.0"
10+
dynamic = ["version"]
1111
requires-python = ">=3.10"
1212

1313
[tool.setuptools]
1414
include-package-data = false
1515

16+
[tool.setuptools.dynamic]
17+
version = {attr = "pocky.__version__"}
18+
1619
[tool.setuptools.packages.find]
1720
namespaces = true
1821
where = ["src"]

src/pocky/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from .ext import *
22

3+
__version__ = '1.1'
4+
35
def get_include():
46
import os
57
import pocky.ext as ext

0 commit comments

Comments
 (0)