|
|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
#
|
|
|
|
|
# spec file for package python-coveralls-check
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2022 SUSE LLC
|
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
@@ -16,7 +16,7 @@
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
%bcond_without libalternatives
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
|
Name: python-coveralls-check
|
|
|
|
|
Version: 1.2.1
|
|
|
|
|
@@ -28,14 +28,16 @@ URL: https://github.com/cjw296/coverage-check
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/coveralls-check/coveralls-check-%{version}.tar.gz
|
|
|
|
|
# https://github.com/cjw296/coveralls-check/issues/3
|
|
|
|
|
Patch0: python-coveralls-check-no-mock.patch
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
BuildRequires: alts
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: alts
|
|
|
|
|
Requires: python-backoff
|
|
|
|
|
Requires: python-requests
|
|
|
|
|
Requires: python-setuptools
|
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(postun):update-alternatives
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module backoff}
|
|
|
|
|
@@ -54,26 +56,26 @@ A helper to check https://coveralls.io for a given commit hash.
|
|
|
|
|
%autopatch -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/coveralls-check
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest tests.py
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%python_install_alternative coveralls-check
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative coveralls-check
|
|
|
|
|
%pre
|
|
|
|
|
# Removing old update-alternatives entries.
|
|
|
|
|
%python_libalternatives_reset_alternative coveralls-check
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE.rst
|
|
|
|
|
%python_alternative %{_bindir}/coveralls-check
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
%{python_sitelib}/coveralls[-_]check.py
|
|
|
|
|
%{python_sitelib}/coveralls[-_]check-%{version}*-info
|
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/coveralls[-_]check*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
|