From da1495d642a4181fe41d9ed6e4a36b6ea0e3e0c0 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Wed, 14 Aug 2019 15:04:28 +0200 Subject: [PATCH] Add requirements handling. --- mqtt/__init__.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mqtt/__init__.py b/mqtt/__init__.py index d054385..fd7dbfd 100644 --- a/mqtt/__init__.py +++ b/mqtt/__init__.py @@ -43,7 +43,7 @@ class Mqtt(object): try: self.client.tls_set(self.ca_certs, self.certfile, self.keyfile) res = self.client.connect(self.hostname, self.port, self.keepalive) - if res == mqtt_client.MQTT_ERR_SUCCESS: + if res == mqtt_client.MQTT_ERR_SUCCESS: res = self.client.loop_start() if res != mqtt_client.MQTT_ERR_INVAL: ret = True diff --git a/setup.py b/setup.py index d1ec640..95f06e5 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ type 'python setup.py install' to install the distribution. @author: Thomas Klaehn ''' -from distutils.core import setup +from setuptools import setup setup(name='mqtt', version='1.1.0', author='Thomas Klaehn', - author_email='tkl@blackfinn.de', packages=['mqtt']) + author_email='tkl@blackfinn.de', packages=['mqtt'], install_requires=['paho-mqtt'])