|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
3 | | -from setuptools import setup, find_packages |
4 | | -import io |
5 | | -import os |
| 3 | +from setuptools import setup |
6 | 4 |
|
7 | | -here = os.path.abspath(os.path.dirname(__file__)) |
8 | 5 |
|
9 | | -NAME = 'opengen' |
10 | | - |
11 | | -# Import version from file |
12 | | -version_file = open(os.path.join(here, 'VERSION')) |
13 | | -VERSION = version_file.read().strip() |
14 | | - |
15 | | -DESCRIPTION = 'Optimization Engine Code Generator' |
16 | | - |
17 | | - |
18 | | -# Import the README and use it as the long-description. |
19 | | -# Note: this will only work if 'README.md' is present in your MANIFEST.in file! |
20 | | -try: |
21 | | - with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: |
22 | | - long_description = '\n' + f.read() |
23 | | -except FileNotFoundError: |
24 | | - long_description = DESCRIPTION |
25 | | - |
26 | | -setup(name=NAME, |
27 | | - version=VERSION, |
28 | | - description=DESCRIPTION, |
29 | | - long_description=long_description, |
30 | | - long_description_content_type='text/markdown', |
31 | | - author=['Pantelis Sopasakis', 'Emil Fresk'], |
32 | | - |
33 | | - license='MIT License', |
34 | | - packages=find_packages( |
35 | | - exclude=["icasadi", "templates"]), |
36 | | - include_package_data=True, |
37 | | - install_requires=[ |
38 | | - 'jinja2', 'casadi', 'pyyaml', 'retry', 'numpy', 'setuptools' |
39 | | - ], |
40 | | - classifiers=[ |
41 | | - 'Development Status :: 4 - Beta', |
42 | | - 'License :: OSI Approved :: MIT License', |
43 | | - 'License :: OSI Approved :: Apache Software License', |
44 | | - 'Programming Language :: Python', |
45 | | - 'Programming Language :: Rust', |
46 | | - 'Intended Audience :: Science/Research', |
47 | | - 'Topic :: Software Development :: Libraries', |
48 | | - 'Topic :: Scientific/Engineering', |
49 | | - 'Topic :: Scientific/Engineering :: Mathematics', |
50 | | - 'Topic :: Software Development :: Code Generators', |
51 | | - 'Topic :: Software Development :: Embedded Systems' |
52 | | - ], |
53 | | - keywords=['optimization', 'nonconvex', 'embedded'], |
54 | | - url=( |
55 | | - 'https://github.com/alphaville/optimization-engine' |
56 | | - ), |
57 | | - zip_safe=False) |
| 6 | +setup() |
0 commit comments