Changed version punctuation for PEP 440 compliance
They now look like: 0.11.0+295.gec6e264.dirty instead of: 0.11.0-295-gec6e264-dirty
This commit is contained in:
parent
ec6e264753
commit
ac01c0f03f
6
setup.py
6
setup.py
@ -31,8 +31,10 @@ os.chdir(os.path.split(os.path.abspath(__file__))[0])
|
|||||||
PKG = "hy"
|
PKG = "hy"
|
||||||
VERSIONFILE = os.path.join(PKG, "version.py")
|
VERSIONFILE = os.path.join(PKG, "version.py")
|
||||||
try:
|
try:
|
||||||
__version__ = subprocess.check_output([
|
__version__ = (subprocess.check_output
|
||||||
"git", "describe", "--tags", "--dirty"]).decode('ASCII').strip()
|
(["git", "describe", "--tags", "--dirty"])
|
||||||
|
.decode('ASCII').strip()
|
||||||
|
.replace('-', '+', 1).replace('-', '.'))
|
||||||
with open(VERSIONFILE, "wt") as o:
|
with open(VERSIONFILE, "wt") as o:
|
||||||
o.write("__version__ = {!r}\n".format(__version__))
|
o.write("__version__ = {!r}\n".format(__version__))
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user