forked from peplin/pygatt
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
55 lines (43 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
50
51
52
53
54
55
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup for the PYGatt Python Module.
Source:: https://github.com/ampledata/pygatt
"""
__title__ = 'pygatt'
__version__ = '1.3.0'
__author__ = 'Greg Albrecht <[email protected]>'
__license__ = 'Apache License, Version 2.0'
__copyright__ = 'Copyright 2015 Orion Labs, Inc.'
import os
import sys
try:
from setuptools import setup
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='pygatt',
version=__version__,
description='Python GATT Module',
author='Greg Albrecht',
author_email='[email protected]',
packages=['pygatt'],
package_data={'': ['LICENSE', 'NOTICE']},
license=open('LICENSE').read(),
long_description=open('README.rst').read(),
url='https://github.com/ampledata/pygatt',
install_requires=['pexpect >= 3.3'],
setup_requires=[
'coverage >= 3.7.1',
'nose >= 1.3.7'
],
package_dir={'pygatt': 'pygatt'},
zip_safe=False,
include_package_data=True
)