From 7bf58263d59a88fb098a7b4e446af81bddd4414d5109f5ba95688a2902b3e12b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 27 Jun 2022 07:52:22 +0000 Subject: [PATCH] Accepting request 984778 from home:mjacob:branches:devel:languages:python - Patch PKG-INFO to avoid pip failing on Python 3.6 with `ERROR: Package 'MarkupSafe' requires a different Python: 3.6.15 not in '>=3.7'`. OBS-URL: https://build.opensuse.org/request/show/984778 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MarkupSafe?expand=0&rev=39 --- python-MarkupSafe.changes | 7 +++++++ python-MarkupSafe.spec | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/python-MarkupSafe.changes b/python-MarkupSafe.changes index bf21587..9440c82 100644 --- a/python-MarkupSafe.changes +++ b/python-MarkupSafe.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jun 24 02:55:18 UTC 2022 - Manuel Jacob + +- Patch PKG-INFO to avoid pip failing on Python 3.6 with + `ERROR: Package 'MarkupSafe' requires a different Python: + 3.6.15 not in '>=3.7'`. + ------------------------------------------------------------------- Thu Jun 9 07:59:18 UTC 2022 - Andreas Schneider diff --git a/python-MarkupSafe.spec b/python-MarkupSafe.spec index b7aff44..2380935 100644 --- a/python-MarkupSafe.spec +++ b/python-MarkupSafe.spec @@ -57,6 +57,10 @@ export CFLAGS="%{optflags}" %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand rm %{buildroot}%{$python_sitearch}/markupsafe/_speedups.c +# Upstream changed the Python package metadata to require Python 3.7, but the tests pass on Python 3.6. +%if %python_version_nodots == 36 +%python_expand sed 's/Requires-Python: >=3.7/Requires-Python: >=3.6/' -i %{buildroot}%{python_sitearch}/MarkupSafe-%{version}-py3.6.egg-info/PKG-INFO +%endif %if %{with test} %check