From 1bbcf777bded8a4c8ddcb5cad4c77666782f31bca0539502e33f84aef70dea2a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 15 Jan 2022 17:32:04 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=201.9.0:=20=20=20*=20New=20meth?= =?UTF-8?q?od=20`get=5Fwifi=5Fqr=5Fcode()`=20for=20QR-code=20creation=20fo?= =?UTF-8?q?r=20wifi-access=20=20=20*=20New=20method=20`channel=5Finfo=20?= =?UTF-8?q?=20=20*=20FritzHomeAutomation:=20New=20method=20`device=5Finfor?= =?UTF-8?q?mation=20=20=20*=20FritzConnection:=20new=20command=20line=20op?= =?UTF-8?q?tion=20`-R`=20to=20reboot=20the=20system=20=20=20*=20New=20meth?= =?UTF-8?q?od=20`get=5Fgeneric=5Fhost=5Fentries`=20returning=20a=20generat?= =?UTF-8?q?or=20to=20iterate=20over=20=20=20=20=20all=20entries=20as=20rep?= =?UTF-8?q?orted=20by=20the=20method=20`get=5Fgeneric=5Fhost=5Fentry`.=20?= =?UTF-8?q?=20=20*=20The=20methods=20`get=5Factive=5Fhosts`=20and=20`get?= =?UTF-8?q?=5Fhosts=5Finfo`=20provide=20additional=20host=20=20=20=20=20at?= =?UTF-8?q?tributes=20=20=20*=20Refactoring=20of=20the=20logging=20module?= =?UTF-8?q?=20`fritzconnection.core.logger`=20(introduced=20=20=20=20=20in?= =?UTF-8?q?=201.7.0).=20Now=20emitting=20messages=20from=20INFO-level=20an?= =?UTF-8?q?d=20up=20by=20default.=20=20=20*=20Connection=20errors=20with?= =?UTF-8?q?=20the=20router=20raised=20from=20the=20underlying=20`urllib3`?= =?UTF-8?q?=20=20=20=20=20library=20are=20caught=20and=20raised=20again=20?= =?UTF-8?q?as=20FritzConnectionException=20preserving=20=20=20=20=20the=20?= =?UTF-8?q?connection=20error=20information=20=20=20*=20bugfix:=20logger?= =?UTF-8?q?=20deactivated=20by=20default=20=20=20*=20Tests=20extended=20fo?= =?UTF-8?q?r=20Python=203.10=20=20=20*=20`enable`=20and=20`disable`=20to?= =?UTF-8?q?=20enable=20and=20disable=20a=20wlan=20network.=20=20=20*=20`ge?= =?UTF-8?q?t=5Fpassword`=20and=20`set=5Fpassword`=20to=20get=20the=20curre?= =?UTF-8?q?nt=20password=20or=20set=20a=20new=20=20=20=20=20one=20for=20a?= =?UTF-8?q?=20wlan=20network.=20=20=20*=20New=20FritzGuestWLAN=20library?= =?UTF-8?q?=20class.=20=20=20*=20New=20FritzConnection=20method=20`reboot`?= =?UTF-8?q?.=20=20=20*=20New=20logging=20module=20`fritzconnection.core.lo?= =?UTF-8?q?gger`.=20=20=20*=20New=20arguments=20for=20FritzConnection:=20`?= =?UTF-8?q?pool=5Fconnections`=20and=20`pool=5Fmaxsize`=20to=20=20=20=20?= =?UTF-8?q?=20adapt=20the=20default=20urllib3=20settings=20(used=20by=20re?= =?UTF-8?q?quests).=20(#114).=20=20=20*=20New=20properties=20`FritzStatus.?= =?UTF-8?q?device=5Fuptime`=20and=20=20=20=20=20`FritzStatus.connection=5F?= =?UTF-8?q?uptime``;=20the=20latter=20a=20replacement=20for=20=20=20=20=20?= =?UTF-8?q?`FritzStatus.uptime`=20=E2=80=93=20still=20existing=20as=20an?= =?UTF-8?q?=20alias.=20=20=20*=20bugfix:=20html-escape=20arguments=20in=20?= =?UTF-8?q?case=20that=20special=20characters=20are=20allowed=20=20=20=20?= =?UTF-8?q?=20by=20the=20protocol.=20=20=20*=20bugfix:=20`FritzStatus.byte?= =?UTF-8?q?s=5Fsent`=20will=20return=20the=2032=20bit=20value=20from=20old?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fritzconnection?expand=0&rev=7 --- fritzconnection-1.3.4.tar.gz | 3 -- fritzconnection-1.9.0.tar.gz | 3 ++ python-fritzconnection.changes | 52 ++++++++++++++++++++++++++++++++++ python-fritzconnection.spec | 30 ++++++++------------ 4 files changed, 67 insertions(+), 21 deletions(-) delete mode 100644 fritzconnection-1.3.4.tar.gz create mode 100644 fritzconnection-1.9.0.tar.gz diff --git a/fritzconnection-1.3.4.tar.gz b/fritzconnection-1.3.4.tar.gz deleted file mode 100644 index 11af9fd..0000000 --- a/fritzconnection-1.3.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8a415df8d2215bfba135fc68baad05524419bd672bb4190c07b3ed579c8f0fd0 -size 61913 diff --git a/fritzconnection-1.9.0.tar.gz b/fritzconnection-1.9.0.tar.gz new file mode 100644 index 0000000..514a3f5 --- /dev/null +++ b/fritzconnection-1.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ff559840772cdadbace009887ca9802d3423f081f7933c60d075813bc2d8f81 +size 79389 diff --git a/python-fritzconnection.changes b/python-fritzconnection.changes index af1ca86..c2e5370 100644 --- a/python-fritzconnection.changes +++ b/python-fritzconnection.changes @@ -1,3 +1,55 @@ +------------------------------------------------------------------- +Sat Jan 15 17:26:21 UTC 2022 - Dirk Müller + +- update to 1.9.0: + * New method `get_wifi_qr_code()` for QR-code creation for wifi-access + * New method `channel_info + * FritzHomeAutomation: New method `device_information + * FritzConnection: new command line option `-R` to reboot the system + * New method `get_generic_host_entries` returning a generator to iterate over + all entries as reported by the method `get_generic_host_entry`. + * The methods `get_active_hosts` and `get_hosts_info` provide additional host + attributes + * Refactoring of the logging module `fritzconnection.core.logger` (introduced + in 1.7.0). Now emitting messages from INFO-level and up by default. + * Connection errors with the router raised from the underlying `urllib3` + library are caught and raised again as FritzConnectionException preserving + the connection error information + * bugfix: logger deactivated by default + * Tests extended for Python 3.10 + * `enable` and `disable` to enable and disable a wlan network. + * `get_password` and `set_password` to get the current password or set a new + one for a wlan network. + * New FritzGuestWLAN library class. + * New FritzConnection method `reboot`. + * New logging module `fritzconnection.core.logger`. + * New arguments for FritzConnection: `pool_connections` and `pool_maxsize` to + adapt the default urllib3 settings (used by requests). (#114). + * New properties `FritzStatus.device_uptime` and + `FritzStatus.connection_uptime``; the latter a replacement for + `FritzStatus.uptime` – still existing as an alias. + * bugfix: html-escape arguments in case that special characters are allowed + by the protocol. + * bugfix: `FritzStatus.bytes_sent` will return the 32 bit value from older + Fritz!Box models. + * bugfix: raise `FritzActionError` on accessing the mesh topology information + from a device not having accesss to this information. + * adding code-of-conduct and contributing files to the repository. + * Compatibility with Fritz!OS 7.24 and newer: takes the last logged in + username as default in case that a username is not provided. + * bugfix: byte_formatter may return wrong numbers on values < 1 and has + raised math domain error on values == 0.D (bug introduced with version + * bugfix: FritzStatus library now returns a 32 bit value for *bytes_received* + for older Fritz!OS versions not providing the newer 64 bit information + instead of raising an exception. + * change: Output of bitrate changed to log10 based calculation + * New core module fritzmonitor for reporting realtime phone call events + * Library class FritzStatus with additional properties: *attenuation*, + *str_attenuation*, *noise_margin* and *str_noise_margin* + * Library class FritzHost with additional method *get_host_name* + * Namespace prefix for xml-arguments removed + * Test extended for Python 3.9 + ------------------------------------------------------------------- Tue Sep 29 17:46:23 UTC 2020 - Thorsten Kukuk diff --git a/python-fritzconnection.spec b/python-fritzconnection.spec index 2a987b9..aee8c89 100644 --- a/python-fritzconnection.spec +++ b/python-fritzconnection.spec @@ -1,7 +1,7 @@ # # spec file for package python-fritzconnection # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,8 +18,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +%global pythons python3 Name: python-fritzconnection -Version: 1.3.4 +Version: 1.9.0 Release: 0 Summary: A Python module to talk to a AVM fritzbox License: MIT @@ -55,17 +56,9 @@ export LC_ALL=C.utf-8 export LC_ALL=C.utf-8 %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -for i in fritzcall fritzconnection fritzhomeauto fritzhosts fritzphonebook fritzstatus fritzwlan ; do - %python_clone -a %{buildroot}%{_bindir}/${i} -done - -%post -%{python_install_alternative fritzcall fritzconnection fritzhomeauto fritzhosts fritzphonebook fritzstatus fritzwlan} - -%preun -%{python_uninstall_alternative fritzcall fritzconnection fritzhomeauto fritzhosts fritzphonebook fritzstatus fritzwlan} %check + # Don't run functional tests that require connections to a physical fritzbox router rm fritzconnection/tests/test_functional.py %pytest @@ -73,13 +66,14 @@ rm fritzconnection/tests/test_functional.py %files %{python_files} %license LICENSE.txt %doc README.rst -%python_alternative %{_bindir}/fritzcall -%python_alternative %{_bindir}/fritzconnection -%python_alternative %{_bindir}/fritzhomeauto -%python_alternative %{_bindir}/fritzhosts -%python_alternative %{_bindir}/fritzphonebook -%python_alternative %{_bindir}/fritzstatus -%python_alternative %{_bindir}/fritzwlan +%{_bindir}/fritzcall +%{_bindir}/fritzconnection +%{_bindir}/fritzhomeauto +%{_bindir}/fritzhosts +%{_bindir}/fritzmonitor +%{_bindir}/fritzphonebook +%{_bindir}/fritzstatus +%{_bindir}/fritzwlan %{python_sitelib}/* %changelog