ci: set up github actions for automated build and release #2
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.
WHAT
This pull request introduces a new automated workflow for building and publishing the Python package, updates the package version, and makes improvements to the project metadata and build configuration. The main changes are the addition of a GitHub Actions workflow for CI/CD and updates to
pyproject.tomlto support modern packaging and publishing practices.Continuous Integration/Continuous Deployment (CI/CD) Workflow:
.github/workflows/workflow.ymlto automate building, testing, and publishing the Python package to TestPyPI, PyPI, and GitHub Releases, including artifact signing with Sigstore..github/workflows/determine_version.pyto dynamically determine the package version based on git tags or commit SHA, supporting both release and development builds.Project Metadata and Build Configuration:
pyproject.tomlfrom0.1.1to0.1.2.[project.urls]section with a repository link to improve discoverability.[build-system]and[tool.uv.build-backend]sections to specify the build backend and requirements, enabling compatibility with the new workflow and modern Python packaging standards.WHY
We needed something that could publish automatically.