From e2f1f6a25c022481b347a2d915b2f5f6f39244d4 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Mon, 14 Jul 2025 11:39:48 +0800 Subject: [PATCH] fix test usage --- python-markupsafe.spec | 13 ++++++++----- python-markupsafe.yaml | 8 ++++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/python-markupsafe.spec b/python-markupsafe.spec index 4eb2b28..353692b 100644 --- a/python-markupsafe.spec +++ b/python-markupsafe.spec @@ -4,10 +4,10 @@ Characters that have special meanings are replaced so that they display as the a This mitigates injection attacks, meaning untrusted user input can safely be displayed on a page. Name: python-markupsafe -Version: 2.1.5 -Release: 1 +Version: 2.1.5 +Release: 2 Summary: Safely add untrusted strings to HTML/XML markup. -License: BSD +License: BSD-3-Clause URL: https://pypi.org/project/MarkupSafe/ Source0: https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz @@ -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: pytest %{?python_provide:%python_provide python3-markupsafe} %description -n python3-markupsafe %_description @@ -33,8 +34,7 @@ BuildRequires: python3-devel python3-setuptools gcc %py3_install %check -%{__python3} setup.py test - +%pytest %files -n python3-markupsafe %{python3_sitearch}/*.egg-info/ @@ -45,6 +45,9 @@ BuildRequires: python3-devel python3-setuptools gcc %doc README.rst %changelog +* Mon Jul 14 2025 Funda Wang - 2.1.5-2 +- fix test usage + * Wed Jun 12 2024 zeng liwen - 2.1.5-1 - Update to 2.1.5 - Don’t use regular expressions for striptags, avoiding a performance issue diff --git a/python-markupsafe.yaml b/python-markupsafe.yaml index e73a4cf..089c4b6 100644 --- a/python-markupsafe.yaml +++ b/python-markupsafe.yaml @@ -1,4 +1,4 @@ -version_control: pypi -src_repo: asn1crypto -tag_prefix: ^v -seperator: . \ No newline at end of file +version_control: pypi +src_repo: asn1crypto +tag_prefix: ^v +separator: . -- Gitee