forked from pencleanenergy/MATCH-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
90 lines (80 loc) · 2.99 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
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
"""Setup script for MATCH.
Use "pip install --upgrade ." to install a copy in the site packages directory.
Use "pip install --upgrade --editable ." to install MATCH to be run from its
current location.
Optional dependencies can be added during the initial install or later by
running a command like this:
pip install --upgrade --editable .[advanced,database_access]
Use "pip uninstall match" to uninstall match from your system.
"""
import os
from setuptools import setup, find_packages
# Get the version number. Strategy #3 from https://packaging.python.org/single_source_version/
version_path = os.path.join(os.path.dirname(__file__), "match_model", "version.py")
version = {}
with open(version_path) as f:
exec(f.read(), version)
__version__ = version["__version__"]
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(
name="match_model",
version=__version__,
maintainer="Gregory Miller",
maintainer_email="[email protected]",
license="GNU AFFERO GENERAL PUBLIC LICENSE Version 3",
platforms=["any"],
description="MATCH 24x7 Portfolio Planning Model",
long_description=read("README.md"),
long_description_content_type="text/markdown",
classifiers=[
# from https://pypi.org/classifiers/
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
],
packages=find_packages(include=["match_model", "match_model.*"]),
keywords=[
"renewable",
"power",
"energy",
"electricity",
"production cost",
"capacity expansion",
"planning",
"optimization",
],
python_requires=">=2.7.12",
install_requires=[
"Pyomo", # We need a version that works with glpk 4.60+
"pandas", # used for input upgrades and testing that functionality
"pyutilib",
],
extras_require={
# packages used for advanced demand response, progressive hedging
# note: rpy2 discontinued support for Python 2 as of rpy2 2.9.0
"advanced": [
"numpy",
"scipy",
'rpy2<2.9.0;python_version<"3.0"',
'rpy2;python_version>="3.0"',
"sympy",
],
"dev": ["ipdb"],
"plotting": ["ggplot"],
"database_access": ["psycopg2-binary"],
},
entry_points={"console_scripts": ["match = match_model.main:main"]},
)