From e55eb79c952f93b4c23e6c4794f432d4e0d08d37 Mon Sep 17 00:00:00 2001 From: methylDragon Date: Tue, 9 Jul 2019 22:41:26 +0800 Subject: [PATCH] Fix import bug --- PyPI/HISTORY.md | 8 ++++++++ cortex2/__init__.py | 1 + cortex2/emotiv_cortex2_client.py | 2 +- cortex2/lib/__init__.py | 1 + setup.py | 2 +- 5 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 cortex2/lib/__init__.py diff --git a/PyPI/HISTORY.md b/PyPI/HISTORY.md index ec3d065..0bbbfc1 100644 --- a/PyPI/HISTORY.md +++ b/PyPI/HISTORY.md @@ -1,5 +1,13 @@ # EmotivCortex2Client Changelog +## v1.0.1 - 2019_07_09 + +### Changed + +- Fixed submodule import bug + + + ## v1.0.0 - 2019_07_09 ### Added diff --git a/cortex2/__init__.py b/cortex2/__init__.py index b4505ac..ecd5954 100644 --- a/cortex2/__init__.py +++ b/cortex2/__init__.py @@ -1,4 +1,5 @@ from .emotiv_cortex2_client import EmotivCortex2Client + __all__ = [ 'EmotivCortex2Client' ] diff --git a/cortex2/emotiv_cortex2_client.py b/cortex2/emotiv_cortex2_client.py index 531bd0d..8792b01 100644 --- a/cortex2/emotiv_cortex2_client.py +++ b/cortex2/emotiv_cortex2_client.py @@ -37,7 +37,7 @@ """ -from .lib.WebsocketClient import WebsocketClient +from .lib import WebsocketClient from collections import deque, OrderedDict from threading import Thread, Event diff --git a/cortex2/lib/__init__.py b/cortex2/lib/__init__.py new file mode 100644 index 0000000..8ecef08 --- /dev/null +++ b/cortex2/lib/__init__.py @@ -0,0 +1 @@ +from .WebsocketClient import * diff --git a/setup.py b/setup.py index 913727a..ddf1bc9 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ HISTORY = history_file.read() setup_args = {'name': "cortex2", - 'version': "1.0.0.post3", + 'version': "1.0.1", 'description': "Comprehensive threaded, asynchronous Python client for the Emotiv EEG Cortex 2 API", 'long_description_content_type': "text/markdown", 'long_description': README + '\n\n' + HISTORY,