diff --git a/README.md b/README.md index 2f06fb7..bb303b9 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,10 @@ ### Major features -* __Python 3.5+__ compatible. +* __Python 3.5+__ compatible for Linux and macOS. * **Implements [PEP 492](https://www.python.org/dev/peps/pep-0492/)** * **Applications developed with version 1.x of pymata_aio are backward compatible without modification.** +* __Python 3.7+__ compatible for Windows. * **Implemented using the high efficiency Python [asyncio](https://docs.python.org/3/library/asyncio.html) library.** * **Choose From 3 Included APIs** * **pymata_core** - a pure asyncio method call API. diff --git a/pymata_aio/private_constants.py b/pymata_aio/private_constants.py index 5bb454a..398c755 100644 --- a/pymata_aio/private_constants.py +++ b/pymata_aio/private_constants.py @@ -70,7 +70,7 @@ class PrivateConstants: SYSEX_REALTIME = 0x7F # MIDI Reserved for realtime messages # reserved for PyMata - PYMATA_VERSION = "2.33" + PYMATA_VERSION = "2.34" # each byte represents a digital port # and its value contains the current port settings diff --git a/pymata_aio/pymata_core.py b/pymata_aio/pymata_core.py index a0c91e9..50f3b2d 100644 --- a/pymata_aio/pymata_core.py +++ b/pymata_aio/pymata_core.py @@ -80,9 +80,19 @@ def __init__(self, arduino_wait=4, sleep_tune=0.0001, log_output=False, :returns: This method never returns """ - # check to make sure that Python interpreter is version 3.5 or greater + # check to make sure that Python interpreter is version 3.5 or greater for + # linux and mac and version 3.7 for Windows python_version = sys.version_info - if python_version[0] >= 3: + + if sys.platform == 'win32': + if python_version[0] >= 3: + if python_version[1] >= 7: + pass + else: + print( + "ERROR: Python 3.7 or greater is required for use of this program with Windows.") + # version 3.5 or greater for linux/mac + elif python_version[0] >= 3: if python_version[1] >= 5: pass else: diff --git a/setup.py b/setup.py index aa60b18..04f3bb1 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='pymata-aio', - version='2.34', + version='2.35', packages=['pymata_aio', 'utilities'], install_requires=['pyserial', 'websockets'], entry_points={