Skip to content

Conversation

@EiffL
Copy link
Contributor

@EiffL EiffL commented Jun 27, 2025

This pull request introduces a workflow for publishing the project to PyPI and integrates setuptools_scm for automated version management. The most important changes include adding a GitHub Actions workflow for PyPI publishing, updating the pyproject.toml file to use setuptools_scm, and configuring version fallback behavior.

Workflow for PyPI Publishing:

  • .github/workflows/publish-pypi.yml: Added a GitHub Actions workflow to publish the project to PyPI when a version tag is pushed. This includes steps for setting up Python, building the package, verifying the version matches the tag, and publishing to PyPI using OIDC trusted publishing.

Version Management with setuptools_scm:

  • pyproject.toml: Updated build requirements to include setuptools_scm for dynamic versioning based on Git tags. Removed the hardcoded version field and replaced it with a dynamic version field.
  • pyproject.toml: Added a [tool.setuptools_scm] section to configure setuptools_scm, including a fallback version (0.1.dev0) to use when no tags are present.

@EiffL EiffL merged commit bdb5d08 into main Jun 27, 2025
3 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.

2 participants