Sync from SUSE:SLFO:Main python-PyHamcrest revision 272238036777346492f70b64b787b76e

This commit is contained in:
Adrian Schröter 2024-12-13 10:49:42 +01:00
parent 9f6d0af652
commit b14f26292d
4 changed files with 27 additions and 16 deletions

BIN
V2.0.3.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pyhamcrest-2.1.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sat Jan 27 11:03:23 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.1.0:
* Add a matcher for exceptions in asyncio future
* Use the correct generic type in the internal
``describe_keyvalue`` method
* ``has_properties`` now returns ``Matcher[Any]`` type, which
addresses type checking errors when nested as a matcher.
* Added Python 3.11 testing
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:20:58 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:20:58 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-PyHamcrest # spec file for package python-PyHamcrest
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,22 +16,22 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-PyHamcrest Name: python-PyHamcrest
Version: 2.0.3 Version: 2.1.0
Release: 0 Release: 0
Summary: Hamcrest framework for matcher objects Summary: Hamcrest framework for matcher objects
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/hamcrest/PyHamcrest URL: https://github.com/hamcrest/PyHamcrest
# PyPi is missing tests Source: https://files.pythonhosted.org/packages/source/p/pyhamcrest/pyhamcrest-%{version}.tar.gz
#Source: https://files.pythonhosted.org/packages/source/P/PyHamcrest/PyHamcrest-%%{version}.tar.gz
Source: https://github.com/hamcrest/PyHamcrest/archive/V%{version}.tar.gz
Patch0: 0001-Add-boolean-matchers.patch Patch0: 0001-Add-boolean-matchers.patch
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module hypothesis >= 1.11} BuildRequires: %{python_module hypothesis >= 1.11}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Provides: python-hamcrest = %{version} Provides: python-hamcrest = %{version}
@ -45,14 +45,14 @@ PyHamcrest is a framework for writing matcher objects,
allowing you to declaratively define “match” rules. allowing you to declaratively define “match” rules.
%prep %prep
%setup -q -n PyHamcrest-%{version} %setup -q -n pyhamcrest-%{version}
%autopatch -p1 %autopatch -p1
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/hamcrest %python_expand %fdupes %{buildroot}%{$python_sitelib}/hamcrest
%check %check
@ -62,6 +62,6 @@ allowing you to declaratively define “match” rules.
%license LICENSE.txt %license LICENSE.txt
%doc README.rst %doc README.rst
%{python_sitelib}/hamcrest %{python_sitelib}/hamcrest
%{python_sitelib}/PyHamcrest-%{version}-py*.egg-info/ %{python_sitelib}/pyhamcrest-%{version}.dist-info
%changelog %changelog