From e58ca39c2771e67040bd54def7afd57b1a7ae4add13e199529b645742f77933f Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 3 Jun 2025 07:08:37 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-coverage-plugin?expand=0&rev=18 --- python-django-coverage-plugin.changes | 5 +++++ python-django-coverage-plugin.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-django-coverage-plugin.changes b/python-django-coverage-plugin.changes index 7bb298a..dba5a90 100644 --- a/python-django-coverage-plugin.changes +++ b/python-django-coverage-plugin.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 06:48:24 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Tue Aug 8 10:58:54 UTC 2023 - Dirk Müller diff --git a/python-django-coverage-plugin.spec b/python-django-coverage-plugin.spec index 394d316..473103c 100644 --- a/python-django-coverage-plugin.spec +++ b/python-django-coverage-plugin.spec @@ -1,7 +1,7 @@ # # spec file for package python-django-coverage-plugin # -# Copyright (c) 2023 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 @@ -23,7 +23,9 @@ Summary: Django template coveragepy plugin License: Apache-2.0 URL: https://github.com/nedbat/django_coverage_plugin Source: https://github.com/nedbat/django_coverage_plugin/archive/v%{version}.tar.gz#/django_coverage_plugin-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Django @@ -46,10 +48,10 @@ Django template coverage.py plugin %autosetup -p1 -n django_coverage_plugin-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -58,6 +60,7 @@ Django template coverage.py plugin %files %{python_files} %doc README.rst %license LICENSE.txt -%{python_sitelib}/django_coverage_plugin* +%{python_sitelib}/django_coverage_plugin +%{python_sitelib}/django_coverage_plugin-%{version}.dist-info %changelog