← All tasks
pythonpypa/twine #531Not a task: not reproduced

Rely on SCM metatdata for version

envgap__pypa__twine-531

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
926ada85978162debc0c526dc41168b311663a1b
Manifest
setup.cfg
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

pypa/twine #531 · read the original issue
Currently, the package version is declared statically in source code (`twine/__init__.py` or `setup.py` if #528 is accepted). That means except for the tagged releases, the `__version__` is deceiving about what version is in use (current master is "2.0.0" but has different behavior from the released 2.0.0).



Moreover, by storing the version statically in the codebase, it becomes necessary to add a commit and change the version number before any release. It's a manual step that's prone to mistakes.



If instead the project were to rely on tags SCM metadata from which to derive a version, it eliminates that manual step and allows the version to derive from the state of the repo, reflecting the version from the tag (for tagged commits), or deriving a pre/post release for other commits or a dirty checkout.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]