1
0

- 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycares?expand=0&rev=14
This commit is contained in:
Matej Cepl 2022-12-08 22:32:59 +00:00 committed by Git OBS Bridge
parent 0f42f10bb6
commit e054b25ea4
3 changed files with 23 additions and 4 deletions

9
cleanup_tests.patch Normal file
View File

@ -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

View File

@ -1,8 +1,8 @@
-------------------------------------------------------------------
Tue Oct 4 23:59:04 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
Thu Dec 8 22:21:16 UTC 2022 - Matej Cepl <mcepl@suse.com>
- 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 <arun@gmx.de>

View File

@ -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