Accepting request 856324 from devel:languages:python

- Make tests working again.

OBS-URL: https://build.opensuse.org/request/show/856324
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ptr?expand=0&rev=4
This commit is contained in:
2020-12-17 16:04:15 +00:00
committed by Git OBS Bridge
2 changed files with 6 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Dec 16 09:39:44 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Make tests working again.
-------------------------------------------------------------------
Mon May 18 20:14:18 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@@ -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
@@ -53,8 +52,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