forked from doudz/zigate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (61 loc) · 1.86 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
#!/usr/bin/env python3
#
# Copyright (c) 2018 Sébastien RAMAGE
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
"""
zigate, setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup
from distutils.util import convert_path
from os import path
here = path.abspath(path.dirname(__file__))
# Get __version without load zigate module
main_ns = {}
version_path = convert_path('zigate/version.py')
with open(version_path) as version_file:
exec(version_file.read(), main_ns)
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Setup part
setup(
name='zigate',
version=main_ns['__version__'],
description='python library for the zigate gateway (zigbee) http://zigate.fr',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/doudz/zigate',
author='Sébastien RAMAGE',
author_email='sebastien.ramage@gmail.com',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
],
keywords='zigate zigbee python3',
packages=['zigate'],
include_package_data=True,
install_requires=[
'pyserial',
'pydispatcher',
'bottle'
],
extras_require={
'dev': ['tox'],
'mqtt': ['paho-mqtt']
},
python_requires='>=3',
project_urls={
'Bug Reports': 'https://github.com/doudz/zigate/issues',
'Source': 'https://github.com/doudz/zigate/',
},
test_suite='tests',
)