forked from LionelDarras/PyVantagePro
-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
80 lines (69 loc) · 2.33 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
# coding: utf8
'''
PyVantagePro
------------
Communication tools for the Davis VantagePro2 devices.
:copyright: Copyright 2012 Salem Harrache and contributors, see AUTHORS.
:license: GNU GPL v3.
'''
import re
import sys
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = ''
CHANGES = ''
try:
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
except:
pass
REQUIREMENTS = [
'pylink',
'progressbar-latest',
]
if sys.version_info < (2, 7):
REQUIREMENTS.append('ordereddict')
if sys.version_info < (2, 7) or (3,) <= sys.version_info < (3, 2):
# In the stdlib from 2.7:
REQUIREMENTS.append('argparse')
with open(os.path.join(os.path.dirname(__file__), 'pyvantagepro',
'__init__.py')) as init_py:
release = re.search("VERSION = '([^']+)'", init_py.read()).group(1)
# The short X.Y version.
version = release.rstrip('dev')
setup(
name='PyVantagePro',
version=version,
url='https://github.com/SalemHarrache/PyVantagePro',
license='GNU GPL v3',
description='Communication tools for the Davis VantagePro2 devices',
long_description=README + '\n\n' + CHANGES,
author='Salem Harrache',
author_email='[email protected]',
maintainer='Lionel Darras',
maintainer_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Internet',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules'
],
packages=find_packages(),
zip_safe=False,
install_requires=REQUIREMENTS,
test_suite='pyvantagepro.tests',
entry_points={
'console_scripts': [
'pyvantagepro = pyvantagepro.__main__:main'
],
},
)