Centralize project configuration and streamline releases#149
Merged
Conversation
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
Centralize project configuration in
pyproject.toml, switch to uv-based workflows, and adopt tag-driven releases via setuptools_scm + PyPI trusted publishing. No long-lived secrets remain in CI.Details
Configuration consolidation
setup.py,MANIFEST.in,.flake8,requirements.txt,requirements_test.txt,requirements_style.txt.pyproject.tomlnow holds project metadata, build backend, ruff, pytest, coverage, codespell, and setuptools_scm config.[dependency-groups](test,dev).FUNDING.ymlunder.github/.Versioning and release
version_file = 'scooby/_version.py'andversion_scheme = 'release-branch-semver', mirroring pyvistaqt.release.ymlbuilds, verifies the wheel version matches the tag, and publishes to PyPI.actions/checkoutusesfetch-depth: 0and explicitfetch-tags: trueto avoid the known tag-push edge case.CI and security
astral-sh/setup-uv).pypa/gh-action-pypi-publish, environmentpypi). Codecov viause_oidc: true.CODECOV_TOKENandPYPI_API_TOKENremoved; no secrets referenced in.github/.Tooling
pre-commit-hooksbasics (trailing whitespace, end-of-file-fixer, check-toml/yaml, merge-conflict, debug-statements, etc.), prettier, taplo,check-jsonschemafor workflow validation, codespell, and zizmor for Actions security linting..github/zizmor.ymlrequiring ref-pinned action references.checkout@v6,setup-python@v6,setup-uv@v8,upload-artifact@v7,download-artifact@v8,codecov-action@v6, prettierv3.8.3.Makefile and gitignore
uv run/uv sync/uv build..gitignoremodernized for uv, ruff, mypy caches and the setuptools_scm-generated_version.py.External config required for first release
banesullivan, reposcooby, workflowrelease.yml, environmentpypi.pypimust exist (Settings → Environments).