forked from pool/python-python-utils
Accepting request 936447 from home:pgajdos:python
- do not require pytest-runner for build, it is not needed OBS-URL: https://build.opensuse.org/request/show/936447 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-utils?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 8 09:03:34 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- do not require pytest-runner for build, it is not needed
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 23 16:28:04 UTC 2021 - Axel Braun <axel.braun@gmx.de>
|
Sat Oct 23 16:28:04 UTC 2021 - Axel Braun <axel.braun@gmx.de>
|
||||||
|
|
||||||
|
@@ -25,7 +25,6 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/WoLpH/python-utils
|
URL: https://github.com/WoLpH/python-utils
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/python-utils/python-utils-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/python-utils/python-utils-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pytest-runner}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -53,14 +52,9 @@ classes which make common patterns shorter and easier.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# default test settings enable some pytest backends we don't care about
|
mv pytest.ini{,.hide}
|
||||||
mv pytest.ini old_pytest.ini_old
|
%pytest
|
||||||
%{python_expand rm -rf _build.* build tests/__pycache__ tests/*.pyc tests/*.pyo
|
mv pytest.ini{.hide,}
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
|
||||||
export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
|
||||||
py.test-%{$python_bin_suffix} tests/*.py
|
|
||||||
}
|
|
||||||
mv old_pytest.ini_old pytest.ini
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Reference in New Issue
Block a user