From f82aa031653b0fba8d4f2a65f2ebff8c79cac79a09c921606ebca0df2c40cc3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 May 2025 06:46:51 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html5-parser?expand=0&rev=29 --- python-html5-parser.changes | 5 +++++ python-html5-parser.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-html5-parser.changes b/python-html5-parser.changes index 000395c..dfb9057 100644 --- a/python-html5-parser.changes +++ b/python-html5-parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 28 06:46:30 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Nov 20 06:16:01 UTC 2023 - ecsos diff --git a/python-html5-parser.spec b/python-html5-parser.spec index 0f22627..0ee2390 100644 --- a/python-html5-parser.spec +++ b/python-html5-parser.spec @@ -1,7 +1,7 @@ # # spec file for package python-html5-parser # -# 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 @@ -29,7 +29,9 @@ BuildRequires: %{python_module beautifulsoup4} BuildRequires: %{python_module chardet} BuildRequires: %{python_module devel} BuildRequires: %{python_module lxml >= 3.8.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros @@ -45,10 +47,10 @@ about thirty times faster than the "html5lib" pure Python based parser. %build find . -name '*.py' -exec sed -i '/#.*usr.bin.env.*python/d' {} \; -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %check %if 0%{?suse_version} > 1500 @@ -61,6 +63,6 @@ find . -name '*.py' -exec sed -i '/#.*usr.bin.env.*python/d' {} \; %license LICENSE %doc README.rst %{python_sitearch}/html5_parser/ -%{python_sitearch}/html5_parser-%{version}-py%{python_version}.egg-info +%{python_sitearch}/html5_parser-%{version}*-info %changelog