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.
Installation
Section titled “Installation”go install github.com/SemRels/updater-python@latestEach 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.
Configuration
Section titled “Configuration”version: 1plugins: - name: updater-python path: updater-python args: file: pyproject.toml backend: pyprojectEnvironment Variables
Section titled “Environment Variables”| Name | Required | Default | Description |
|---|---|---|---|
SEMREL_PLUGIN_FILE | no | pyproject.toml | Python project metadata file to update. |
SEMREL_PLUGIN_BACKEND | no | pyproject | Metadata backend or update strategy to use. |
Release Context Variables
Section titled “Release Context Variables”SEMREL_NEXT_VERSIONSEMREL_CURRENT_VERSIONSEMREL_TAG_NAMESEMREL_DRY_RUN
Behavior
Section titled “Behavior”For a 1.4.0 release, the updater can change version = "1.3.2" to version = "1.4.0" in pyproject.toml.