From e04594a43d68810944d877bac02da21a6faefa33c600fb9688d4b0bbafde6126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 13:37:33 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lesscpy?expand=0&rev=28 --- python-lesscpy.changes | 5 +++++ python-lesscpy.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-lesscpy.changes b/python-lesscpy.changes index ec33b8f..3246084 100644 --- a/python-lesscpy.changes +++ b/python-lesscpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 30 13:37:16 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Oct 2 10:42:43 UTC 2023 - pgajdos@suse.com diff --git a/python-lesscpy.spec b/python-lesscpy.spec index fea2a3f..a3718b6 100644 --- a/python-lesscpy.spec +++ b/python-lesscpy.spec @@ -1,7 +1,7 @@ # # spec file for package python-lesscpy # -# 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 @@ -25,15 +25,17 @@ URL: https://github.com/lesscpy/lesscpy Source: https://files.pythonhosted.org/packages/source/l/lesscpy/lesscpy-%{version}.tar.gz # https://github.com/lesscpy/lesscpy/pull/126 Patch0: python-lesscpy-no-six.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module ply} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-ply Requires: python-setuptools -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -52,10 +54,10 @@ This program uses PLY (Python Lex-Yacc) to tokenize/parse the input. rm test/test_{bootstrap3,less,issues}.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/lesscpy %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -73,6 +75,6 @@ rm test/test_{bootstrap3,less,issues}.py %doc README.rst %python_alternative %{_bindir}/lesscpy %{python_sitelib}/lesscpy -%{python_sitelib}/lesscpy-%{version}-py*.egg-info +%{python_sitelib}/lesscpy-%{version}*-info %changelog