From 5ae9a9571a7089c6975468ce12995252cdbfacd4db8e29cb76fbb1a60e8a90ef Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Mon, 12 May 2025 16:04:53 +0000 Subject: [PATCH] Accepting request 1276917 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276917 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-UkPostcodeParser?expand=0&rev=10 --- python-UkPostcodeParser.changes | 5 +++++ python-UkPostcodeParser.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-UkPostcodeParser.changes b/python-UkPostcodeParser.changes index 297a06b..7f2b3ae 100644 --- a/python-UkPostcodeParser.changes +++ b/python-UkPostcodeParser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 15:47:00 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Aug 15 07:31:36 UTC 2023 - Dirk Müller diff --git a/python-UkPostcodeParser.spec b/python-UkPostcodeParser.spec index fdb75dc..2e10df8 100644 --- a/python-UkPostcodeParser.spec +++ b/python-UkPostcodeParser.spec @@ -1,7 +1,7 @@ # # spec file for package python-UkPostcodeParser # -# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-UkPostcodeParser Version: 1.1.2 @@ -27,7 +26,9 @@ Group: Development/Languages/Python URL: https://github.com/hamstah/ukpostcodeparser Source: https://files.pythonhosted.org/packages/source/U/UkPostcodeParser/UkPostcodeParser-%{version}.tar.gz Patch1: python312.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-base @@ -41,10 +42,10 @@ United Kingdom Postcode parser. %autosetup -p1 -n UkPostcodeParser-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand rm -r %{buildroot}%{$python_sitelib}/ukpostcodeparser/test/ %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -57,6 +58,6 @@ sed -i 's/test_\(091\|097\|098\|125\|131\)/_test_\1/' ukpostcodeparser/test/pars %license LICENSE %doc README %{python_sitelib}/ukpostcodeparser -%{python_sitelib}/UkPostcodeParser-%{version}*-info +%{python_sitelib}/[Uu]k[Pp]ostcode[Pp]arser-%{version}*-info %changelog