Accepting request 1084005 from home:bnavigator:branches:devel:languages:python

- Remove support-tarfile-data-filter.patch: better documentation
  required, preferable supported through upstream
  * gh#pypa/build#609

OBS-URL: https://build.opensuse.org/request/show/1084005
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-build?expand=0&rev=20
This commit is contained in:
Benjamin Greiner 2023-05-02 10:58:17 +00:00 committed by Git OBS Bridge
parent 014ebb2a4a
commit 2a1cc284b3
3 changed files with 8 additions and 16 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 2 10:52:23 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Remove support-tarfile-data-filter.patch: better documentation
required, preferable supported through upstream
* gh#pypa/build#609
-------------------------------------------------------------------
Tue May 2 08:04:24 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -27,7 +27,6 @@
# wheeldir of name build does not work well with this packagename gh#openSUSE/python-rpm-macros#157
%define _pyproject_wheeldir distwheel
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-build%{psuffix}
Version: 0.10.0
@ -42,8 +41,6 @@ Source11: https://files.pythonhosted.org/packages/py3/f/flit-core/flit_cor
Source12: https://files.pythonhosted.org/packages/py3/t/tomli/tomli-2.0.1-py3-none-any.whl
# PATCH-FIX-UPSTREAM gh#pypa/build#b52fdbd70550a9ef58e65b3376cec1e9951d2114
Patch0: support-pip-23.patch
# PATCH-FIX-OPENSUSE Support new tarfile data_filter
Patch1: support-tarfile-data-filter.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module flit-core >= 3.4}
BuildRequires: %{python_module pip}
@ -111,7 +108,7 @@ popd
%license LICENSE
%python_alternative %{_bindir}/pyproject-build
%{python_sitelib}/build
%{python_sitelib}/build-%{version}*-info
%{python_sitelib}/build-%{version}.dist-info
%endif
%changelog

View File

@ -1,12 +0,0 @@
Index: build-0.10.0/src/build/__main__.py
===================================================================
--- build-0.10.0.orig/src/build/__main__.py
+++ build-0.10.0/src/build/__main__.py
@@ -239,6 +239,7 @@ def build_package_via_sdist(
built: list[str] = []
# extract sdist
with tarfile.open(sdist) as t:
+ t.extraction_filter = getattr(tarfile, 'data_filter', (lambda m, path: m))
t.extractall(sdist_out)
try:
builder = _ProjectBuilder(os.path.join(sdist_out, sdist_name[: -len('.tar.gz')]))