projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bb3fa8
)
setup: don't append local version for tags.
v0.1rc1
author
whitequark
<whitequark@whitequark.org>
Tue, 15 Oct 2019 04:04:18 +0000
(
04:04
+0000)
committer
whitequark
<whitequark@whitequark.org>
Tue, 15 Oct 2019 04:05:13 +0000
(
04:05
+0000)
PyPI rejects any archives with local version.
setup.py
patch
|
blob
|
history
diff --git
a/setup.py
b/setup.py
index 390e007dc76d3b91e0209db1918da37fdd31dae8..f769b2722ef44da54a3f7bd1ddecd995fc8e7946 100644
(file)
--- a/
setup.py
+++ b/
setup.py
@@
-3,7
+3,10
@@
from setuptools import setup, find_packages
def scm_version():
def local_scheme(version):
- return version.format_choice("+{node}", "+{node}.dirty")
+ if version.tag:
+ return version.format_with("")
+ else:
+ return version.format_choice("+{node}", "+{node}.dirty")
return {
"relative_to": __file__,
"version_scheme": "guess-next-dev",