diff --git a/V2.0.3.tar.gz b/V2.0.3.tar.gz deleted file mode 100644 index 164b157..0000000 --- a/V2.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7e3738e73be4743b012f697aa4d2aab17cb3320196a95f56bbc09ae68a3b7f06 -size 59353 diff --git a/pyhamcrest-2.1.0.tar.gz b/pyhamcrest-2.1.0.tar.gz new file mode 100644 index 0000000..23f762c --- /dev/null +++ b/pyhamcrest-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6acbec0923d0cb7e72c22af1926f3e7c97b8e8d69fc7498eabacaf7c975bd9c +size 60538 diff --git a/python-PyHamcrest.changes b/python-PyHamcrest.changes index 854a88b..e749351 100644 --- a/python-PyHamcrest.changes +++ b/python-PyHamcrest.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Jan 27 11:03:23 UTC 2024 - Dirk Müller + +- 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 @@ -53,7 +64,7 @@ Tue Nov 5 11:20:23 UTC 2019 - Matej Cepl ------------------------------------------------------------------- Mon Nov 4 14:35:43 UTC 2019 - Matej Cepl -- Because of gh#hamcrest/PyHamcrest#123 we have to remove +- Because of gh#hamcrest/PyHamcrest#123 we have to remove tests/hamcrest_unit_test/core/is{_test,instanceof_test}.py to make the test suite passing. Patch pytest4.patch has been removed, it was a step into dead diff --git a/python-PyHamcrest.spec b/python-PyHamcrest.spec index 9fafcc9..1a91ce7 100644 --- a/python-PyHamcrest.spec +++ b/python-PyHamcrest.spec @@ -1,7 +1,7 @@ # # 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 # 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} Name: python-PyHamcrest -Version: 2.0.3 +Version: 2.1.0 Release: 0 Summary: Hamcrest framework for matcher objects License: BSD-3-Clause 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://github.com/hamcrest/PyHamcrest/archive/V%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/pyhamcrest/pyhamcrest-%{version}.tar.gz Patch0: 0001-Add-boolean-matchers.patch +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module hatchling} BuildRequires: %{python_module hypothesis >= 1.11} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Provides: python-hamcrest = %{version} @@ -45,14 +45,14 @@ PyHamcrest is a framework for writing matcher objects, allowing you to declaratively define “match” rules. %prep -%setup -q -n PyHamcrest-%{version} +%setup -q -n pyhamcrest-%{version} %autopatch -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/hamcrest %check @@ -62,6 +62,6 @@ allowing you to declaratively define “match” rules. %license LICENSE.txt %doc README.rst %{python_sitelib}/hamcrest -%{python_sitelib}/PyHamcrest-%{version}-py*.egg-info/ +%{python_sitelib}/pyhamcrest-%{version}.dist-info %changelog