enable check
This commit is contained in:
parent
75777f5b34
commit
53959681c8
@ -1,11 +1,9 @@
|
|||||||
%bcond_with test
|
|
||||||
|
|
||||||
%global modname six
|
%global modname six
|
||||||
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
|
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
|
||||||
|
|
||||||
Name: python-six
|
Name: python-six
|
||||||
Version: 1.16.0
|
Version: 1.16.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: It is a Python 2 and 3 compatibility library
|
Summary: It is a Python 2 and 3 compatibility library
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/%{modname}
|
URL: https://pypi.python.org/pypi/%{modname}
|
||||||
@ -20,9 +18,7 @@ Summary: Compatibility library for python 3
|
|||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
BuildRequires: python3-tkinter
|
BuildRequires: python3-tkinter
|
||||||
BuildRequires: python3-pip python3-wheel
|
BuildRequires: python3-pip python3-wheel
|
||||||
%if %{with test}
|
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
%endif
|
|
||||||
Provides: python%{python3_pkgversion}dist(six) = %{version}
|
Provides: python%{python3_pkgversion}dist(six) = %{version}
|
||||||
Provides: python%{python3_version}dist(six) = %{version}
|
Provides: python%{python3_version}dist(six) = %{version}
|
||||||
|
|
||||||
@ -42,9 +38,7 @@ Compatibility library for python 3.
|
|||||||
%py3_install_wheel %{python_wheelname}
|
%py3_install_wheel %{python_wheelname}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python3-%{modname}
|
%files -n python3-%{modname}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -55,6 +49,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py
|
|||||||
%{python3_sitelib}/__pycache__/%{modname}.*
|
%{python3_sitelib}/__pycache__/%{modname}.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 16 2022 liudabo <liudabo1@huawei.com> - 1.16.0-3
|
||||||
|
- enable check
|
||||||
|
|
||||||
* Wed Dec 08 2021 shixuantong <shixuantong@huawei.com> - 1.16.0-2
|
* Wed Dec 08 2021 shixuantong <shixuantong@huawei.com> - 1.16.0-2
|
||||||
- provide pythonXdist(six)
|
- provide pythonXdist(six)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user