Skip to content

Conversation

@fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Nov 14, 2025

Adds a release workflow to PyPI, with tests gating the release.

@fkiraly fkiraly added the maintenance Continuous integration, unit testing & package distribution label Nov 14, 2025
@tschm
Copy link
Contributor

tschm commented Nov 16, 2025

So, what's the logic for making a release? Change by hand the version number in pyproject.toml? Then introduce a tag matching this version number? The job then picking the tag up?

@fkiraly
Copy link
Collaborator Author

fkiraly commented Nov 18, 2025

So, what's the logic for making a release? Change by hand the version number in pyproject.toml? Then introduce a tag matching this version number? The job then picking the tag up?

Yes.
I suspect you have a better suggestion?
Would be keen to hear what you think.

@tschm
Copy link
Contributor

tschm commented Nov 19, 2025

I use https://github.com/tschm/.config-templates/blob/main/.github/workflows/release.yml across my repos. This job can only be triggered manually. A new version number has to be explicitly provided. The workflow is then creating the tag (via git tag), and is replacing the version string in pyproject.toml (if it exists) via sed. I then build the dist artifact (using hatch). At no point I commit the changed pyproject.toml file. It has worked very well for me...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Continuous integration, unit testing & package distribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants