From 77c77614453d0f3f638a0359e6bc1effc923851a Mon Sep 17 00:00:00 2001 From: zhuofeng Date: Wed, 21 Dec 2022 08:42:16 +0000 Subject: [PATCH] make the test check Signed-off-by: zhuofeng (cherry picked from commit 21f7ec33f5114b2545975196f625d13cfed9e6cb) --- python-markupsafe.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/python-markupsafe.spec b/python-markupsafe.spec index f645e54..d2dbb0b 100644 --- a/python-markupsafe.spec +++ b/python-markupsafe.spec @@ -5,12 +5,14 @@ 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/ Source0: https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz +BuildRequires: python3-pytest + %description %_description %package -n python3-markupsafe @@ -35,7 +37,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 +50,12 @@ Provides: python%{python3_version}dist(markupsafe) = %{version} %doc README.rst %changelog +* Wed Dec 21 2022 zhuofeng -2.0.1-4 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:make the test check + * Wed Oct 26 2022 zhangruifang - 2.0.1-3 - Rebuild for next release -- Gitee