From b3f84665a673941ed2bdb3fe99729382d9d5720a Mon Sep 17 00:00:00 2001 From: FFrog Date: Mon, 7 Feb 2022 09:46:30 +0800 Subject: [PATCH] remove the support of python2 --- python-markupsafe.spec | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/python-markupsafe.spec b/python-markupsafe.spec index 1c3926a..f9e7352 100644 --- a/python-markupsafe.spec +++ b/python-markupsafe.spec @@ -5,22 +5,17 @@ This mitigates injection attacks, meaning untrusted user input can safely be dis Name: python-markupsafe Version: 1.1.1 -Release: 1 +Release: 2 Summary: Safely add untrusted strings to HTML/XML markup. License: BSD URL: https://pypi.org/project/MarkupSafe/ Source0: https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz %description %_description -%package -n python2-markupsafe -Summary: %{summary} -BuildRequires: python2-devel python2-setuptools -%{?python_provide:%python_provide python2-markupsafe} -%description -n python2-markupsafe %_description %package -n python3-markupsafe Summary: %{summary} -BuildRequires: python3-devel python2-setuptools +BuildRequires: python3-devel python3-setuptools %{?python_provide:%python_provide python3-markupsafe} %description -n python3-markupsafe %_description @@ -31,25 +26,14 @@ BuildRequires: python3-devel python2-setuptools %autosetup -n MarkupSafe-%{version} %build -%py2_build %py3_build - %install -%py2_install %py3_install %check -%{__python2} setup.py test %{__python3} setup.py test - -%files -n python2-markupsafe -%license LICENSE.rst -%{python2_sitearch}/*.egg-info/ -%exclude %{python2_sitearch}/markupsafe/_speedups.c -%{python2_sitearch}/markupsafe/ - %files -n python3-markupsafe %license LICENSE.rst %{python3_sitearch}/*.egg-info/ @@ -60,6 +44,9 @@ BuildRequires: python3-devel python2-setuptools %doc CHANGES.rst README.rst %changelog +* Thur Jan 27 2022 lijiawei - 1.1.1-2 +- Remove python2 support + * Mon Aug 31 2020 tianwei - 1.1.1-1 - Type:NA - ID:NA -- Gitee