14
0
forked from pool/python-pyte

Accepting request 895913 from home:pgajdos:python

- %check: use %pytest rpm macro

OBS-URL: https://build.opensuse.org/request/show/895913
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyte?expand=0&rev=14
This commit is contained in:
2021-05-28 08:13:47 +00:00
committed by Git OBS Bridge
parent 058e2c2539
commit 9b477d4714
2 changed files with 8 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyte
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,6 @@ License: LGPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/selectel/pyte
Source: https://files.pythonhosted.org/packages/source/p/pyte/pyte-%{version}.tar.gz
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wcwidth}
@@ -46,6 +45,7 @@ other DEC VTs between 1970 and 1995. pyte can be used to:
%setup -q -n pyte-%{version}
# all fail as missing data files
rm tests/test_input_output.py
sed -i '/pytest-runner/d' setup.py
%build
%python_build
@@ -54,7 +54,7 @@ rm tests/test_input_output.py
%python_install
%check
%python_exec setup.py test
%pytest
%files %{python_files}
%license LICENSE