Revival 2/4: pyproject packaging, ruff and GitHub Actions CI/publish - #3
Merged
Merged
Conversation
- pyproject.toml (PEP 621, setuptools backend) replaces setup.py, requirements.txt and install.md; version read from predspot.__version__; optional extras: `contour` (geojsoncontour) and `dev` (pytest, ruff, build) - src/ layout so tests always run against the installed package - ruff lint + format configuration; code base formatted and lint-clean - CI workflow: ruff, pytest with coverage on Python 3.10-3.13, build + twine check of the distribution - Publish workflow: on a v* tag, verify tag == package version, build and upload to PyPI via trusted publishing (no stored token) - CHANGELOG.md, CONTRIBUTING.md, MANIFEST.in; README badges and install docs Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FtZdc2gGrDh4PGSLyT9yRE
This was referenced Sep 14, 2026
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.
Summary
Stacked on #2 (merge that first; this PR's diff will shrink to its own commit).
pyproject.toml(PEP 621, setuptools backend) replacessetup.py,requirements.txtandinstall.md; version read frompredspot.__version__(0.2.0); extrascontouranddevsrc/layout so tests run against the installed packagepython -m build+twine checkvX.Y.Ztag, verify tag == package version, build and upload to PyPI via trusted publishing (no stored token)CHANGELOG.md,CONTRIBUTING.md(release steps),MANIFEST.in, README badges and install docsBefore the first release
predspotproject on PyPI and register the trusted publisher (owneradaj, repopredspot, workflowpublish.yml, environmentpypi) — link in the header ofpublish.ymlpypienvironment in the repository settingsgit tag v0.2.0 && git push origin v0.2.0🤖 Generated with Claude Code
https://claude.ai/code/session_01FtZdc2gGrDh4PGSLyT9yRE