From 7a7d2cdad7b70f1d8903fbc40c7b112afce5418f Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Fri, 7 Jul 2023 10:49:16 +0800 Subject: [PATCH] Modify the testing method to fix build errors --- python-zeroconf.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/python-zeroconf.spec b/python-zeroconf.spec index 0392686..da4e30a 100644 --- a/python-zeroconf.spec +++ b/python-zeroconf.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-zeroconf Version: 0.64.1 -Release: 1 +Release: 2 Summary: Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible) License: LGPL-2.1-only URL: https://github.com/jstasiak/python-zeroconf @@ -24,6 +24,7 @@ BuildRequires: python3-wheel BuildRequires: python3-ifaddr BuildRequires: python3-async-timeout BuildRequires: python3-pytest +BuildRequires: python3-pytest-cov %description -n python3-zeroconf Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible) @@ -34,7 +35,7 @@ Provides: python3-zeroconf-doc Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible) %prep -%autosetup -n zeroconf-%{version} +%autosetup -n zeroconf-%{version} -p1 %build %py3_build @@ -68,7 +69,8 @@ mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %check -%{__python3} setup.py test +export PYTHONPATH=%{buildroot}%{python3_sitelib} +pytest -v -k 'not test_integration_with_listener_ipv6' %files -n python3-zeroconf -f filelist.lst %dir %{python3_sitelib}/* @@ -77,6 +79,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Fri Jul 07 2023 yaoxin - 0.64.1-2 +- Modify the testing method to fix build errors + * Tue Jun 06 2023 jiangxinyu - 0.64.1-1 - Update package to version 0.64.1