rsxdalv/Extract Python Package Version
Extract version from setup.py, pyproject.toml, or __init__.py files
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| file-path | Path to the file containing version (setup.py, pyproject.toml, __init__.py) | no | auto |
| fallback-version | Fallback version if no version is found | no | 0.0.0 |
Outputs
| name | description |
|---|---|
| version | The extracted version number |
| tag | The version with v prefix (e.g., v1.2.3) |
| major | Major version number |
| minor | Minor version number |
| patch | Patch version number |