Skip to content

Commit e4623f0

Browse files
committed
chore: make local runs a bit easier
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 6a6d12c commit e4623f0

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

pyproject.toml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ test-meta = [
7171
"setuptools-scm",
7272
]
7373
test-numpy = [
74-
"numpy; python_version<'3.14' and platform_python_implementation!='PyPy' and (platform_system != 'Windows' or platform_machine != 'ARM64')",
75-
"numpy~=1.24.0; python_version=='3.8' and platform_python_implementation=='PyPy'",
76-
"numpy~=2.0.0; python_version=='3.9' and platform_python_implementation=='PyPy'",
77-
"numpy~=2.2.0; python_version=='3.10' and platform_python_implementation=='PyPy'",
74+
"numpy; python_version<'3.14' and implementation_name!='pypy' and implementation_name!='graalpy' and (platform_system != 'Windows' or platform_machine != 'ARM64')",
75+
"numpy~=1.24.0; python_version=='3.8' and implementation_name=='pypy'",
76+
"numpy~=2.0.0; python_version=='3.9' and implementation_name=='pypy'",
77+
"numpy~=2.2.0; python_version=='3.10' and implementation_name=='pypy'",
78+
"numpy==1.26.4; python_version=='3.11' and implementation_name=='graalpy' and platform_system != 'Darwin'",
7879
]
7980
test-schema = [
8081
"fastjsonschema",
@@ -133,6 +134,21 @@ dev-dependencies = ["scikit-build-core[test,test-hatchling,test-meta,test-numpy,
133134
workspace.members = ["tmp/hello/hello"]
134135

135136

137+
[tool.uv.sources]
138+
numpy = [
139+
{ index = "graalpy", marker = "implementation_name == 'graalpy'"},
140+
{ index = "pypi", marker = "implementation_name != 'graalpy'"},
141+
]
142+
143+
[[tool.uv.index]]
144+
name = "graalpy"
145+
url = "https://www.graalvm.org/python/wheels/"
146+
147+
[[tool.uv.index]]
148+
name = "pypi"
149+
url = "https://pypi.org/simple"
150+
151+
136152
[tool.pytest.ini_options]
137153
minversion = "7.2"
138154
addopts = ["-ra", "--strict-markers", "--strict-config"]

0 commit comments

Comments
 (0)