From 9286fa72048d4c493ba70d4ec1decff38444ba83 Mon Sep 17 00:00:00 2001 From: Liam Childs Date: Thu, 15 Sep 2016 14:00:58 +0200 Subject: [PATCH] fixed various build instructions --- .coveragerc | 2 + .gitignore | 92 +--------------------------- README.md | 3 + mimo/stream/converter_stream.py | 9 --- setup.py | 4 +- tests/test_connection/test_output.py | 1 - 6 files changed, 9 insertions(+), 102 deletions(-) create mode 100644 .coveragerc delete mode 100644 mimo/stream/converter_stream.py diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..b70b75d --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +omit = examples/* diff --git a/.gitignore b/.gitignore index 9719cdf..6dd0274 100644 --- a/.gitignore +++ b/.gitignore @@ -1,91 +1,3 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ +*.pyc *.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# IPython Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# dotenv -.env - -# virtualenv -venv/ -ENV/ - -# Spyder project settings -.spyderproject - -# Rope project settings -.ropeproject - -.idea \ No newline at end of file +.idea diff --git a/README.md b/README.md index 0662eb9..2c9ce5f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ mimo ==== ++ Multiple input and multiple output (as opposed to functions where inputs and outputs are always synchronised) +* Less memory (because of streaming) + MiMo is a multi-input multi-output Python streaming library. It allows users to define a stream with multiple inputs and multiple outputs and run them completely from beginning to end. Back-pressure has also been implemented to prevent too much memory from being used. Usage diff --git a/mimo/stream/converter_stream.py b/mimo/stream/converter_stream.py deleted file mode 100644 index 068dbde..0000000 --- a/mimo/stream/converter_stream.py +++ /dev/null @@ -1,9 +0,0 @@ -from mimo.stream import Stream - - -class ConverterStream(Stream): - - IN = ['entity'] - OUT = ['entity'] - - def __init__(self, ): \ No newline at end of file diff --git a/setup.py b/setup.py index 3f35f24..f0e995c 100644 --- a/setup.py +++ b/setup.py @@ -10,10 +10,10 @@ version='1.0.0', author='Liam H. Childs', author_email='liam.h.childs@gmail.com', - packages=find_packages(exclude=['test']), + packages=find_packages(exclude=['tests']), url='https://github.com/childsish/mimo', license='LICENSE.txt', - description='A Python multi-input, multi-output streaming library', + description='A streaming multi-input, multi-output Python library', long_description=long_description, install_requires=['lhc-python'] ) diff --git a/tests/test_connection/test_output.py b/tests/test_connection/test_output.py index 902e52c..9ca6302 100644 --- a/tests/test_connection/test_output.py +++ b/tests/test_connection/test_output.py @@ -1,6 +1,5 @@ import unittest -from mimo import Stream from mimo.connection.output import Output