Remove python2-hamcrest subpackage
This commit is contained in:
parent
03f081122a
commit
34874770b9
@ -1,6 +1,6 @@
|
|||||||
Name: python-hamcrest
|
Name: python-hamcrest
|
||||||
Version: 1.9.0
|
Version: 1.9.0
|
||||||
Release: 8
|
Release: 9
|
||||||
Summary: Hamcrest matchers for Python
|
Summary: Hamcrest matchers for Python
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/hamcrest/PyHamcrest
|
URL: https://github.com/hamcrest/PyHamcrest
|
||||||
@ -15,20 +15,6 @@ where matchers are invaluable, such as UI validation, or data filtering,
|
|||||||
but it is in the area of writing flexible tests that matchers are most
|
but it is in the area of writing flexible tests that matchers are most
|
||||||
commonly used.
|
commonly used.
|
||||||
|
|
||||||
%package -n python2-hamcrest
|
|
||||||
Summary: Hamcrest matchers for Python
|
|
||||||
%{?python_provide:%python_provide python2-hamcrest}
|
|
||||||
BuildRequires: python2-devel python2-setuptools python2-pytest python2-mock python2-six
|
|
||||||
Requires: python2-six
|
|
||||||
|
|
||||||
%description -n python2-hamcrest
|
|
||||||
PyHamcrest is a framework for writing matcher objects, allowing you to
|
|
||||||
declaratively define "match" rules. There are a number of situations
|
|
||||||
where matchers are invaluable, such as UI validation, or data filtering,
|
|
||||||
but it is in the area of writing flexible tests that matchers are most
|
|
||||||
commonly used.
|
|
||||||
Python 2 version.
|
|
||||||
|
|
||||||
%package -n python3-hamcrest
|
%package -n python3-hamcrest
|
||||||
Summary: Hamcrest matchers for Python
|
Summary: Hamcrest matchers for Python
|
||||||
%{?python_provide:%python_provide python3-hamcrest}
|
%{?python_provide:%python_provide python3-hamcrest}
|
||||||
@ -47,24 +33,22 @@ Python 3 version.
|
|||||||
%autosetup -n PyHamcrest-%{version} -p1
|
%autosetup -n PyHamcrest-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
mv pytest.ini pytest.ini~
|
mv pytest.ini pytest.ini~
|
||||||
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v
|
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
||||||
|
|
||||||
%files -n python2-hamcrest
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python3-hamcrest
|
%files -n python3-hamcrest
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 05 2020 lingsheng <lingsheng@huawei.com> - 1.9.0-9
|
||||||
|
- Remove python2-hamcrest subpackage
|
||||||
|
|
||||||
* Fri Feb 21 2020 likexin <likexin4@huawei.com> - 1.9.0-8
|
* Fri Feb 21 2020 likexin <likexin4@huawei.com> - 1.9.0-8
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user