From 9ec374751ce029723623807088ca27b0a1a90058 Mon Sep 17 00:00:00 2001 From: ibarbech Date: Tue, 6 Nov 2018 12:00:46 +0100 Subject: [PATCH] fixed up problem with generate whl learnbot_components --- learnbot_components/__init__.py | 2 +- learnbot_components_setup.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/learnbot_components/__init__.py b/learnbot_components/__init__.py index 76c71074..37d487ef 100644 --- a/learnbot_components/__init__.py +++ b/learnbot_components/__init__.py @@ -1,3 +1,3 @@ import os pathInterfaces = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'interfaces') -__version__ = "0.0.3" \ No newline at end of file +__version__ = '0.0.3' \ No newline at end of file diff --git a/learnbot_components_setup.py b/learnbot_components_setup.py index 88341abe..eaa525d1 100644 --- a/learnbot_components_setup.py +++ b/learnbot_components_setup.py @@ -9,7 +9,7 @@ def readVersion(fname): if '__version__' in l: return l.split("=")[-1].replace("'","").replace(" ","") setup(name="learnbot_components", - version=read('version'), + version=readVersion(os.path.join(os.path.dirname(__file__),"learnbot_components","__init__.py")), description="learnbot_components contains some components to install in learnbot robot.", author="Ivan Barbecho", author_email="ivanbd@unex.es", @@ -42,8 +42,7 @@ def readVersion(fname): 'paho_mqtt==1.4.0', 'picamera==1.13', 'wiringpi==2.46.0', - 'wiringpi2==2.32.3' - ], + 'wiringpi2'], ) if os.path.exists("build.learnbot_components"): shutil.rmtree("build.learnbot_components")