!17 enable check
From: @run-is-pig Reviewed-by: @hanxinke Signed-off-by: @hanxinke
This commit is contained in:
commit
4dce137893
@ -1,11 +1,9 @@
|
||||
%bcond_with test
|
||||
|
||||
%global modname six
|
||||
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
|
||||
|
||||
Name: python-six
|
||||
Version: 1.16.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: It is a Python 2 and 3 compatibility library
|
||||
License: MIT
|
||||
URL: https://pypi.python.org/pypi/%{modname}
|
||||
@ -20,9 +18,7 @@ Summary: Compatibility library for python 3
|
||||
BuildRequires: python3-devel python3-setuptools
|
||||
BuildRequires: python3-tkinter
|
||||
BuildRequires: python3-pip python3-wheel
|
||||
%if %{with test}
|
||||
BuildRequires: python3-pytest
|
||||
%endif
|
||||
Provides: python%{python3_pkgversion}dist(six) = %{version}
|
||||
Provides: python%{python3_version}dist(six) = %{version}
|
||||
|
||||
@ -42,9 +38,7 @@ Compatibility library for python 3.
|
||||
%py3_install_wheel %{python_wheelname}
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py
|
||||
%endif
|
||||
|
||||
%files -n python3-%{modname}
|
||||
%license LICENSE
|
||||
@ -55,6 +49,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py
|
||||
%{python3_sitelib}/__pycache__/%{modname}.*
|
||||
|
||||
%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
|
||||
- provide pythonXdist(six)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user