|
15 | 15 | import versioneer
|
16 | 16 |
|
17 | 17 |
|
18 |
| -DESCRIPTION = 'The PVLIB toolbox provides a set functions for simulating the performance of photovoltaic energy systems.' |
19 |
| -LONG_DESCRIPTION = open('README.md').read() |
| 18 | +DESCRIPTION = ('A set of functions and classes for simulating the ' + |
| 19 | + 'performance of photovoltaic energy systems.') |
| 20 | +LONG_DESCRIPTION = """ |
| 21 | +PVLIB Python is a community supported tool that provides a set of |
| 22 | +functions and classes for simulating the performance of photovoltaic |
| 23 | +energy systems. PVLIB Python was originally ported from the PVLIB MATLAB |
| 24 | +toolbox developed at Sandia National Laboratories and it implements many |
| 25 | +of the models and methods developed at the Labs. More information on |
| 26 | +Sandia Labs PV performance modeling programs can be found at |
| 27 | +https://pvpmc.sandia.gov/. We collaborate with the PVLIB MATLAB project, |
| 28 | +but operate independently of it. |
| 29 | +
|
| 30 | +We need your help to make pvlib-python a great tool! |
| 31 | +
|
| 32 | +Documentation: http://pvlib-python.readthedocs.io |
| 33 | +
|
| 34 | +Source code: https://github.com/pvlib/pvlib-python |
| 35 | +""" |
20 | 36 |
|
21 | 37 | DISTNAME = 'pvlib'
|
22 |
| -LICENSE = 'The BSD 3-Clause License' |
23 |
| -AUTHOR = 'Dan Riley, Clifford Hanson, Rob Andrews, Will Holmgren, github contributors' |
| 38 | +LICENSE = 'BSD 3-Clause' |
| 39 | +AUTHOR = 'PVLIB Python Developers' |
24 | 40 | MAINTAINER_EMAIL = '[email protected]'
|
25 | 41 | URL = 'https://github.com/pvlib/pvlib-python'
|
26 | 42 |
|
| 43 | +INSTALL_REQUIRES = ['numpy >= 1.8.2', |
| 44 | + 'pandas >= 0.13.1', |
| 45 | + 'pytz', |
| 46 | + 'six', |
| 47 | + ] |
| 48 | +TESTS_REQUIRE = ['nose'] |
| 49 | + |
27 | 50 | CLASSIFIERS = [
|
28 | 51 | 'Development Status :: 4 - Beta',
|
29 | 52 | 'License :: OSI Approved :: BSD License',
|
|
39 | 62 | 'Topic :: Scientific/Engineering',
|
40 | 63 | ]
|
41 | 64 |
|
42 |
| -# check python version. |
43 |
| -if not sys.version_info[:2] in ((2,7), (3,3), (3,4), (3,5)): |
44 |
| - sys.exit('%s requires Python 2.7, 3.3, or 3.4' % DISTNAME) |
45 |
| - |
46 | 65 | setuptools_kwargs = {
|
47 | 66 | 'zip_safe': False,
|
48 |
| - 'install_requires': ['numpy >= 1.8.2', |
49 |
| - 'pandas >= 0.13.1', |
50 |
| - 'pytz', |
51 |
| - 'six', |
52 |
| - ], |
53 | 67 | 'scripts': [],
|
54 | 68 | 'include_package_data': True
|
55 | 69 | }
|
|
68 | 82 | print('all spa_c files found')
|
69 | 83 | PACKAGES.append('pvlib.spa_c_files')
|
70 | 84 |
|
71 |
| - spa_ext = Extension('pvlib.spa_c_files.spa_py', |
| 85 | + spa_ext = Extension('pvlib.spa_c_files.spa_py', |
72 | 86 | sources=spa_sources, depends=spa_depends)
|
73 | 87 | extensions.append(spa_ext)
|
74 | 88 | else:
|
75 | 89 | print('WARNING: spa_c files not detected. ' +
|
76 | 90 | 'See installation instructions for more information.')
|
77 | 91 |
|
78 |
| - |
| 92 | + |
79 | 93 | setup(name=DISTNAME,
|
80 | 94 | version=versioneer.get_version(),
|
81 | 95 | cmdclass=versioneer.get_cmdclass(),
|
82 | 96 | packages=PACKAGES,
|
| 97 | + install_requires=INSTALL_REQUIRES, |
| 98 | + tests_require=TESTS_REQUIRE, |
83 | 99 | ext_modules=extensions,
|
84 | 100 | description=DESCRIPTION,
|
85 | 101 | long_description=LONG_DESCRIPTION,
|
|
0 commit comments