forked from BrechtBa/mpcpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (34 loc) · 1.02 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
setuppath = os.path.dirname(os.path.abspath(__file__))
# retrieve the version
try:
versionfile = os.path.join(setuppath, 'mpcpy', '__version__.py')
f = open(versionfile, 'r')
content = f.readline()
splitcontent = content.split('\'')
version = splitcontent[1]
f.close()
except:
raise Exception('Could not determine the version from mpcpy/__version__.py')
# run the setup command
setup(
name='mpcpy',
version=version,
license='GPLv3',
description='A package to run MPC, moving horizon simulations in Python.',
long_description=open(os.path.join(setuppath, 'README.rst')).read(),
url='https://github.com/BrechtBa/mpcpy',
author='Brecht Baeten',
author_email='[email protected]',
packages=find_packages(),
install_requires=['numpy'],
extras_require={
'dev': [
'pyomo',
'matplotlib'
]
},
classifiers=['Programming Language :: Python :: 2.7'],
)