-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
49 lines (37 loc) · 1.12 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup for the Dummy Serial Python Module.
Source:: https://github.com/ampledata/dummyserial
"""
__title__ = 'dummyserial'
__version__ = '1.0.0'
__author__ = 'Greg Albrecht <gba@orionlabs.io>'
__license__ = 'Apache License, Version 2.0'
__copyright__ = 'Copyright 2016 Orion Labs, Inc.'
import os
import setuptools
import sys
def publish():
"""Function for publishing package to pypi."""
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
publish()
setuptools.setup(
name='dummyserial',
version=__version__,
description='Dummy Serial Implementation.',
author='Greg Albrecht',
author_email='gba@orionlabs.io',
packages=['dummyserial'],
package_data={'': ['LICENSE']},
license=open('LICENSE').read(),
long_description=open('README.rst').read(),
url='https://github.com/ampledata/dummyserial',
setup_requires=['coverage >= 3.7.1', 'nose >= 1.3.7'],
install_requires=['pyserial >= 2.7'],
package_dir={'dummyserial': 'dummyserial'},
zip_safe=False,
include_package_data=True
)