forked from eclipse-paho/paho.mqtt.python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (55 loc) · 1.96 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from setuptools import find_packages, setup
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', 'six']
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
setup_requirements = ['pytest-runner'] if needs_pytest else []
extra_requirements = {'proxy': ['PySocks']}
if sys.version_info < (3, 0):
test_requirements += ['mock']
setup(
name='paho-mqtt',
version=__version__,
description='MQTT version 5.0/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 v2.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.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Communications',
'Topic :: Internet',
],
test_suite='tests',
tests_require=test_requirements,
setup_requires=setup_requirements,
extras_require=extra_requirements
)