forked from pool/python-coverage
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=141
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-coverage
|
||||
Version: 7.7.1
|
||||
@@ -25,16 +26,16 @@ License: Apache-2.0
|
||||
URL: https://github.com/nedbat/coveragepy
|
||||
Source: https://files.pythonhosted.org/packages/source/c/coverage/coverage-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://github.com/nedbat/coveragepy/commit/ba685fb8d06a2052c4916749539ef501b8080804 build: setuptools 77 doesn't like license classifiers.
|
||||
Patch: setuptools77.patch
|
||||
Patch0: setuptools77.patch
|
||||
BuildRequires: %{python_module devel >= 3.9}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
# coverage[toml]
|
||||
Recommends: python-tomli
|
||||
# SECTION test requirements
|
||||
@@ -107,11 +108,8 @@ donttest+=" or test_report_wildcard or test_run_omit_vs_report_omit"
|
||||
%pytest_arch -n auto --no-flaky-report -k "$donttest" -rp ||:
|
||||
%pytest_arch -n auto --no-flaky-report -k "not ($donttest)"
|
||||
|
||||
%post
|
||||
%python_install_alternative coverage
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative coverage
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative coverage
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
|
Reference in New Issue
Block a user