Modernize pysampling: pyclawd toolkit, src/ layout, pytest, numpy-2 fixes, new docs#1
Closed
blankjul wants to merge 1 commit into
Closed
Modernize pysampling: pyclawd toolkit, src/ layout, pytest, numpy-2 fixes, new docs#1blankjul wants to merge 1 commit into
blankjul wants to merge 1 commit into
Conversation
…ixes, new docs - Move package to src/pysampling; single-source version in __init__.py - Replace setup.py/MANIFEST.in/Makefile with hatchling pyproject.toml (bundles the Sobol .dat resources; numpy dep; matplotlib [plot] extra) - Adopt pyclawd (.pyclawd/config.py) for test/lint/typecheck/docs - Replace Travis with GitHub Actions (lint, typecheck, 3.10-3.13 matrix) - Convert tests to pytest; cross-check vectorized measures against loop refs - Fix numpy 2.x breakage in sobol.py (np.int -> np.int64), an invalid regex escape, and dead code in util.cdist; raise ValueError for unknown algorithms - Rewrite docs as a cached Sphinx pipeline driven by 'pyclawd docs' (MyST sources -> jupyter-cache -> nbsphinx); README in Markdown
Collaborator
Author
|
Landed directly on master (9e4aa8e); no PR needed for own repo. |
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.
Modernizes the repo and adopts the pyclawd dev toolkit.
pyclawd check(format-check, lint, typecheck, tests) andpyclawd docs buildare both green.Packaging & layout
src/pysampling/layout; version single-sourced in__init__.pypyproject.toml(hatchling) replacessetup.py/MANIFEST.in/Makefile; bundles the Sobol.datresources, declares thenumpydep and amatplotlib[plot]extra.python-version,py.typedTooling
.pyclawd/config.py(test / lint / typecheck / docs)lint,typecheck, test matrix 3.10–3.13) replaces Travisruff+mypyconfigured;docs/excluded from the lib's quality gateBug fixes (was broken on numpy 2.x)
sobol.py:np.int→np.int64(import-breaking on numpy ≥2), invalid regex escape"\s"→r"\s"util.cdist: removed unreachable duplicate branches + an undefined returnsample()raisesValueError(not bareException) for unknown algorithmsTests
unittestrunners to pytestDocs
index.ipynbsetup as a cached Sphinx pipeline driven bypyclawd docs(MyST sources → jupyter-cache → nbsphinx)sphinx_book_theme🤖 Generated with Claude Code