import nepi; nepi.version
[nepi.git] / nepi / util / version.py.in
diff --git a/nepi/util/version.py.in b/nepi/util/version.py.in
new file mode 100644 (file)
index 0000000..97ae6c4
--- /dev/null
@@ -0,0 +1,13 @@
+### updated by the toplevel Makefile
+version_tag="@VERSIONTAG@"
+scm_url="@SCMURL@"
+import socket
+def version_core (more=None):
+    if more is None: more={}
+    core = { 'code_tag' : version_tag,
+             'code_url' : scm_url,
+             'hostname' : socket.gethostname(),
+             }
+    core.update(more)
+    return core