forked from pool/python-coveralls-check
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f92999814b | |||
| 130d19aa42 | |||
| 442d7e0786 | |||
| abd41c06e0 |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 4 14:37:43 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||||
|
|
||||||
|
- Fix usage of libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 16 12:21:30 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 21 07:43:27 UTC 2024 - Max Lin <mlin@suse.com>
|
Thu Mar 21 07:43:27 UTC 2024 - Max Lin <mlin@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-coveralls-check
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-coveralls-check
|
Name: python-coveralls-check
|
||||||
Version: 1.2.1
|
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
|
Source: https://files.pythonhosted.org/packages/source/c/coveralls-check/coveralls-check-%{version}.tar.gz
|
||||||
# https://github.com/cjw296/coveralls-check/issues/3
|
# https://github.com/cjw296/coveralls-check/issues/3
|
||||||
Patch0: python-coveralls-check-no-mock.patch
|
Patch0: python-coveralls-check-no-mock.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-backoff
|
Requires: python-backoff
|
||||||
Requires: python-requests
|
Requires: python-requests
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun):update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module backoff}
|
BuildRequires: %{python_module backoff}
|
||||||
@@ -54,26 +56,26 @@ A helper to check https://coveralls.io for a given commit hash.
|
|||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/coveralls-check
|
%python_clone -a %{buildroot}%{_bindir}/coveralls-check
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest tests.py
|
%pytest tests.py
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative coveralls-check
|
# Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative coveralls-check
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative coveralls-check
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%python_alternative %{_bindir}/coveralls-check
|
%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
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user