From f780194d37d1d343b642d7f78ad33b09acf31a4a Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Thu, 21 Mar 2019 16:46:43 +0100
Subject: [PATCH] Custom pip registry to simplify deployment

---
 setup.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index dcc5a52bf..1694c1545 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,12 @@
+import os
+import sys
 from setuptools import setup, find_packages
+sys.path.insert(0, os.path.abspath('..'))
+from custom_pypi_index.pypi_index import get_current_dev_version_from_git
+
 
 setup(name='pystencils',
+      version=get_current_dev_version_from_git(),
       description='Python Stencil Compiler based on sympy as numpy',
       author='Martin Bauer',
       license='AGPLv3',
@@ -27,6 +33,4 @@ setup(name='pystencils',
       },
       tests_require=['pytest', 'pytest-cov', 'pytest-xdist', 'flake8'],
       python_requires=">=3.6",
-      setup_requires=['very-good-setuptools-git-version'],
-      version_format='{tag}.dev{commits}+{sha}',
       )
-- 
GitLab