forked from peplin/pygatt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (42 loc) · 1.19 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
import os
import sys
__title__ = 'pygatt'
__version__ = '2.0.1'
__license__ = 'Apache License, Version 2.0 and MIT License'
__copyright__ = 'Copyright 2015 Stratos Inc. and Orion Labs'
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup # pylint: disable=F0401,E0611
def publish():
"""Function for publishing package to pypi."""
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
publish()
setup(
name=__title__,
version=__version__,
description='Python GATT Module',
author='Greg Albrecht <gba@orionlabs.co',
author_email='gba@orionlabs.co',
packages=find_packages(exclude=("tests", "tests.*")),
package_data={'': ['LICENSE', 'NOTICE']},
license=open('LICENSE').read(),
long_description=open('README.mkd').read(),
url='https://github.com/peplin/pygatt',
install_requires=[
'pyserial',
'enum34'
],
setup_requires=[
'coverage >= 3.7.1',
'nose >= 1.3.7'
],
extras_require={
'GATTTOOL': ["pexpect"],
},
package_dir={'pygatt': 'pygatt'},
zip_safe=False,
include_package_data=True
)