forked from NREL/rdtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
130 lines (109 loc) · 3.27 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
raise RuntimeError('setuptools is required')
import versioneer
DESCRIPTION = 'Functions for reproducible timeseries analysis of photovoltaic systems.'
LONG_DESCRIPTION = """
RdTools is an open-source library to support reproducible technical analysis of
PV time series data. The library aims to provide best practice analysis
routines along with the building blocks for users to tailor their own analyses.
Source code: https://github.com/NREL/rdtools
"""
DISTNAME = 'rdtools'
LICENSE = 'MIT'
AUTHOR = 'Rdtools Python Developers'
AUTHOR_EMAIL = '[email protected]'
MAINTAINER_EMAIL = '[email protected]'
URL = 'https://github.com/NREL/rdtools'
SETUP_REQUIRES = [
'pytest-runner',
]
TESTS_REQUIRE = [
'pytest >= 3.6.3',
'coverage',
'flake8',
'nbval',
'pytest-mock',
]
INSTALL_REQUIRES = [
'matplotlib >= 3.0.0',
'numpy >= 1.15',
# exclude pandas==1.0.0 & 1.0.1 for GH142, and 0.24.0 for GH114
'pandas >= 0.23.2,!=0.24.0,!=1.0.0,!=1.0.1',
'statsmodels >= 0.9.0',
'scipy >= 1.1.0',
'h5py >= 2.8.0',
'plotly>=4.0.0',
'xgboost >= 1.3.3',
'pvlib >= 0.7.0, <0.10.0',
'scikit-learn >= 0.22.0',
]
EXTRAS_REQUIRE = {
'doc': [
'sphinx==4.5.0',
'nbsphinx==0.8.8',
'nbsphinx-link==1.3.0',
'sphinx_rtd_theme==0.5.2',
'ipython',
# sphinx-gallery used indirectly for nbsphinx thumbnail galleries; see:
# https://nbsphinx.readthedocs.io/en/0.6.0/subdir/gallery.html#Creating-Thumbnail-Galleries
'sphinx-gallery==0.8.1',
],
'test': TESTS_REQUIRE,
}
EXTRAS_REQUIRE['all'] = sorted(set(sum(EXTRAS_REQUIRE.values(), [])))
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Scientific/Engineering',
]
KEYWORDS = [
'photovoltaic',
'solar',
'analytics',
'analysis',
'performance',
'degradation',
'PV'
]
PROJECT_URLS = {
"Bug Tracker": "https://github.com/NREL/rdtools/issues",
"Documentation": "https://rdtools.readthedocs.io/",
"Source Code": "https://github.com/NREL/rdtools",
}
setuptools_kwargs = {
'zip_safe': False,
'scripts': [],
'include_package_data': True
}
# set up packages to be installed and extensions to be compiled
PACKAGES = ['rdtools']
setup(name=DISTNAME,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=PACKAGES,
keywords=KEYWORDS,
setup_requires=SETUP_REQUIRES,
tests_require=TESTS_REQUIRE,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
maintainer_email=MAINTAINER_EMAIL,
license=LICENSE,
url=URL,
project_urls=PROJECT_URLS,
classifiers=CLASSIFIERS,
**setuptools_kwargs)