Commit 70a9326f authored by Martin Reinecke's avatar Martin Reinecke

experimental git version checking

parent c81c1a88
Pipeline #25815 failed with stage
in 4 minutes and 23 seconds
# custom
# never store the git version file
git_version.py
# custom
setup.cfg
.idea
.DS_Store
......
......@@ -20,6 +20,17 @@ from setuptools import setup, find_packages
exec(open('nifty4/version.py').read())
def write_version():
import subprocess
p = subprocess.Popen(["git", "describe", "--dirty"],
stdout=subprocess.PIPE)
res = p.communicate()
with open("nifty4/git_version.py", "w") as file:
file.write("def get_gitversion():\n")
file.write(" return \""+res[0].rstrip()+"\"\n")
write_version()
setup(name="nifty4",
version=__version__,
author="Theo Steininger, Martin Reinecke",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment