-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
61 lines (55 loc) · 1.61 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
from pathlib import Path
from setuptools import setup, find_packages
v = {}
exec(open('src/pymgrid/version.py').read(), v) # read __version__
VERSION = v['__version__']
DESCRIPTION = "A simulator for tertiary control of electrical microgrids"
DOWNLOAD_URL = f"https://github.com/ahalev/python-microgrid/archive/refs/tags/v{VERSION}.tar.gz"
MAINTAINER = "Avishai Halev"
MAINTAINER_EMAIL = "[email protected]"
LICENSE = "GNU LGPL 3.0"
PROJECT_URLS = {"Source Code": "https://github.com/ahalev/python-microgrid",
"Documentation": "https://python-microgrid.readthedocs.io/"}
EXTRAS = dict()
EXTRAS["genset_mpc"] = ["Mosek", "cvxopt"]
EXTRAS["dev"] = [
"pytest",
"pytest-subtests",
"flake8",
"sphinx",
"pydata_sphinx_theme",
"numpydoc",
"nbsphinx",
"nbsphinx-link",
*EXTRAS["genset_mpc"]]
EXTRAS["rtd"] = ["ipython"]
EXTRAS["all"] = list(set(sum(EXTRAS.values(), [])))
setup(
name="python-microgrid",
package_dir={"": "src"},
packages=find_packages("src"),
python_requires=">=3.6",
version=VERSION,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
download_url=DOWNLOAD_URL,
project_urls=PROJECT_URLS,
description=DESCRIPTION,
license=LICENSE,
long_description=(Path(__file__).parent / "README.md").read_text(),
long_description_content_type="text/markdown",
include_package_data=True,
install_requires=[
"pandas",
"numpy",
"cvxpy",
"statsmodels",
"matplotlib",
"plotly",
"cufflinks",
"gym",
"tqdm",
"pyyaml"
],
extras_require=EXTRAS
)