forked from eclipse-paho/paho.mqtt.python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (51 loc) · 1.77 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
sys.path.insert(0, 'src')
from paho.mqtt import __version__
with open('README.rst', 'rb') as readme_file:
readme = readme_file.read().decode('utf-8')
requirements = []
test_requirements = ['pytest', 'pylama']
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
setup_requirements = ['pytest-runner'] if needs_pytest else []
if sys.version_info < (3, 0):
test_requirements += ['mock']
setup(
name='paho-mqtt',
version=__version__,
description='MQTT version 3.1.1 client class',
long_description=readme,
author='Roger Light',
author_email='[email protected]',
url='http://eclipse.org/paho',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
install_requires=requirements,
license='Eclipse Public License v1.0 / Eclipse Distribution License v1.0',
zip_safe=False,
keywords='paho',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Communications',
'Topic :: Internet',
],
test_suite='tests',
tests_require=test_requirements,
setup_requires=setup_requirements
)