From 6073104b1a967e6c435beaf0703911b1142132f5 Mon Sep 17 00:00:00 2001 From: yixiangzhike Date: Tue, 5 Aug 2025 16:05:12 +0800 Subject: [PATCH] Sync from master to fix test usage --- python-markupsafe.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/python-markupsafe.spec b/python-markupsafe.spec index 1c3926a..706f613 100644 --- a/python-markupsafe.spec +++ b/python-markupsafe.spec @@ -5,7 +5,7 @@ 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/ @@ -15,12 +15,14 @@ Source0: https://files.pythonhosted.org/packages/source/M/MarkupSafe/Mark %package -n python2-markupsafe Summary: %{summary} BuildRequires: python2-devel python2-setuptools +BuildRequires: python2-pytest %{?python_provide:%python_provide python2-markupsafe} %description -n python2-markupsafe %_description %package -n python3-markupsafe Summary: %{summary} BuildRequires: python3-devel python2-setuptools +BuildRequires: python3-pytest %{?python_provide:%python_provide python3-markupsafe} %description -n python3-markupsafe %_description @@ -40,8 +42,10 @@ BuildRequires: python3-devel python2-setuptools %py3_install %check -%{__python2} setup.py test -%{__python3} setup.py test +export PYTHONPATH=%{buildroot}%{python2_sitearch} +%{__python2} -m pytest +export PYTHONPATH=%{buildroot}%{python3_sitearch} +%{__python3} -m pytest %files -n python2-markupsafe @@ -60,6 +64,12 @@ BuildRequires: python3-devel python2-setuptools %doc CHANGES.rst README.rst %changelog +* Tue Aug 5 2025 yixiangzhike - 1.1.1-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:sync from master to fix test usage + * Mon Aug 31 2020 tianwei - 1.1.1-1 - Type:NA - ID:NA -- Gitee