forked from pvlib/pvanalytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
89 lines (74 loc) · 2.23 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
#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
raise RuntimeError('setuptools is required')
DESCRIPTION = ('PVAnalytics is a python library for the analysis of ' +
'photovoltaic system-level data.')
LONG_DESCRIPTION = """
PVAnalytics is a collection of functions for working with data
from photovoltaic power systems. The library includes functions for
general data quality tests such as outlier detection, validation that
data is physically plausible, filtering data for specific conditions,
and labeling specific features in the data.
Documentation: https://pvanalytics.readthedocs.io
Source code: https://github.com/pvlib/pvanalytics
"""
DISTNAME = 'pvanalytics'
AUTHOR = 'pvanalytics Contributors'
MAINTAINER_EMAIL = '[email protected]'
LICENSE = 'MIT'
URL = 'https://github.com/pvlib/pvanalytics'
TESTS_REQUIRE = [
'pytest',
'pytest-cov',
'packaging',
]
INSTALL_REQUIRES = [
'numpy >= 1.16.0',
'pandas >= 1.0.0, != 1.1.*',
'pvlib >= 0.9.4',
'scipy >= 1.4.0',
'statsmodels >= 0.9.0',
'scikit-image >= 0.16.0',
'importlib-metadata; python_version < "3.8"',
]
DOCS_REQUIRE = [
'sphinx == 4.5.0',
'pydata-sphinx-theme == 0.8.1',
'sphinx-gallery',
'matplotlib',
]
EXTRAS_REQUIRE = {
'optional': ['ruptures'],
'test': TESTS_REQUIRE,
'doc': DOCS_REQUIRE
}
EXTRAS_REQUIRE['all'] = sorted(set(sum(EXTRAS_REQUIRE.values(), [])))
SETUP_REQUIRES = ['setuptools_scm']
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering'
]
PACKAGES = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
setup(
name=DISTNAME,
use_scm_version=True,
packages=PACKAGES,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
tests_require=TESTS_REQUIRE,
setup_requires=SETUP_REQUIRES,
ext_modules=[],
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
maintainer_email=MAINTAINER_EMAIL,
license=LICENSE,
classifiers=CLASSIFIERS,
url=URL,
include_package_data=True,
)