15
0
Files
python-fritzconnection/python-fritzconnection.spec
Dirk Mueller 22815a4c41 Accepting request 1006722 from home:yarunachalam:branches:devel:languages:python
- update to 1.10.3 - 2022-09-08
  * upper limit for dependency pinning removed to support installation on more recent environments.
- update to 1.10.2 - 2022-09-04
  * bugfix: missing self in FritzStatus.get_device_info() (introduced in 1.10.0) (#165)
  * dependencies pinned for requests not supporting Python 3.6 since version 2.28.0 and for segno (which still works with EOL versions).
- update to 1.10.1 - 2022-09-01
  * bugfix: cli argument forwarding (introduced in 1.10.0) (#164)
  * enhancement: cli flag -y to suppress cache-verification now implies -x (use cache)
- update to 1.10.0 - 2022-08-24
  * FritzConnection
  * API cache integration added: for faster start up times the router API can optional get saved in a cache-file.
  *  This can save up to several seconds run-time on instanciation.
  FritzHosts:
  * New method get_hosts_attributes providing a list of dictionaries with the attribues of all known hosts (#134)
  FritzStatus:
  * New property update_available (#156)
  * New property connection_service
  * New property has_wan_support (#162)
  * New property has_wan_enabled (#147)
  * New property upnp_enabled() (#153)
  * New property device_has_mesh_support (#146)
  * New method get_default_connection_service (#146)
  * New method get_device_info() (#155)
  FritzWLAN:
  * QR-code now supports encryption information for the described network by auto-detecting the security settings (which is optional but set to default) (#139)
  Testing:
  * requires opencv to check qr-codes
  * covering Python 3.11
  * New class ArgumentNamespace added in fritzconnection.lib.fritztools for convenient handling of dictionaries returned from FritzConnection.call_action() calls.
  * Better error message in case application access is disabled (#142)

OBS-URL: https://build.opensuse.org/request/show/1006722
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fritzconnection?expand=0&rev=12
2022-09-28 16:47:59 +00:00

83 lines
2.6 KiB
RPMSpec

#
# spec file for package python-fritzconnection
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%global pythons python3
Name: python-fritzconnection
Version: 1.10.2
Release: 0
Summary: A Python module to talk to a AVM fritzbox
License: MIT
Group: Development/Languages/Python
URL: https://github.com/kbr/fritzconnection/
Source: https://github.com/kbr/fritzconnection/archive/%{version}.tar.gz#/fritzconnection-%{version}.tar.gz
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lxml
Requires: python-requests
Requires: python-setuptools
BuildArch: noarch
Obsoletes: python310-fritzconnection < 1.9.0
Obsoletes: python39-fritzconnection < 1.9.0
%python_subpackages
%description
fritzconnection is a Python library to communicate with the AVM
Fritz!Box by the TR-064 protocol.
This allows to read status-informations from the box and to read
and change configuration settings and state.
%prep
%setup -q -n fritzconnection-%{version}
%build
export LC_ALL=C.utf-8
%python_build
%install
export LC_ALL=C.utf-8
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Don't run functional tests that require connections to a physical fritzbox router
rm fritzconnection/tests/test_functional.py
# https://github.com/kbr/fritzconnection/issues/154
%pytest -k 'not (test_terminate_thread_on_failed_reconnection or test_restart_failed_monitor)'
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{_bindir}/fritzcall
%{_bindir}/fritzconnection
%{_bindir}/fritzhomeauto
%{_bindir}/fritzhosts
%{_bindir}/fritzmonitor
%{_bindir}/fritzphonebook
%{_bindir}/fritzstatus
%{_bindir}/fritzwlan
%{python_sitelib}/*
%changelog