diff --git a/python-markupsafe.spec b/python-markupsafe.spec index f645e54740c3671d04ec62c1d6497c314282f9ae..4105e53033fe2b17aa30f71f45450dbc6a48076a 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