From cc5919f3ad5c2b4dcb8597a0d90d366ff4843391 Mon Sep 17 00:00:00 2001 From: yixiangzhike Date: Tue, 5 Aug 2025 15:18:28 +0800 Subject: [PATCH] Sync from master to fix test usage (cherry picked from commit 0cf2ccf6cd7e29cc4d59c3c03a46f949bfa0379a) --- python-markupsafe.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python-markupsafe.spec b/python-markupsafe.spec index f645e54..4105e53 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: 2.0.1 -Release: 3 +Release: 4 Summary: Safely add untrusted strings to HTML/XML markup. License: BSD URL: https://pypi.org/project/MarkupSafe/ @@ -16,6 +16,7 @@ Source0: https://files.pythonhosted.org/packages/source/M/MarkupSafe/Mark %package -n python3-markupsafe Summary: %{summary} BuildRequires: python3-devel python3-setuptools gcc +BuildRequires: python3-pytest Provides: python%{python3_pkgversion}dist(markupsafe) = %{version} Provides: python%{python3_version}dist(markupsafe) = %{version} %{?python_provide:%python_provide python3-markupsafe} @@ -35,7 +36,8 @@ Provides: python%{python3_version}dist(markupsafe) = %{version} %py3_install %check -%{__python3} setup.py test +export PYTHONPATH=%{buildroot}%{python3_sitearch} +%{__python3} -m pytest %files -n python3-markupsafe @@ -47,6 +49,9 @@ Provides: python%{python3_version}dist(markupsafe) = %{version} %doc README.rst %changelog +* Tue Aug 5 2025 yixiangzhike - 2.0.1-4 +- Sync from master to fix test usage + * Wed Oct 26 2022 zhangruifang - 2.0.1-3 - Rebuild for next release -- Gitee