Pypi release can be now automated.#1186
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enables automated publishing of the certcc-ssvc package to PyPI via GitHub Actions OIDC, and updates setuptools configuration so the package is correctly discovered from the src/ layout.
Changes:
- Update
pyproject.tomlsetuptools configuration to usesrc/as the package root (package-dir+find.where). - Add a new GitHub Actions workflow to build distributions on timestamp-like tags and publish them to PyPI using OIDC.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
pyproject.toml |
Adjusts setuptools package discovery to package from src/ correctly for PyPI builds. |
.github/workflows/pypi_publish.yml |
Adds CI workflow to build sdist/wheel artifacts and publish to PyPI via OIDC on tag pushes. |
no need uv steps here. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
| on: | ||
| push: | ||
| tags: | ||
| - "20*" |
There was a problem hiding this comment.
since this is a glob pattern and not a regex, should we use "20??.*.*" instead to ensure we don't match on non-calver patterns?
|
Following conversations with the team, we're good with merging this PR. There's a need for a follow-on issue to resolve how we're using CalVer (see ADR-0013 because this seems to change what we need to do, but we haven't reached a full resolution on how we intend to increment versions yet. (I.e., are we going to "pure timestamp" CalVer like @sei-vsarvepalli is planning to create a new issue to capture this concern for future consideration. |
Related to #1175 - The pypi branch requires that we modify pyproject.toml
To release a project to pypi
date +%Y.%-m.%-d%H%M@ahouseholder - please make sure the pyproject.toml changes are okay with you. This is required to ensure that pypi package grabs the required files from "src/" directory.