-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
97 lines (90 loc) · 2.57 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
91
92
93
94
95
96
97
# -*- coding: utf-8 -*-
"""
Setup file for hydesign
"""
import os
from setuptools import setup, find_packages
repo = os.path.dirname(__file__)
try:
from git_utils import write_vers
version = write_vers(vers_file='hydesign/__init__.py', repo=repo, skip_chars=1)
except Exception:
version = '999'
try:
from pypandoc import convert_file
def read_md(f): return convert_file(f, 'rst', format='md')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
def read_md(f): return open(f, 'r').read()
setup(name='hydesign',
version=version,
description='A tool for design and scontrol of utility scale wind-solar-storage based hybrid power plant.',
long_description=read_md('README.md'),
url='https://gitlab.windenergy.dtu.dk/TOPFARM/hydesign',
project_urls={
'Documentation': 'https://topfarm.pages.windenergy.dtu.dk/hydesign/',
'Source': 'https://gitlab.windenergy.dtu.dk/TOPFARM/hydesign',
'Tracker': 'https://gitlab.windenergy.dtu.dk/TOPFARM/hydesign/-/issues',
},
author='DTU Wind Energy',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
package_data={
'hydesign': [
'tests/test_files/sm.pkl',
'tests/test_files/*.pickle',
'tests/test_files/*.csv',
'look_up_tables/*.nc',
'examples/*.csv',
'examples/*/*.csv',
'examples/*/*/*.csv',
'examples/*/*.yml',
'examples/*.png',
'examples/*/*.nc',
],},
install_requires=[
'dask',
'numpy',
'pandas',
'scikit-learn',
'scipy',
'h5netcdf',
'netcdf4',
'xarray',
'openmdao',
'smt<=2.6',
'cplex',
'docplex',
'numpy-financial',
'pvlib',
'statsmodels',
'rainflow',
'pyyaml',
'matplotlib',
'zarr',
'ortools',
'NREL-PySAM',
'chaospy',
'tqdm',
'openpyxl',
],
extras_require={
'test': [
'pytest',],
'optional': [
'seaborn',
'jupyterlab',
'finitediff',],
'docs': [
'pypandoc',
'sphinx<=7.3.7',
'nbsphinx',
'nbconvert',
'sphinx_rtd_theme',
'sphinx-autoapi',
'sphinx-tags',
],
},
include_package_data=True,
zip_safe=True)