diff --git a/kmatch-0.3.0.tar.gz b/kmatch-0.3.0.tar.gz deleted file mode 100644 index bd58a3c..0000000 --- a/kmatch-0.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1010da10b4f23ed2f45c88278e3ef4778e9750baa81c8ef740099dbd3c6b094c -size 7187 diff --git a/kmatch-0.4.0.tar.gz b/kmatch-0.4.0.tar.gz new file mode 100644 index 0000000..7727c97 --- /dev/null +++ b/kmatch-0.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54a22fbbc03861b1adcb5e9cacac0eb78237b1f3c0f9b08b3cae8b78e0a0a650 +size 7216 diff --git a/python-kmatch-no-mock.patch b/python-kmatch-no-mock.patch new file mode 100644 index 0000000..7118323 --- /dev/null +++ b/python-kmatch-no-mock.patch @@ -0,0 +1,12 @@ +Index: kmatch-0.4.0/kmatch/tests/kmatch_tests.py +=================================================================== +--- kmatch-0.4.0.orig/kmatch/tests/kmatch_tests.py 2020-12-22 22:27:55.000000000 +0100 ++++ kmatch-0.4.0/kmatch/tests/kmatch_tests.py 2022-03-23 12:33:03.395890702 +0100 +@@ -1,6 +1,6 @@ + from sys import version + from unittest import TestCase +-from mock import patch ++from unittest.mock import patch + + from kmatch import K + diff --git a/python-kmatch.changes b/python-kmatch.changes index 2c9ffe1..779af4b 100644 --- a/python-kmatch.changes +++ b/python-kmatch.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Mar 23 11:54:58 UTC 2022 - pgajdos@suse.com + +- version update to 0.4.0 + * no upstream changelog +- added patches + fix https://github.com/ambitioninc/kmatch/issues/42 + + python-kmatch-no-mock.patch + ------------------------------------------------------------------- Sun Aug 16 14:10:25 UTC 2020 - John Vandenberg diff --git a/python-kmatch.spec b/python-kmatch.spec index 1d11b4e..f74596e 100644 --- a/python-kmatch.spec +++ b/python-kmatch.spec @@ -1,7 +1,7 @@ # # spec file for package python-kmatch # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-kmatch -Version: 0.3.0 +Version: 0.4.0 Release: 0 Summary: A language for matching/validating/filtering Python dictionaries License: MIT Group: Development/Languages/Python URL: https://github.com/ambitioninc/kmatch Source: https://files.pythonhosted.org/packages/source/k/kmatch/kmatch-%{version}.tar.gz +# https://github.com/ambitioninc/kmatch/issues/42 +Patch0: python-kmatch-no-mock.patch BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: fdupes @@ -43,13 +45,14 @@ with logical operators. %prep %setup -q -n kmatch-%{version} +%patch0 -p1 sed -i '/nose/d' setup.py dos2unix README.rst LICENSE chmod a-x README.rst LICENSE rm -r *.egg-info -mv kmatch/tests/ .tests %build +mv kmatch/tests/ .tests %python_build %install