From 77048144e7896ba335b7d0a2c0602f8733505f3c2031e54cc774834c203e1dbd Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 18 Sep 2023 04:41:16 +0000 Subject: [PATCH] - Switch to pyproject macros. - Stop using greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itsdangerous?expand=0&rev=26 --- python-itsdangerous.changes | 6 ++++++ python-itsdangerous.spec | 13 ++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/python-itsdangerous.changes b/python-itsdangerous.changes index f9f6aa5..f7b25ea 100644 --- a/python-itsdangerous.changes +++ b/python-itsdangerous.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 18 04:40:32 UTC 2023 - Steve Kowalik + +- Switch to pyproject macros. +- Stop using greedy globs in %files. + ------------------------------------------------------------------- Fri Apr 21 12:27:12 UTC 2023 - Dirk Müller diff --git a/python-itsdangerous.spec b/python-itsdangerous.spec index 875a570..f0b9f98 100644 --- a/python-itsdangerous.spec +++ b/python-itsdangerous.spec @@ -16,21 +16,19 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 -%global skip_python36 1 %{?sle15_python_module_pythons} Name: python-itsdangerous Version: 2.1.2 Release: 0 Summary: Various helpers to pass trusted data to untrusted environments and back License: BSD-3-Clause -Group: Development/Languages/Python URL: https://itsdangerous.palletsprojects.com Source: https://files.pythonhosted.org/packages/source/i/itsdangerous/itsdangerous-%{version}.tar.gz BuildRequires: %{python_module freezegun} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -53,10 +51,10 @@ Also I plan to add some extra things. Work in progress. %setup -q -n itsdangerous-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -65,6 +63,7 @@ Also I plan to add some extra things. Work in progress. %files %{python_files} %license LICENSE.rst %doc CHANGES.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/itsdangerous +%{python_sitelib}/itsdangerous-%{version}.dist-info %changelog