From 77201eede9e58e30f416a57f4e3451cd06dfb714c788fb4eead5f7ec89416630 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Fri, 16 May 2025 13:45:20 +0000 Subject: [PATCH] Accepting request 1278051 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1278051 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coveralls-check?expand=0&rev=19 --- python-coveralls-check.changes | 5 +++++ python-coveralls-check.spec | 17 ++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/python-coveralls-check.changes b/python-coveralls-check.changes index 65d362b..9aea489 100644 --- a/python-coveralls-check.changes +++ b/python-coveralls-check.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 16 12:21:30 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Mar 21 07:43:27 UTC 2024 - Max Lin diff --git a/python-coveralls-check.spec b/python-coveralls-check.spec index e2feaf1..2219b3d 100644 --- a/python-coveralls-check.spec +++ b/python-coveralls-check.spec @@ -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,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-coveralls-check Version: 1.2.1 @@ -28,14 +27,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: fdupes BuildRequires: python-rpm-macros Requires: python-backoff Requires: python-requests Requires: python-setuptools -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module backoff} @@ -54,10 +55,10 @@ 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} @@ -74,6 +75,8 @@ A helper to check https://coveralls.io for a given commit hash. %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