14
0
forked from pool/python-PyJWT

- Avoid not needed python-pytest-cov and python-pytest-runner

BuildRequires. There is no need todo a coverage run during
  package build.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=30
This commit is contained in:
Thomas Bechtold
2018-02-23 19:52:46 +00:00
committed by Git OBS Bridge
parent 3ee8f94fea
commit 56e0aca105
2 changed files with 9 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyJWT
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -29,8 +29,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest-cov >= 1.7}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: dos2unix
@@ -74,7 +72,7 @@ find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!/usr/bin/env pyth
%python_uninstall_alternative pyjwt
%check
%{python_expand PYTHONPATH=%{buildroot}%{python_sitelib} py.test-%{py_ver} -k "not test_verify_false_deprecated" }
%{python_expand PYTHONPATH=%{buildroot}%{python_sitelib} py.test-%{py_ver} -o addopts="" -k "not test_verify_false_deprecated" }
%files %python_files
%defattr(-,root,root,-)