forked from pool/python-cairocffi
Accepting request 853627 from home:bnavigator:branches:devel:languages:python
- Replace obsolete pytest-runner with %pytest macro to avoid pulling in _build directories of other flavors during testing * gh#Kozea/cairocffi#171 * gh#openSUSE/python-rpm-macros#66 OBS-URL: https://build.opensuse.org/request/show/853627 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cairocffi?expand=0&rev=34
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 7 12:34:39 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Replace obsolete pytest-runner with %pytest macro to avoid
|
||||
pulling in _build directories of other flavors during testing
|
||||
* gh#Kozea/cairocffi#171
|
||||
* gh#openSUSE/python-rpm-macros#66
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 30 06:20:59 UTC 2020 - Michael Vetter <mvetter@suse.com>
|
||||
|
||||
|
@@ -28,7 +28,7 @@ URL: https://github.com/Kozea/cairocffi
|
||||
Source: https://files.pythonhosted.org/packages/source/c/cairocffi/cairocffi-%{version}.tar.gz
|
||||
BuildRequires: %{python_module cffi >= 1.1.0}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools >= 39.2.0}
|
||||
BuildRequires: %{python_module xcffib >= 0.3.2}
|
||||
BuildRequires: cairo
|
||||
@@ -65,6 +65,12 @@ This package provides the optional gdk-pixbuf image loader module.
|
||||
|
||||
%prep
|
||||
%setup -q -n cairocffi-%{version}
|
||||
# disable development tools for unit tests. Remove deprecated pytest-runner
|
||||
sed -i -e 's/pytest-runner$/pytest/' \
|
||||
-e '/pytest-flake8$/ d' \
|
||||
-e '/pytest-isort$/ d' \
|
||||
-e '/pytest-cov$/ d' \
|
||||
-e '/^addopts.*flake8.*isort$/ d' setup.cfg
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -74,9 +80,7 @@ This package provides the optional gdk-pixbuf image loader module.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
sed -i '/^addopts/d' setup.cfg
|
||||
sed -i -e '/pytest-flake8/d' -e '/pytest-isort/d' -e '/pytest-cov/d' setup.cfg
|
||||
%python_expand $python setup.py test
|
||||
%pytest --pyargs cairocffi
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user