From 2a1cc284b3b917db68d9edd17139023127e3a8d72c1e52f4d05b31d05a74e26d Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Tue, 2 May 2023 10:58:17 +0000 Subject: [PATCH] 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 --- python-build.changes | 7 +++++++ python-build.spec | 5 +---- support-tarfile-data-filter.patch | 12 ------------ 3 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 support-tarfile-data-filter.patch diff --git a/python-build.changes b/python-build.changes index e012442..535bae7 100644 --- a/python-build.changes +++ b/python-build.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 2 10:52:23 UTC 2023 - Ben Greiner + +- 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 diff --git a/python-build.spec b/python-build.spec index 651671a..09cf06a 100644 --- a/python-build.spec +++ b/python-build.spec @@ -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 diff --git a/support-tarfile-data-filter.patch b/support-tarfile-data-filter.patch deleted file mode 100644 index c9d98c6..0000000 --- a/support-tarfile-data-filter.patch +++ /dev/null @@ -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')]))