From c9b3eb095025859949833814fbfb842c6c2da9831c78263e7b09af017e6c6a8a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 16 Dec 2020 00:25:11 +0000 Subject: [PATCH 1/3] Use pyunittest OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ptr?expand=0&rev=9 --- python-ptr.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python-ptr.spec b/python-ptr.spec index 61c67bb..011c31c 100644 --- a/python-ptr.spec +++ b/python-ptr.spec @@ -53,8 +53,7 @@ sed -i '1{/^#!/d}' *.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python %{buildroot}%{_bindir}/ptr --help -%python_exec setup.py test +%pyunittest -v ptr_tests %post %python_install_alternative ptr From 1147e89558d4b55a89a135aba62357d0f94afa1a78f4e664dcb521ae3e6f5e8e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 16 Dec 2020 00:27:04 +0000 Subject: [PATCH 2/3] Remove superfluous BuildRequires OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ptr?expand=0&rev=10 --- python-ptr.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-ptr.spec b/python-ptr.spec index 011c31c..f74f09b 100644 --- a/python-ptr.spec +++ b/python-ptr.spec @@ -25,7 +25,6 @@ Summary: Parallel asyncio Python setup(cfg|py) test runner License: MIT URL: https://github.com/facebookincubator/ptr Source: https://files.pythonhosted.org/packages/source/p/ptr/ptr-%{version}.tar.gz -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros From 6db585c6f04f8ec31d32c262ec38d6490a295ef8742634a59652dd00f0135a1e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 16 Dec 2020 09:40:53 +0000 Subject: [PATCH 3/3] - Make tests working again. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ptr?expand=0&rev=11 --- python-ptr.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-ptr.changes b/python-ptr.changes index 64ceab1..277895f 100644 --- a/python-ptr.changes +++ b/python-ptr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 16 09:39:44 UTC 2020 - Matej Cepl + +- Make tests working again. + ------------------------------------------------------------------- Mon May 18 20:14:18 UTC 2020 - Matej Cepl