Skip to content

Commit 1240edc

Browse files
committed
Prepare for release
1 parent a0aef13 commit 1240edc

File tree

7 files changed

+46
-4
lines changed

7 files changed

+46
-4
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
*.yaml
2-
32
*.pyc
3+
4+
cortex2\.egg-info/
5+
dist/
6+
build/

HISTORY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# EmotivCortex2Client Changelog
2+
3+
## v1.0.0 - 2019_07_09
4+
5+
### Added
6+
7+
- Initial release:
8+
- WebsocketClient with tested asynchronicity
9+
- EmotivCortex2Client with full API

cortex2/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from .emotiv_cortex2_client import EmotivCortex2Client
2+
__all__ = [
3+
'EmotivCortex2Client'
4+
]
5+
6+
# Version 1.0.0

emotiv_cortex2_client.py renamed to cortex2/emotiv_cortex2_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
3838
"""
3939

40-
from lib.WebsocketClient import WebsocketClient
40+
from .lib.WebsocketClient import WebsocketClient
4141

4242
from collections import deque, OrderedDict
4343
from threading import Thread, Event
File renamed without changes.

lib/WebsocketClient/websocket_client.py renamed to cortex2/lib/WebsocketClient/websocket_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"""
3030

3131
import asyncio
32-
import websockets as websockets
33-
import json as json
32+
import websockets
33+
import json
3434
import logging
3535
import string
3636
import secrets

setup.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from setuptools import setup, find_packages
2+
with open('README.md') as readme_file:
3+
README = readme_file.read()
4+
with open('HISTORY.md') as history_file:
5+
HISTORY = history_file.read()
6+
7+
setup_args = {'name': "cortex2",
8+
'version': "1.0.0",
9+
'description': "Comprehensive threaded, asynchronous Python client for the Emotiv EEG Cortex 2 API",
10+
'long_description_content_type': "text/markdown",
11+
'long_description': README + '\n\n' + HISTORY,
12+
'license': "MIT",
13+
'packages': find_packages(),
14+
'author': "methylDragon",
15+
'author_email': "methylDragon@gmail.com",
16+
'keywords': ['emotiv', 'eeg', 'client', 'websockets', 'api', 'bci', 'brain'],
17+
'url': "https://github.com/methylDragon/emotiv-cortex2-python-client",
18+
'download_url': "https://pypi.org/project/cortex2/"}
19+
20+
install_requires = ['websockets>=7.0',
21+
]
22+
23+
if __name__ == '__main__':
24+
setup(**setup_args, install_requires=install_requires)

0 commit comments

Comments
 (0)