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