From cd2158aa018a2eaef12fce6bdb449bfbcb75dbb1d0f633a69b2e6b787a9b0144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 May 2025 11:44:32 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis-fspaths?expand=0&rev=5 --- python-hypothesis-fspaths.changes | 5 +++++ python-hypothesis-fspaths.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-hypothesis-fspaths.changes b/python-hypothesis-fspaths.changes index ec47e37..8e923ff 100644 --- a/python-hypothesis-fspaths.changes +++ b/python-hypothesis-fspaths.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 28 11:44:01 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed May 26 07:04:27 UTC 2021 - pgajdos@suse.com diff --git a/python-hypothesis-fspaths.spec b/python-hypothesis-fspaths.spec index b5a2571..f48f072 100644 --- a/python-hypothesis-fspaths.spec +++ b/python-hypothesis-fspaths.spec @@ -1,7 +1,7 @@ # # spec file for package python-hypothesis-fspaths # -# 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,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-hypothesis-fspaths Version: 0.1 Release: 0 @@ -25,8 +24,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/lazka/hypothesis-fspaths Source: https://files.pythonhosted.org/packages/source/h/hypothesis-fspaths/hypothesis-fspaths-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-hypothesis @@ -46,10 +47,10 @@ Hypothesis extension for generating filesystem paths sed -i '/pytest-runner/d' setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -58,6 +59,7 @@ sed -i '/pytest-runner/d' setup.py %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/hypothesis[-_]fspaths +%{python_sitelib}/hypothesis[-_]fspaths-%{version}*-info %changelog