-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
54 lines (48 loc) · 1.55 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python
"""
Pyomo Solver Performance Benchmarking Library
"""
import sys
from setuptools import setup, find_packages
def warn(s):
sys.stderr.write('*** WARNING *** {}\n'.format(s))
kwargs = dict(
name='pysperf',
packages=find_packages(),
install_requires=[],
extras_require={},
package_data={
# If any package contains *.template or *.json files, include them:
'': ['*.template', '*.json']
},
scripts=[],
author='Qi Chen',
author_email='[email protected]',
maintainer='Qi Chen',
url="https://github.com/grossmann-group/pysperf",
license='BSD 2-clause',
description="Pyomo Solver Performance Benchmarking Library",
long_description=__doc__,
data_files=[],
keywords=["pyomo", "generalized disjunctive programming"],
classifiers=[
"Programming Language :: Python :: 3.6",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules"
],
entry_points="""\
[console_scripts]
pysperf=pysperf.__main__:main
"""
)
try:
setup(setup_requires=['setuptools_scm'], use_scm_version=True, **kwargs)
except (ImportError, LookupError):
default_version = '1.0.0'
warn('Cannot use .git version: package setuptools_scm not installed '
'or .git directory not present.')
print('Defaulting to version: {}'.format(default_version))
setup(**kwargs)