forked from pool/python-pymemcache
Accepting request 967466 from home:pgajdos:python
- version update to 3.5.2 New in version 3.5.2 -------------------- * Handle blank ``STAT`` values. New in version 3.5.1 -------------------- * ``Client.get`` returns the default when using ``ignore_exc`` and if memcached is unavailable * Added ``noreply`` support to ``HashClient.flush_all``. - do not require python-mock for build OBS-URL: https://build.opensuse.org/request/show/967466 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymemcache?expand=0&rev=32
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5bf9c94a6bc9ad081dc9b5808284e027d755a0518f6375a57405552938c74d91
|
||||
size 64763
|
3
pymemcache-3.5.2.tar.gz
Normal file
3
pymemcache-3.5.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8923ab59840f0d5338f1c52dba229fa835545b91c3c2f691c118e678d0fb974e
|
||||
size 65351
|
47
python-pymemcache-no-mock.patch
Normal file
47
python-pymemcache-no-mock.patch
Normal file
@@ -0,0 +1,47 @@
|
||||
diff --git a/pymemcache/test/test_client.py b/pymemcache/test/test_client.py
|
||||
index 8b323ded..f0aac442 100644
|
||||
--- a/pymemcache/test/test_client.py
|
||||
+++ b/pymemcache/test/test_client.py
|
||||
@@ -1,5 +1,4 @@
|
||||
# Copyright 2012 Pinterest.com
|
||||
-# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -20,8 +19,8 @@
|
||||
import functools
|
||||
import json
|
||||
import os
|
||||
-import mock
|
||||
import platform
|
||||
+from unittest import mock
|
||||
import re
|
||||
import socket
|
||||
import sys
|
||||
diff --git a/pymemcache/test/test_client_hash.py b/pymemcache/test/test_client_hash.py
|
||||
index ad3f2dac..ceab7052 100644
|
||||
--- a/pymemcache/test/test_client_hash.py
|
||||
+++ b/pymemcache/test/test_client_hash.py
|
||||
@@ -7,7 +7,7 @@
|
||||
import unittest
|
||||
import os
|
||||
import pytest
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import socket
|
||||
|
||||
|
||||
diff --git a/pymemcache/test/test_client_retry.py b/pymemcache/test/test_client_retry.py
|
||||
index 230a941..de64a46 100644
|
||||
--- a/pymemcache/test/test_client_retry.py
|
||||
+++ b/pymemcache/test/test_client_retry.py
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
import functools
|
||||
import unittest
|
||||
+from unittest import mock
|
||||
|
||||
-import mock
|
||||
import pytest
|
||||
|
||||
from .test_client import ClientTestMixin, MockSocket
|
@@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 7 09:31:23 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- version update to 3.5.2
|
||||
New in version 3.5.2
|
||||
--------------------
|
||||
* Handle blank ``STAT`` values.
|
||||
New in version 3.5.1
|
||||
--------------------
|
||||
* ``Client.get`` returns the default when using ``ignore_exc`` and if memcached
|
||||
is unavailable
|
||||
* Added ``noreply`` support to ``HashClient.flush_all``.
|
||||
- do not require python-mock for build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 16 20:29:06 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pymemcache
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2014 Thomas Bechtold <thomasbechtold@jpberlin.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -20,13 +20,15 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-pymemcache
|
||||
Version: 3.5.0
|
||||
Version: 3.5.2
|
||||
Release: 0
|
||||
Summary: A pure Python memcached client
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/Pinterest/pymemcache
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pymemcache/pymemcache-%{version}.tar.gz
|
||||
# https://github.com/pinterest/pymemcache/commit/0bf1baa4f539dedf8e4e4b2e48f8da5d66ed57b5
|
||||
Patch0: python-pymemcache-no-mock.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: memcached
|
||||
@@ -35,7 +37,6 @@ Requires: python-six
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module gevent}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pylibmc}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-memcached}
|
||||
@@ -61,7 +62,7 @@ pymemcache supports the following features:
|
||||
* The (optional) ability to treat network and memcached errors as cache misses.
|
||||
|
||||
%prep
|
||||
%setup -q -n pymemcache-%{version}
|
||||
%autosetup -p1 -n pymemcache-%{version}
|
||||
# Disable pytest-cov
|
||||
sed -i 's/tool:pytest/tool:ignore-pytest-cov/' setup.cfg
|
||||
|
||||
|
Reference in New Issue
Block a user