Zum Inhalt springen

Plugin: updater-python

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Updates Python package version metadata in pyproject.toml or a similar backend file. Choose it when your Python release process needs the application version written before packaging or publishing.

Terminal window
go install github.com/SemRels/updater-python@latest

Each plugin is a standalone Go binary. Keep it on your PATH or reference it with path: in .semrel.yaml. If you keep secrets in a .env file, load them with semrel --env-file .env release.

version: 1
plugins:
- name: updater-python
path: updater-python
args:
file: pyproject.toml
backend: pyproject
NameRequiredDefaultDescription
SEMREL_PLUGIN_FILEnopyproject.tomlPython project metadata file to update.
SEMREL_PLUGIN_BACKENDnopyprojectMetadata backend or update strategy to use.
  • SEMREL_NEXT_VERSION
  • SEMREL_CURRENT_VERSION
  • SEMREL_TAG_NAME
  • SEMREL_DRY_RUN

For a 1.4.0 release, the updater can change version = "1.3.2" to version = "1.4.0" in pyproject.toml.