Skip to content

Remove stray repo artifacts and slim the sdist - #73

Merged
OVVO-Financial merged 1 commit into
mainfrom
repo-cleanup
Jul 4, 2026
Merged

Remove stray repo artifacts and slim the sdist#73
OVVO-Financial merged 1 commit into
mainfrom
repo-cleanup

Conversation

@gitRasheed

Copy link
Copy Markdown
Collaborator

What

  • Removes the orphaned upstream/NNS gitlink. It has no .gitmodules entry, so fresh clones get a broken, permanently-empty submodule stub.
  • Removes changed_files.json from the repo root and gitignores it. It is a workflow input written by inspect-r-api-update; create-pull-request's git add -A swept it into a sync PR once, which is how it got committed.
  • Deletes original_tests/testthat/Rplots.pdf, a headless-R plotting dump.
  • Gitignores /upstream/ and the untracked local notes file.
  • Slims the sdist from 8.5 MB to 159 KB. sdist.include is additive over the git-tracked tree in scikit-build-core, so the previous list did nothing: the 22 MB parity cache, the vendored R tree, and the R tarball all shipped to every pip install from source. Switched to sdist.exclude for maintainer-only paths, keeping build essentials plus sync/nns_source.json for release provenance.

sync/last_* reports stay tracked on purpose: the R API inspection workflow commits them as the fidelity record its PRs reference.

Verification

  • Built the sdist, installed it into a clean venv from source: native extension compiles, nns.lpm(1, 0.0, [-1, 1, 2]) == 1/3.
  • pytest tests/tools: 13 passed (manifest and version consistency checks).
  • Release provenance scripts read from the repo checkout, not the sdist, so the exclusions do not affect the release gate.

- Drop the orphaned upstream/NNS gitlink (no .gitmodules entry, empty on
  clone) and the committed workflow input changed_files.json; ignore the
  latter so sync runs cannot re-add it.
- Delete original_tests/testthat/Rplots.pdf, a headless-R plotting dump.
- Ignore /upstream/ checkouts and local notes.
- Fix sdist contents: sdist.include is additive over all git-tracked
  files, so the 22 MB parity cache, vendored R tree, and R tarball were
  shipping in every sdist. Exclude maintainer-only paths instead, keeping
  build essentials plus sync/nns_source.json for provenance. 8.5 MB ->
  159 KB, verified by installing the sdist into a fresh venv (native
  extension builds, smoke test passes).
@OVVO-Financial
OVVO-Financial merged commit 7acac6b into main Jul 4, 2026
8 checks passed
@OVVO-Financial
OVVO-Financial deleted the repo-cleanup branch July 4, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants