python-hamcrest/python-hamcrest.spec

55 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-02-26 16:49:23 +08:00
Name: python-hamcrest
Version: 1.9.0
2020-08-05 14:19:55 +08:00
Release: 9
2020-02-26 16:49:23 +08:00
Summary: Hamcrest matchers for Python
License: BSD
URL: https://github.com/hamcrest/PyHamcrest
Source0: https://github.com/hamcrest/PyHamcrest/archive/V1.9.0/%{name}-1.9.0.tar.gz
Patch0001: 0001-Add-boolean-matchers.patch
BuildArch: noarch
%description
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.
%package -n python3-hamcrest
Summary: Hamcrest matchers for Python
%{?python_provide:%python_provide python3-hamcrest}
BuildRequires: python3-devel python3-setuptools python3-pytest python3-mock python3-six
Requires: python3-six
%description -n python3-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 3 version.
%prep
%autosetup -n PyHamcrest-%{version} -p1
%build
%py3_build
%install
%py3_install
%check
mv pytest.ini pytest.ini~
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
%files -n python3-hamcrest
%{python3_sitelib}/*
%changelog
2020-08-05 14:19:55 +08:00
* Wed Aug 05 2020 lingsheng <lingsheng@huawei.com> - 1.9.0-9
- Remove python2-hamcrest subpackage
2020-02-26 16:49:23 +08:00
* Fri Feb 21 2020 likexin <likexin4@huawei.com> - 1.9.0-8
- package init