enable %check

This commit is contained in:
xinyingchao 2022-02-23 16:49:05 +08:00
parent 566ff2c013
commit 281879dabe

View File

@ -2,7 +2,7 @@
Name: python-mako Name: python-mako
Version: 1.1.4 Version: 1.1.4
Release: 2 Release: 3
Summary: Mako template library for Python Summary: Mako template library for Python
License: MIT License: MIT
Group: Development/Languages Group: Development/Languages
@ -12,9 +12,7 @@ BuildArch: noarch
BuildRequires: python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools
BuildRequires: python3-markupsafe python3-mock python3-nose BuildRequires: python3-markupsafe python3-mock python3-nose
%if %{with test}
BuildRequires: python3-pytest BuildRequires: python3-pytest
%endif
%description %description
Python-mako is a template library for Python. It provides a familiar, non-XML Python-mako is a template library for Python. It provides a familiar, non-XML
@ -51,9 +49,7 @@ mv %{buildroot}/%{_bindir}/mako-render %{buildroot}/%{_bindir}/python3-mako-rend
rm -rf doc/build rm -rf doc/build
%check %check
%if %{with test}
%{__python3} -m pytest -v %{__python3} -m pytest -v
%endif
%files -n python3-mako %files -n python3-mako
%license LICENSE AUTHORS %license LICENSE AUTHORS
@ -65,6 +61,9 @@ rm -rf doc/build
%doc doc %doc doc
%changelog %changelog
* Wed Feb 23 2022 yuanxin <yuanxin24@h-partners.com> - 1.1.4-3
- enable %check
* Sat Nov 27 2021 shixuantong <shixuantong@huawei.com> - 1.1.4-2 * Sat Nov 27 2021 shixuantong <shixuantong@huawei.com> - 1.1.4-2
- disable %check - disable %check