Commit d9bdf16b authored by Philipp Arras's avatar Philipp Arras
Browse files

Remove gitversion interface

parent ec726ff5
Pipeline #105228 passed with stages
in 15 minutes and 45 seconds
......@@ -93,6 +93,13 @@ likelihood becomes the identity matrix. This is needed for the `GeoMetricKL`
Remove gitversion interface
Since we provide proper nifty releases on PyPI now, the gitversion interface is
not supported any longer.
Changes since NIFTy 5
......@@ -18,21 +18,6 @@
from setuptools import find_packages, setup
import os
def write_version():
import subprocess
p = subprocess.Popen(["git", "describe", "--dirty", "--tags", "--always"],
res = p.communicate()[0].strip().decode('utf-8')
except FileNotFoundError:
print("Could not determine version string from git history")
res = "unknown"
with open(os.path.join("nifty7", ""), "w") as f:
f.write('gitversion = "{}"\n'.format(res))
with open("") as f:
# Store the version here so:
# 1) we don't load dependencies by storing it in
# 2) we can import it in for the same reason
# 3) we can import it into your module module
__version__ = '7.0'
def gitversion():
from .git_version import gitversion
except ImportError:
return "unknown"
return gitversion
Supports Markdown
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