Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,20 @@ mypy_path = ["tests"]
build = "cp311-* cp312-* cp313-*"
skip = ["pp*", "*_i686", "*-win32", "*-musllinux_i686"]
build-frontend = "build"
# Build/test on glibc 2.28: numpy/scipy only publish manylinux_2_27/_2_28 wheels,
# so the default manylinux2014 (glibc 2.17) test image cannot install them and
# falls back to compiling scipy from source (no OpenBLAS) and fails. musllinux_1_2
# (the cibuildwheel default) already has matching numpy/scipy wheels.
manylinux-x86_64-image = "manylinux_2_28"
musllinux-x86_64-image = "musllinux_1_2"
# Smoke-test every built wheel: the native extension imports and computes.
test-command = 'python -c "import nns, nns._nnscore as c; print(c.lpm(2.0, 0.0, [-2.0, -1.0, 0.5, 3.0]))"'

[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
# nanobind's C++17 runtime uses aligned new/delete, which requires macOS 10.13+.
# cibuildwheel otherwise defaults x86_64 to 10.9 and the build fails to compile.
environment = { MACOSX_DEPLOYMENT_TARGET = "10.14" }

[tool.cibuildwheel.windows]
archs = ["AMD64"]
4 changes: 2 additions & 2 deletions sync/nns_source.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"r_repo": "OVVO-Financial/NNS",
"r_commit": "unknown",
"r_commit": "905b8bbd42b3236bf88aba7f18df7a9a378dbd7b",
"r_version": "13.0",
"r_src_tree_hash": "654e411bd4e8caabfd57a1a4190eb1d97411e059",
"core_repo": "OVVO-Financial/NNS-core",
"core_commit": "unknown",
"core_commit": "7f93df9dff8762df870c1fbba6e03c0469be6e69",
"python_repo": "OVVO-Financial/NNS-python",
"python_commit": null,
"vendored_core_path": "extern/NNS-core",
Expand Down
6 changes: 4 additions & 2 deletions tests/tools/test_release_provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ def test_allow_unknown_passes_with_placeholder_provenance() -> None:
assert result.returncode == 0, result.stdout + result.stderr


def test_unknown_provenance_fails_real_release() -> None:
result = _run([])
def test_unknown_provenance_fails_real_release(tmp_path: Path) -> None:
manifest = tmp_path / "manifest.json"
_write_manifest(manifest) # default r_commit/core_commit are "unknown"
result = _run(["--manifest", str(manifest)])
assert result.returncode != 0
assert "provenance" in (result.stdout + result.stderr).lower()

Expand Down
Loading