From 94540eb64b1196c099449eb3b53ea947265816929b5ebde46c42ea3e4785e30c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 1 Mar 2024 03:25:10 +0000 Subject: [PATCH] - Switch to autosetup and pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lockfile?expand=0&rev=27 --- python-lockfile.changes | 5 +++++ python-lockfile.spec | 17 ++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/python-lockfile.changes b/python-lockfile.changes index f28237c..7b27fde 100644 --- a/python-lockfile.changes +++ b/python-lockfile.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 1 03:24:50 UTC 2024 - Steve Kowalik + +- Switch to autosetup and pyproject macros. + ------------------------------------------------------------------- Fri May 5 11:57:49 UTC 2023 - Johannes Kastl diff --git a/python-lockfile.spec b/python-lockfile.spec index f2fcf9a..e48ce75 100644 --- a/python-lockfile.spec +++ b/python-lockfile.spec @@ -1,7 +1,7 @@ # # spec file for package python-lockfile # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,8 +28,10 @@ Source: https://files.pythonhosted.org/packages/source/l/lockfile/lockfi Patch0: %{name}-empty_ident.patch Patch1: convert-to-unittest.patch BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -46,17 +48,13 @@ provided, more as a demonstration of the possibilities it provides than as production-quality code. %prep -%setup -q -n lockfile-%{version} -# current thread has ident = None, which causes a TypeError -# http://code.google.com/p/pylockfile/issues/detail?id=8 -%patch0 -p1 -%patch1 -p1 +%autosetup -p1 -n lockfile-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -65,6 +63,7 @@ production-quality code. %files %{python_files} %license LICENSE %doc README.rst AUTHORS ACKS RELEASE-NOTES ChangeLog -%{python_sitelib}/lockfile* +%{python_sitelib}/lockfile +%{python_sitelib}/lockfile-%{version}.dist-info %changelog