From a9bbec750fe855befa656676081e886a8eb49bcd5e510ff03201b1871071e2db Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 2 May 2025 07:19:19 +0000 Subject: [PATCH] - Run the testsuite. - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-log?expand=0&rev=10 --- python-click-log.changes | 7 +++++++ python-click-log.spec | 18 +++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/python-click-log.changes b/python-click-log.changes index 2e253eb..1028239 100644 --- a/python-click-log.changes +++ b/python-click-log.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri May 2 07:18:40 UTC 2025 - Steve Kowalik + +- Run the testsuite. +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Sun Mar 27 11:05:38 UTC 2022 - Dirk Müller diff --git a/python-click-log.spec b/python-click-log.spec index d39c079..56fd16a 100644 --- a/python-click-log.spec +++ b/python-click-log.spec @@ -1,7 +1,7 @@ # # spec file for package python-click-log # -# 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,8 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%global skip_python2 1 Name: python-click-log Version: 0.4.0 Release: 0 @@ -25,9 +23,11 @@ Summary: Logging integration for Click License: MIT URL: https://github.com/click-contrib/click-log Source: https://files.pythonhosted.org/packages/source/c/click-log/click-log-%{version}.tar.gz -BuildRequires: %{python_module base} BuildRequires: %{python_module click} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click @@ -43,15 +43,19 @@ Integrates logging with click. rm -rf click_log.egg-info %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/click_log +%{python_sitelib}/click_log-%{version}.dist-info %changelog