diff --git a/cleanup_tests.patch b/cleanup_tests.patch new file mode 100644 index 0000000..97de9db --- /dev/null +++ b/cleanup_tests.patch @@ -0,0 +1,9 @@ +--- + tests/__init__.py | 1 + + 1 file changed, 1 insertion(+) + +--- /dev/null ++++ b/tests/__init__.py +@@ -0,0 +1 @@ ++# This file intentionally left blank. +\ No newline at end of file diff --git a/python-pycares.changes b/python-pycares.changes index 14091ac..0ffe27a 100644 --- a/python-pycares.changes +++ b/python-pycares.changes @@ -1,8 +1,8 @@ ------------------------------------------------------------------- -Tue Oct 4 23:59:04 UTC 2022 - Yogalakshmi Arunachalam +Thu Dec 8 22:21:16 UTC 2022 - Matej Cepl -- Update to version 4.2.2 - no changelog +- Add cleanup_tests.patch to make the test suite slightly more sane. +- No, the test suite is just broken, and the upstream doesn't care. ------------------------------------------------------------------- Mon Jul 11 13:59:59 UTC 2022 - Arun Persaud diff --git a/python-pycares.spec b/python-pycares.spec index a435437..3b1edb0 100644 --- a/python-pycares.spec +++ b/python-pycares.spec @@ -26,9 +26,13 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/saghul/pycares Source: https://files.pythonhosted.org/packages/source/p/pycares/pycares-%{version}.tar.gz +# PATCH-FIX-UPSTREAM cleanup_tests.patch bsc#[0-9]+ mcepl@suse.com +# Make the test suite slightly more normal +Patch0: cleanup_tests.patch BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: c-ares-devel BuildRequires: fdupes BuildRequires: gcc BuildRequires: python-rpm-macros @@ -42,7 +46,8 @@ c-ares. c-ares is a C library that performs DNS requests and name resolutions asynchronously %prep -%setup -q -n pycares-%{version} +%autosetup -p1 -n pycares-%{version} + rm -Rf %build @@ -52,6 +57,11 @@ rm -Rf %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} +%check +# Test suite is broken anywhere else outside of the upstream CI, +# and upstream doesn't care. +# %%pyunittest_arch -v tests.tests + %files %{python_files} %license LICENSE %doc ChangeLog README.rst