From b8515d815e52435cf157a6a226bb29182cccc8736eba811364ee6e51a19c11d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 08:09:41 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylev?expand=0&rev=9 --- python-pylev.changes | 5 +++++ python-pylev.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-pylev.changes b/python-pylev.changes index ff43cfc..65ee9a8 100644 --- a/python-pylev.changes +++ b/python-pylev.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 10 08:09:24 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon May 8 07:08:19 UTC 2023 - Johannes Kastl diff --git a/python-pylev.spec b/python-pylev.spec index 058e4ec..18da8cc 100644 --- a/python-pylev.spec +++ b/python-pylev.spec @@ -1,7 +1,7 @@ # # spec file for package python-pylev # -# 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 @@ -27,7 +27,9 @@ URL: https://github.com/toastdriven/pylev Source: https://files.pythonhosted.org/packages/source/p/pylev/pylev-%{version}.tar.gz Source1: https://raw.githubusercontent.com/toastdriven/pylev/master/LICENSE Source2: https://raw.githubusercontent.com/toastdriven/pylev/master/tests.py +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -41,10 +43,10 @@ A pure Python Levenshtein implementation. cp %{SOURCE1} %{SOURCE2} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -53,6 +55,7 @@ cp %{SOURCE1} %{SOURCE2} . %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/pylev +%{python_sitelib}/pylev-%{version}*-info %changelog