Fix version number
[linpy.git] / setup.py
index 4f3fd3b..72569e4 100755 (executable)
--- a/setup.py
+++ b/setup.py
 
 from distutils.core import setup, Extension
 
 
 from distutils.core import setup, Extension
 
+
+with open('linpy/_version.py') as file:
+    exec(file.read())
+
+with open('README.rst') as file:
+    long_description=file.read()
+
 setup(
     name='LinPy',
 setup(
     name='LinPy',
-    description='A polyhedral library based on ISL',
+    version=__version__,
+    license='GPLv3',
+    description='A polyhedral library based on isl',
+    long_description=long_description,
     author='MINES ParisTech',
     author='MINES ParisTech',
-    url='https://scm.cri.ensmp.fr/git/linpy.git',
+    url='https://scm.cri.mines-paristech.fr/git/linpy.git',
     packages=['linpy'],
     packages=['linpy'],
-    ext_modules = [
+    ext_modules=[
         Extension('linpy._islhelper',
             sources=['linpy/_islhelper.c'],
             libraries=['isl'])
         Extension('linpy._islhelper',
             sources=['linpy/_islhelper.c'],
             libraries=['isl'])