forked from pool/python-compat-patcher-core
Accepting request 940251 from home:pgajdos:python
- fix tests, do not require pytest-runner OBS-URL: https://build.opensuse.org/request/show/940251 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-compat-patcher-core?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 13 13:35:12 UTC 2021 - pgajdos@suse.com
|
||||
|
||||
- fix tests, do not require pytest-runner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 15 10:27:02 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
||||
@@ -36,8 +36,9 @@ BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module docutils}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module tomli}
|
||||
BuildRequires: python3-pytest-cookies
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@@ -61,7 +62,8 @@ rm pytest.ini
|
||||
%check
|
||||
# Cookiecutter is only available as python3
|
||||
%python_expand [ %{_bindir}/$python -ef %{_bindir}/python3 ] || $python_ignore="--ignore tests/test_cookiecutter_recipe.py"
|
||||
%pytest tests ${$python_ignore}
|
||||
# _and_run_tests: use setup.py test
|
||||
%pytest tests ${$python_ignore} -k 'not _and_run_tests'
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS CHANGELOG README.rst
|
||||
|
||||
Reference in New Issue
Block a user