diff --git a/README.rst b/README.rst index 2d1fb61..e7e9707 100644 --- a/README.rst +++ b/README.rst @@ -71,6 +71,13 @@ Using `this pysoem chat room on gitter `_ is on Changes ------- +v1.1.0 +^^^^^^^ +* Changed the data type for the ``name`` attribute of SDO info CdefCoeObject and CdefCoeObjectEntry, they are of type bytes now instead of a regular Python 3 string. +* Also changed the ``desc`` attribute of the ``find_adapters()`` list elements to ``bytes``. +* Introduces the ``open()`` context manager function. +* Adds the ``setup_func`` that will maybe later replace the ``config_func``. + v1.0.8 ^^^^^^^ * Version bump only to re-upload to PyPI with windows-wheel for Python 3.11 diff --git a/pysoem/__init__.py b/pysoem/__init__.py index e00a68e..4d878d7 100644 --- a/pysoem/__init__.py +++ b/pysoem/__init__.py @@ -1,2 +1,2 @@ -__version__ = '1.0.8-post.1' +__version__ = '1.1.0' from .pysoem import * \ No newline at end of file diff --git a/pysoem/pysoem.pyx b/pysoem/pysoem.pyx index 1e3fc1b..719ecf5 100644 --- a/pysoem/pysoem.pyx +++ b/pysoem/pysoem.pyx @@ -93,6 +93,10 @@ def find_adapters(): @contextlib.contextmanager def open(ifname): + """Context manager function to create a Master object. + + .. versionadded:: 1.1.0 + """ master = Master() master.open(ifname) yield master