Migrate seeded package to official NNS-python identity - #1
Merged
OVVO-Financial merged 1 commit intoJun 12, 2026
Merged
Conversation
OVVO-Financial
deleted the
codex/migrate-seeded-package-to-official-nns-python-identity
branch
June 12, 2026 14:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
nns._nnscoreand the published package metadata targets the official name.NNS_R_CACHE_ONLYwhile continuing to accept the legacyPYNNS_R_CACHE_ONLYtoggles during the transition.Description
pynns→nnsby movingsrc/pynns→src/nns, updating__init__exports and all internal imports and tests to usenns(public import package:nns).pyproject.tomltoname = "NNS",version = "1.0.0a0", and to build/install fromsrc/nns(wheel packages and sdist includes updated).CMakeLists.txtand the nanobind binding source are pointed atsrc/nns/_nnscore_bindings.cppand the extension is installed intonnsso the runtime module isnns._nnscore; runtime discovery changed insrc/nns/_native.py..github/workflows/native-backend-ci.ymlnow importsnns._nnscoreand usesNNS_R_CACHE_ONLY,tests/_r.pyandscripts/regenerate_r_cache.pyaccept bothNNS_*andPYNNS_*environment toggles, and README/docs were updated to reference the distributionNNS, importnns, native extensionnns._nnscore, cache-backed CI behavior, and parity scope/caveats.docs/parity_results.md,docs/parity_status.md,docs/parity_plan.md,docs/original_tests_adoption.md,docs/plot_parity_policy.md,docs/native_original_src_coverage.md,tests/_r_cache.json,tests/fixtures/original_tests_expected.json, andoriginal_tests/.Testing
python -m pytest -q tests/invariants(installed editable in the local venv) and observed314 passed.NNS_R_CACHE_ONLY=1 python -m pytest -q tests/parityand observed1778 passed, 11 skipped(the 11 skips are intentional live-R-only practical examples).NNS_R_CACHE_ONLY=1 python -m pytest -q tests/parity/test_original_*and observed12 passed.PYNNS_R_CACHE_ONLY=1 python -m pytest -q tests/paritywhich produced the same1778 passed, 11 skippedresult.ruff check .andmypyboth reported no issues.python -m buildcould not be executed in this restricted environment due to a missingbuildmodule / network fetch limits, but an offline build via the repo build driver (uv build) succeeded and produceddist/nns-1.0.0a0.tar.gzanddist/nns-1.0.0a0-*.whlwith the nativenns._nnscoreshared module installed into thenns/package.No PyPI publication, release tagging, or changes to the vendored NNS-core behavior are included in this PR.
Codex Task