From bb88dabd4e4c50a337211189a125b8f550e0d3c48506d5f35543b4e0eac092d5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 6 May 2025 08:53:15 +0000 Subject: [PATCH] Accepting request 1274818 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1274818 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-HTTPolice?expand=0&rev=13 --- python-HTTPolice.changes | 5 +++++ python-HTTPolice.spec | 18 ++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/python-HTTPolice.changes b/python-HTTPolice.changes index 2525f38..75d2709 100644 --- a/python-HTTPolice.changes +++ b/python-HTTPolice.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 6 08:12:09 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Mar 22 23:32:04 UTC 2021 - Matej Cepl diff --git a/python-HTTPolice.spec b/python-HTTPolice.spec index 8e84a6c..e061a50 100644 --- a/python-HTTPolice.spec +++ b/python-HTTPolice.spec @@ -1,7 +1,7 @@ # # spec file for package python-HTTPolice # -# Copyright (c) 2021 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,8 +16,6 @@ # -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-HTTPolice Version: 0.9.0 Release: 0 @@ -31,8 +29,10 @@ BuildRequires: %{python_module bitstring >= 3.1.4} BuildRequires: %{python_module defusedxml >= 0.5.0} BuildRequires: %{python_module dominate >= 2.2.0} BuildRequires: %{python_module lxml >= 4.1.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Brotli >= 1.0.1 @@ -41,7 +41,7 @@ Requires: python-defusedxml >= 0.5.0 Requires: python-dominate >= 2.2.0 Requires: python-lxml >= 4.1.0 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -55,17 +55,14 @@ problems in your HTTP server or client. rm pytest.ini %build -export LANG=en_US.UTF-8 -%python_build +%pyproject_wheel %install -export LANG=en_US.UTF-8 -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/httpolice %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -export LANG=en_US.UTF-8 # gh#vfaronov/httpolice#10 %pytest -k 'not test_from_file' @@ -79,6 +76,7 @@ export LANG=en_US.UTF-8 %license LICENSE.txt %doc CHANGELOG.rst README.rst %python_alternative %{_bindir}/httpolice -%{python_sitelib}/* +%{python_sitelib}/httpolice +%{python_sitelib}/httpolice-%{version}*info %changelog