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