15
0

Accepting request 1277216 from home:mcalabkova:branches:devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1277216
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-before-after?expand=0&rev=8
This commit is contained in:
2025-05-13 16:26:05 +00:00
committed by Git OBS Bridge
parent 1440ea9110
commit c36e95f6d5
2 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 13 16:20:54 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Thu Jul 6 10:22:05 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-before-after
#
# Copyright (c) 2022 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
@@ -28,7 +28,9 @@ Source: https://files.pythonhosted.org/packages/source/b/before_after/be
Source1: https://raw.githubusercontent.com/c-oreills/before_after/master/LICENSE
Patch0: https://patch-diff.githubusercontent.com/raw/c-oreills/before_after/pull/6.patch#/pr_6.patch
Patch1: https://patch-diff.githubusercontent.com/raw/c-oreills/before_after/pull/10.patch#/pr_10.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -45,10 +47,10 @@ before_after provides utilities for testing race conditions.
cp %{SOURCE1} .
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%{python_expand rm -r %{buildroot}%{$python_sitelib}/before_after/tests/
%fdupes %{buildroot}%{$python_sitelib}
}
@@ -59,6 +61,7 @@ cp %{SOURCE1} .
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/before[-_]after
%{python_sitelib}/before[-_]after-%{version}*-info
%changelog