From e3da229f22cbd1cfa3fdaa6a4dcfff8cb4e4c724 Mon Sep 17 00:00:00 2001 From: Teemu R Date: Sun, 7 Oct 2018 08:05:32 +0200 Subject: [PATCH] Prepare 0.4.2 - Dropping the Pin (#384) --- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ miio/protocol.py | 3 --- miio/version.py | 2 +- mirobo/__init__.py | 7 ------- requirements.txt | 2 +- setup.py | 6 +++--- 6 files changed, 38 insertions(+), 15 deletions(-) delete mode 100644 mirobo/__init__.py diff --git a/CHANGELOG.md b/CHANGELOG.md index ca11d7a8e..76655f60f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,38 @@ # Change Log +## [0.4.2](https://github.com/rytilahti/python-miio/tree/0.4.2) + +This release removes the version pinning for "construct" library as its API has been stabilized and we don't want to force our downstreams for our version choices. +Another notable change is dropping the "mirobo" package which has been deprecated for a very long time, and everyone using it should have had converted to use "miio" already. +Furthermore the client tools work now with click's version 7+. + +This release also changes the behavior of vacuum's `got_error` property to signal properly if an error has occured. The previous behavior was based on checking the state instead of the error number, which changed after an error to 'idle' after a short while. + +[Full Changelog](https://github.com/rytilahti/python-miio/compare/0.4.1...0.4.2) + +**Fixed bugs:** + +- Zoned cleanup start and stops imediately [\#355](https://github.com/rytilahti/python-miio/issues/355) + +**Closed issues:** + +- STATE not supported: Updating, state\_code: 14 [\#381](https://github.com/rytilahti/python-miio/issues/381) +- cant get it to work with xiaomi robot vacuum cleaner s50 [\#378](https://github.com/rytilahti/python-miio/issues/378) +- airfresh problem [\#377](https://github.com/rytilahti/python-miio/issues/377) +- get device token is 000000000000000000 [\#366](https://github.com/rytilahti/python-miio/issues/366) +- Rockrobo firmware 3.3.9\_003254 [\#358](https://github.com/rytilahti/python-miio/issues/358) +- No response from the device on Xiaomi Roborock v2 [\#349](https://github.com/rytilahti/python-miio/issues/349) +- Information : Xiaomi Aqara Smart Camera Hack [\#347](https://github.com/rytilahti/python-miio/issues/347) + +**Merged pull requests:** + +- Fix click7 compatibility [\#387](https://github.com/rytilahti/python-miio/pull/387) ([rytilahti](https://github.com/rytilahti)) +- Expand documentation for token from Android backup [\#382](https://github.com/rytilahti/python-miio/pull/382) ([sgtio](https://github.com/sgtio)) +- vacuum's got\_error: compare against error code, not against the state [\#379](https://github.com/rytilahti/python-miio/pull/379) ([rytilahti](https://github.com/rytilahti)) +- Add tqdm to requirements list [\#369](https://github.com/rytilahti/python-miio/pull/369) ([pluehne](https://github.com/pluehne)) +- Improve repr format [\#368](https://github.com/rytilahti/python-miio/pull/368) ([syssi](https://github.com/syssi)) + + ## [0.4.1](https://github.com/rytilahti/python-miio/tree/0.4.1) This release provides support for some new devices, improved support of existing devices and various fixes. diff --git a/miio/protocol.py b/miio/protocol.py index db0ddfb91..ce6003875 100644 --- a/miio/protocol.py +++ b/miio/protocol.py @@ -27,9 +27,6 @@ _LOGGER = logging.getLogger(__name__) -# needs to be maintained in sync with setup.py and requirements.txt -assert construct.version_string == "2.9.41" - class Utils: """ This class is adapted from the original xpn.py code by gst666 """ diff --git a/miio/version.py b/miio/version.py index d03eca29c..7b7e96028 100644 --- a/miio/version.py +++ b/miio/version.py @@ -1,2 +1,2 @@ # flake8: noqa -__version__ = "0.4.1" +__version__ = "0.4.2" diff --git a/mirobo/__init__.py b/mirobo/__init__.py deleted file mode 100644 index 0a8227ce4..000000000 --- a/mirobo/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# flake8: noqa -from miio import * -import warnings -warnings.simplefilter('always', DeprecationWarning) -warnings.warn("Please convert to using 'miio' package, this package will " - "be removed at some point in the future", DeprecationWarning, - stacklevel=2) diff --git a/requirements.txt b/requirements.txt index e9c649bc7..8dcf3be11 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ click cryptography pretty_cron -construct==2.9.41 +construct zeroconf attrs typing # for py3.4 support diff --git a/setup.py b/setup.py index dee676a9e..cc4173113 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def readme(): license='GPLv3', classifiers=[ - 'Development Status :: 3 - Alpha', + 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 'Programming Language :: Python :: 3.5', @@ -38,14 +38,14 @@ def readme(): keywords='xiaomi miio vacuum', - packages=["miio", "mirobo"], + packages=["miio"], include_package_data=True, python_requires='>=3.5', install_requires=[ - 'construct==2.9.41', + 'construct', 'click', 'cryptography', 'pretty_cron',