Skip to content

Revival 2/4: pyproject packaging, ruff and GitHub Actions CI/publish - #3

Merged
adaj merged 1 commit into
revival/01-corefrom
revival/02-packaging
Sep 14, 2026
Merged

adaj merged 1 commit into
revival/01-corefrom
revival/02-packaging

Conversation

@adaj

@adaj adaj commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

Stacked on #2 (merge that first; this PR's diff will shrink to its own commit).

  • pyproject.toml (PEP 621, setuptools backend) replaces setup.py, requirements.txt and install.md; version read from predspot.__version__ (0.2.0); extras contour and dev
  • src/ layout so tests run against the installed package
  • ruff lint + format configured; code base formatted and lint-clean
  • CI workflow: ruff, pytest with coverage (94%) on Python 3.10–3.13, python -m build + twine check
  • Publish workflow: on a vX.Y.Z tag, 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 docs

Before the first release

  1. Create the predspot project on PyPI and register the trusted publisher (owner adaj, repo predspot, workflow publish.yml, environment pypi) — link in the header of publish.yml
  2. Create the pypi environment in the repository settings
  3. git tag v0.2.0 && git push origin v0.2.0

🤖 Generated with Claude Code

https://claude.ai/code/session_01FtZdc2gGrDh4PGSLyT9yRE

- 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
@adaj
adaj merged commit 811765c into revival/01-core Sep 14, 2026
6 checks passed
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.

1 participant