14
0
forked from pool/python-kmatch

Accepting request 964273 from home:pgajdos:python

- version update to 0.4.0
  * no upstream changelog 
- added patches
  fix https://github.com/ambitioninc/kmatch/issues/42
  + python-kmatch-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/964273
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kmatch?expand=0&rev=13
This commit is contained in:
2022-03-23 21:24:28 +00:00
committed by Git OBS Bridge
parent 7c3a8cef94
commit 5c53696686
5 changed files with 30 additions and 6 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1010da10b4f23ed2f45c88278e3ef4778e9750baa81c8ef740099dbd3c6b094c
size 7187

3
kmatch-0.4.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:54a22fbbc03861b1adcb5e9cacac0eb78237b1f3c0f9b08b3cae8b78e0a0a650
size 7216

View File

@@ -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

View File

@@ -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 <jayvdb@gmail.com>

View File

@@ -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