14
0

Accepting request 794518 from home:pgajdos:python

- version update to 0.25.1
  * Eliminated 5s hangup when calling Zeroconf.close(), thanks to Erik Montnemery
  * Reverted uniqueness assertions when browsing, they caused a regression
  Backwards incompatible:
  * Rationalized handling of TXT records. 
- deleted patches
  - python-zeroconf-disable-some-tests.patch (not needed, replaced by -k 'not ...')

OBS-URL: https://build.opensuse.org/request/show/794518
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zeroconf?expand=0&rev=30
This commit is contained in:
Tomáš Chvátal
2020-04-16 09:13:20 +00:00
committed by Git OBS Bridge
parent 9739f9c25d
commit 3c8992a0e9
5 changed files with 17 additions and 53 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f5a35f1211312e8699177f2ba0a01d5a8d23df4b86f21a49480b65679741ef8b
size 53600

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d32dbc683318e4534348d518011944467f641892574a757c19083ec6f8c25afb
size 54075

View File

@@ -1,44 +0,0 @@
diff --git a/zeroconf/test.py b/zeroconf/test.py
index f0d5ad4..26e6216 100644
--- a/zeroconf/test.py
+++ b/zeroconf/test.py
@@ -435,6 +435,7 @@ class Names(unittest.TestCase):
class Framework(unittest.TestCase):
+ @unittest.skip("Does not work in an OBS chroot")
def test_launch_and_close(self):
rv = r.Zeroconf(interfaces=r.InterfaceChoice.All)
rv.close()
@@ -443,6 +444,7 @@ class Framework(unittest.TestCase):
@unittest.skipIf(not socket.has_ipv6, 'Requires IPv6')
@attr('IPv6')
+ @unittest.skip("Does not work in an OBS chroot")
def test_launch_and_close_v4_v6(self):
rv = r.Zeroconf(interfaces=r.InterfaceChoice.All, ip_version=r.IPVersion.All)
rv.close()
@@ -451,6 +453,7 @@ class Framework(unittest.TestCase):
@unittest.skipIf(not socket.has_ipv6, 'Requires IPv6')
@attr('IPv6')
+ @unittest.skip("Does not work in an OBS chroot")
def test_launch_and_close_v6_only(self):
rv = r.Zeroconf(interfaces=r.InterfaceChoice.All, ip_version=r.IPVersion.V6Only)
rv.close()
@@ -770,6 +773,7 @@ class TestDNSCache(unittest.TestCase):
class ServiceTypesQuery(unittest.TestCase):
+ @unittest.skip("Does not work in an OBS chroot")
def test_integration_with_listener(self):
type_ = "_test-srvc-type._tcp.local."
@@ -818,6 +822,7 @@ class ServiceTypesQuery(unittest.TestCase):
@unittest.skipIf(not socket.has_ipv6, 'Requires IPv6')
@attr('IPv6')
+ @unittest.skip("Does not work in an OBS chroot")
def test_integration_with_listener_ipv6(self):
type_ = "_test-srvc-type._tcp.local."

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Apr 16 08:47:59 UTC 2020 - pgajdos@suse.com
- version update to 0.25.1
* Eliminated 5s hangup when calling Zeroconf.close(), thanks to Erik Montnemery
* Reverted uniqueness assertions when browsing, they caused a regression
Backwards incompatible:
* Rationalized handling of TXT records.
- deleted patches
- python-zeroconf-disable-some-tests.patch (not needed, replaced by -k 'not ...')
-------------------------------------------------------------------
Mon Mar 9 10:57:37 UTC 2020 - pgajdos@suse.com

View File

@@ -19,16 +19,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-zeroconf
Version: 0.24.5
Version: 0.25.1
Release: 0
Summary: Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)
License: LGPL-2.0-only
Group: Development/Languages/Python
URL: https://github.com/jstasiak/python-zeroconf
Source: https://github.com/jstasiak/python-zeroconf/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: python-zeroconf-disable-some-tests.patch
BuildRequires: %{python_module ifaddr}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -45,7 +44,6 @@ does not force you to use a particular event loop or python-twisted.
%prep
%setup -q
%patch0 -p1
%build
%python_build
@@ -56,8 +54,7 @@ does not force you to use a particular event loop or python-twisted.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# tests that do not run in an OBS chroot are disabled via python-zeroconf-disable-some-tests.patch
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} %python_exec -m unittest discover -v
%pytest zeroconf/test.py -k 'not (test_integration_with_listener_ipv6 or test_launch)'
%files %{python_files}
%doc README.rst