pep440 style and tagged version question
See original GitHub issueIs this normal that for exact tagged version when distance == 0 I have TAG+DISTANCE.gHEX.dirty
version and not just TAG
version ?
Without change form if pieces["distance"] or pieces["dirty"]:
to if pieces["distance"]:
I do not know how to create stable final packages.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
pep440 style and tagged version question · Issue #85 - GitHub
Is this normal that for exact tagged version when distance == 0 I have TAG+DISTANCE.gHEX.dirty version and not just TAG version ?
Read more >PEP 440 – Version Identification and Dependency Specification
Abstract. This PEP describes a scheme for identifying versions of Python software distributions, and declaring dependencies on particular versions. This ...
Read more >How to use PEP440 beta tags with setuptools_scm?
Is there a way to use PEP440-style beta release tags, such as v0.1.3b0 with setuptools_scm? It currently gives an error invalid literal for ......
Read more >versioneer module — PyGraphistry 0.11.8+0.g7edbc22.dirty ...
style : the style of version string to be produced. See “Styles” below for details. Defaults to “pep440”, which looks like TAG[+DISTANCE.
Read more >Versioning - Renovate Docs
Docker images don't really have versions, instead they have "tags". ... SemVer -style versions allowed in pyproject.toml to the PEP440 representations used ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you have distance==0 and dirty==False, then you should get just
TAG
: that’s how to create stable final packages.If you have distance==0 and dirty==True, then yeah, you should at least get the
.dirty
suffix. Final packages should be built from tagged and non-dirty trees. Does your build process modify source code just before making a release? Is there a way to change your build process to not do that?I guess we don’t strictly need to add
+DISTANGE.gHEX
too… the.dirty
marker is probably sufficient warning that a bug report is running from modified source (and therefore you, as the maintainer/triager, have no idea what exact they were running). But it does make it more clear that something unusual is going on.What build process are you using? The standard
setup.py install
/setup.py sdist
processes are supposed to modify the_version.py
in thebuild/
directory, not the source directory, so they shouldn’t cause a “dirty” tree. There was an older version that didn’t do this correctly (in particular when doing e.g.setup.py sdist register upload
), but I thought we’d fixed that.If you do a “final build”, and then do a “git status”, what does it report as being modified?
Ok, great. Feel free to file a new issue if the problem shows up again.