forked from pool/python-pycares
Accepting request 1041743 from devel:languages:python
- 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/request/show/1041743 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycares?expand=0&rev=7
This commit is contained in:
commit
41689fd103
9
cleanup_tests.patch
Normal file
9
cleanup_tests.patch
Normal 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
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 8 22:21:16 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 4 23:59:04 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user