From a5ce868227055adfedd63be760fd8d4b0c8f4a1b57fb803100fafcc2b0e7166a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 15 May 2025 15:31:41 +0000 Subject: [PATCH] Accepting request 1277742 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277742 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cfscrape?expand=0&rev=25 --- python-cfscrape.changes | 5 +++++ python-cfscrape.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-cfscrape.changes b/python-cfscrape.changes index 5bf1dc2..dd227b9 100644 --- a/python-cfscrape.changes +++ b/python-cfscrape.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 15 13:07:04 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Feb 28 00:26:13 UTC 2020 - Martin Herkt <9+suse@cirno.systems> diff --git a/python-cfscrape.spec b/python-cfscrape.spec index 18c24b5..a42c42f 100644 --- a/python-cfscrape.spec +++ b/python-cfscrape.spec @@ -1,7 +1,7 @@ # # spec file for package python-cfscrape # -# Copyright (c) 2020 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-%{**}} Name: python-cfscrape Version: 2.1.1 Release: 0 @@ -25,11 +24,13 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/Anorov/cloudflare-scrape Source: https://github.com/Anorov/cloudflare-scrape/archive/%{version}.tar.gz#/cloudflare-scrape-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: %{python_module responses} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module sure} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: nodejs BuildRequires: python-rpm-macros @@ -60,10 +61,10 @@ is much more common. %setup -q -n cloudflare-scrape-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # test suite requires internet access @@ -74,6 +75,7 @@ is much more common. %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/cfscrape +%{python_sitelib}/cfscrape-%{version}*-info %changelog