forked from adamgreenhall/minpower
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
101 lines (83 loc) · 2.84 KB
/
setup.py
File metadata and controls
101 lines (83 loc) · 2.84 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# minpower's setup script
# make a new release by using
# seed release --dry-run
# and then
# seed release
import sys
from setuptools import setup, find_packages
version_number = open('minpower/__init__.py').read().split('"')[1].rstrip('"')
python_version = sys.version_info
install_requires = [
'pyomo==4.0.9682',
'numpy==1.9.1',
'pandas==0.16',
]
if python_version[0] == 2 and python_version[1] < 7:
install_requires.append('ordereddict>=1.1')
# syntax changes currently result in failures on python 2.6
# https://github.com/adamgreenhall/minpower/issues/8
# https://travis-ci.org/adamgreenhall/minpower/jobs/4433662
sys.exit('minpower currently requires Python 2.7')
setup(
name="minpower",
version=version_number,
download_url="https://github.com/adamgreenhall/minpower" +
"/zipball/v{v}".format(v=version_number),
entry_points="""
[console_scripts]
minpower = minpower.solve:main
standalone_minpower = minpower.solve:standaloneUC
scheduler_minpower = minpower.experiments.scheduler_minpower:main
initial_dispatch = minpower.experiments.get_initial_dispatch:main
""",
package_data={
'minpower.configuration': ['minpower.cfg'],
'minpower.tests': [
'*.csv',
'*/*.csv',
'*/*/*.csv']},
install_requires=install_requires,
tests_require=[
'nose',
'coverage',
'objgraph'
],
extras_require=dict(
extras=[
'matplotlib==1.4.3',
'tables==3.1.1',
'numexpr==2.3.1',
'cython==0.20.1',
],
),
# it helps to have seed if you are going to make releases
# but it is not required for setup
description="power systems optimization made beautiful",
author="Adam Greenhall",
author_email="minpower@adamgreenhall.com",
url="http://adamgreenhall.github.io/minpower",
packages=find_packages(),
keywords=["power systems", "optimization"],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
],
long_description="""
power systems tools made beautiful
-----------------------------------------
* Solves ED, OPF, and UC problems.
* Problems can be defined in simple spreadsheets.
* Visualizations are created for the answers.
* Many solvers are supported.
* `Full documentation and tutorials <http://adamgreenhall.github.io/minpower>`_
* `Code base <http://github.com/adamgreenhall/minpower>`_
"""
)