forked from NREL/rdtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·116 lines (96 loc) · 2.71 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
#!/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',
]
INSTALL_REQUIRES = [
'matplotlib >= 2.2.2',
'numpy >= 1.12',
'pandas >= 0.23.0,!=1.0.0,!=1.0.1', # exclude 1.0.0 & 1.0.1 for GH142
'statsmodels >= 0.8.0',
'scipy >= 0.19.1',
'h5py >= 2.7.1',
'pvlib >= 0.7.0, <0.8.0',
]
EXTRAS_REQUIRE = {
'doc': [
'sphinx==1.8.5',
'nbsphinx==0.4.3',
'nbsphinx-link==1.3.0',
'pandas==0.23.0',
'pvlib==0.7.1',
'sphinx_rtd_theme==0.4.3',
'ipython',
],
'test': [
'pytest',
'coverage',
]
}
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.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering',
]
KEYWORDS = [
'photovoltaic',
'solar',
'analytics',
'analysis',
'performance',
'degradation',
'PV'
]
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,
classifiers=CLASSIFIERS,
**setuptools_kwargs)