lfreleng-actions/🐍 Python Project Version
Returns the version of a Python Project
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 8, 2026
- License
- None
Pinned Snippet
uses: lfreleng-actions/python-project-version-action@cd2312738a1ed0e6732315037dc32a76adaf1ed5 # v0.2.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| path_prefix | Directory location containing project code | no | . |
Outputs
| name | description |
|---|---|
| python_project_version | The current version declared for a Python project, or the literal string "dynamic" when the project uses a dynamic versioning provider. |
| source | Path to the file the version (or dynamic flag) was sourced from (pyproject.toml | setup.cfg | setup.py). |
| dynamic_version | "true" when the project uses a dynamic versioning provider (PBR, setuptools-scm, versioneer, setuptools-dynamic). "false" otherwise. |
| dynamic_provider | When dynamic_version is true, identifies the provider: pbr | setuptools-scm | versioneer | setuptools-dynamic | hatch-vcs | pyproject-dynamic | runtime-attr. Empty when static. |