15
0

Accepting request 1277396 from devel:languages:python

- Convert to pip-based build
- Drop download links from the Patch: section
  * https://patch-diff.githubusercontent.com blocks too many too fast
    downloads from the same directory

OBS-URL: https://build.opensuse.org/request/show/1277396
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-before-after?expand=0&rev=4
This commit is contained in:
2025-05-14 15:02:04 +00:00
committed by Git OBS Bridge
2 changed files with 18 additions and 6 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue May 13 16:20:54 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
- Drop download links from the Patch: section
* https://patch-diff.githubusercontent.com blocks too many too fast
downloads from the same directory
-------------------------------------------------------------------
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
@@ -26,9 +26,12 @@ URL: https://github.com/c-oreills/before_after
Source: https://files.pythonhosted.org/packages/source/b/before_after/before_after-%{version}.tar.gz
# https://github.com/c-oreills/before_after/issues/8
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
# the 2nd patch download attempt is blocked - we can't have links in here
Patch0: pr_6.patch
Patch1: 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 +48,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 +62,7 @@ cp %{SOURCE1} .
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/before[-_]after
%{python_sitelib}/before[-_]after-%{version}*-info
%changelog