From 03b000cab55fc5693eb975210bed15dcbd397633 Mon Sep 17 00:00:00 2001
From: Markus Holzer <markus.holzer@fau.de>
Date: Tue, 9 Nov 2021 15:58:43 +0100
Subject: [PATCH] Adapted setup py

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

diff --git a/setup.py b/setup.py
index ef9b99cd..ebc9acdf 100644
--- a/setup.py
+++ b/setup.py
@@ -78,6 +78,7 @@ def get_cmdclass():
     return cmdclass
 
 
+major_version = versioneer.get_version().split("+")[0]
 setup(name='lbmpy',
       version=versioneer.get_version(),
       description='Code Generation for Lattice Boltzmann Methods',
@@ -88,9 +89,8 @@ setup(name='lbmpy',
       author_email='cs10-codegen@fau.de',
       url='https://i10git.cs.fau.de/pycodegen/lbmpy/',
       packages=['lbmpy'] + ['lbmpy.' + s for s in find_packages('lbmpy')],
-      install_requires=['pystencils>=0.4.0', 'sympy>=1.5.1,<=1.9', 'numpy>=1.11.0'],
-      package_data={'lbmpy': ['phasefield/simplex_projection.pyx',
-                              'phasefield/simplex_projection.c']},
+      install_requires=[f'pystencils>=0.4.0,<={major_version}', 'sympy>=1.5.1,<=1.9', 'numpy>=1.11.0'],
+      package_data={'lbmpy': ['phasefield/simplex_projection.pyx', 'phasefield/simplex_projection.c']},
       ext_modules=cython_extensions("lbmpy.phasefield.simplex_projection"),
       classifiers=[
           'Development Status :: 4 - Beta',
-- 
GitLab