Skip to content

Modernize pyproject.toml in repo and template - #35

Merged
ali92hm merged 5 commits into
masterfrom
modernize-pyproject-toml
Apr 25, 2026
Merged

ali92hm merged 5 commits into
masterfrom
modernize-pyproject-toml

Conversation

@ali92hm

@ali92hm ali92hm commented Apr 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Drop EOL Python 3.8/3.9; bump requires-python to >=3.10 and add 3.12/3.13 classifiers in both repo and template
  • Switch to dynamic versioning — repo uses a VERSION file, generated projects use __version__ attr from __init__.py
  • Add content-type = "text/markdown" to readme field for correct PyPI markdown rendering
  • Fix missing https:// on changelog and documentation URLs in repo's pyproject.toml
  • Tighten packages.find to include = ["hooks*"] / exclude = ["tests*"] so tests and the template dir aren't picked up as installable packages
  • Add [tool.coverage.run] and [tool.coverage.report] sections to the generated project template

Test plan

  • Run make test-unit — hook helper tests pass
  • Run make test-integration — baked project assertions pass
  • Run make test-e2e — generated project installs, passes CI, and builds cleanly
  • Verify python -m build works for this repo with dynamic versioning

🤖 Generated with Claude Code

ali92hm and others added 5 commits April 25, 2026 19:18
- Drop EOL Python 3.8/3.9; require >=3.10 and add 3.12/3.13 classifiers
- Switch to dynamic versioning (VERSION file for repo, __version__ attr for template)
- Add content-type to readme field for correct PyPI markdown rendering
- Fix missing https:// on changelog and documentation URLs
- Tighten packages.find to exclude tests and template dir
- Add coverage config to generated project template

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Drop EOL 3.8/3.9 (and 3.7 in template), add 3.12 and 3.13 to match pyproject.toml classifiers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
actions/checkout v2 -> v4, actions/setup-python v2 -> v5 across repo and template workflows.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ali92hm
ali92hm merged commit 2d7dcb3 into master Apr 25, 2026
12 checks passed
@ali92hm
ali92hm deleted the modernize-pyproject-toml branch April 25, 2026 23:35
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