2020-02-26 16:49:23 +08:00
|
|
|
Name: python-hamcrest
|
2022-06-29 14:38:44 +08:00
|
|
|
Version: 2.0.3
|
2024-05-09 14:55:10 +08:00
|
|
|
Release: 3
|
2020-02-26 16:49:23 +08:00
|
|
|
Summary: Hamcrest matchers for Python
|
2022-05-11 15:22:23 +08:00
|
|
|
License: BSD-3-Clause
|
2020-02-26 16:49:23 +08:00
|
|
|
URL: https://github.com/hamcrest/PyHamcrest
|
2022-06-29 14:38:44 +08:00
|
|
|
Source0: https://github.com/hamcrest/PyHamcrest/archive/V2.0.3/%{name}-%{version}.tar.gz
|
2023-07-23 15:42:35 +08:00
|
|
|
Patch0: numpy-1.20.0-alias-depr.patch
|
2024-05-09 14:55:10 +08:00
|
|
|
Patch1: backport-nit-fix-a-minor-type-annotation-bug-in-isdict_contai.patch
|
2020-02-26 16:49:23 +08:00
|
|
|
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
|
2022-06-29 14:38:44 +08:00
|
|
|
BuildRequires: python3-numpy
|
2020-02-26 16:49:23 +08:00
|
|
|
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
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-hamcrest
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-05-09 14:55:10 +08:00
|
|
|
* Thu May 9 2024 wuzhaomin <wuzhaomin@kylinos.cn> - 2.0.3-3
|
|
|
|
|
- fix a minor type annotation bug in isdict_containingentries
|
|
|
|
|
|
2023-07-23 15:42:35 +08:00
|
|
|
* Sun Jul 23 2023 wangkai <13474090681@163.com> - 2.0.3-2
|
|
|
|
|
- Fix build error for numpy-1.20
|
|
|
|
|
|
2022-06-29 14:38:44 +08:00
|
|
|
* Wed Jun 29 2022 yaoxin <yaoxin30@h-partners.com> - 2.0.3-1
|
|
|
|
|
- Update to 2.0.3
|
|
|
|
|
|
2022-05-11 15:22:23 +08:00
|
|
|
* Wed May 11 2022 houyingchao <houyingchao@h-partners.com> - 1.9.0-11
|
|
|
|
|
- License compliance rectification
|
|
|
|
|
|
2021-01-11 19:01:52 +08:00
|
|
|
* Fri Jan 08 2021 maminjie <maminjie1@huawei.com> - 1.9.0-10
|
|
|
|
|
- port to pytest4
|
|
|
|
|
|
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
|