[arch-commits] Commit in python-cachy/trunk (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Thu Dec 2 21:26:47 UTC 2021
Date: Thursday, December 2, 2021 @ 21:26:47
Author: foutrelis
Revision: 1062570
Fix flexmock_teardown import
Added:
python-cachy/trunk/fix-flexmock_teardown-import.patch
Modified:
python-cachy/trunk/PKGBUILD
------------------------------------+
PKGBUILD | 10 +++-
fix-flexmock_teardown-import.patch | 78 +++++++++++++++++++++++++++++++++++
2 files changed, 85 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-02 21:16:32 UTC (rev 1062569)
+++ PKGBUILD 2021-12-02 21:26:47 UTC (rev 1062570)
@@ -12,12 +12,16 @@
makedepends=('python-setuptools' 'python-dephell')
_checkdeps=('flexmock' 'pytest-mock' 'memcached' 'fakeredis')
checkdepends=("${_checkdeps[@]/#/python-}" 'pifpaf' 'memcached')
-source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-sha256sums=('186581f4ceb42a0bbe040c407da73c14092379b1e4c0e327fdb72ae4a9b269b1')
-b2sums=('df2d1356a309707af5aea9aa0e534130f21815da58988a5623feb3fff3d97de655c3977a80dcf8eaefe47d9d14d8e6e6a4bab0f8afd8d42668ed061172c0a1c7')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
+ fix-flexmock_teardown-import.patch)
+sha256sums=('186581f4ceb42a0bbe040c407da73c14092379b1e4c0e327fdb72ae4a9b269b1'
+ 'f00e7f140e30dac30953fe56132d4bcd9d782e534e300619f68309f4eb6385a9')
+b2sums=('df2d1356a309707af5aea9aa0e534130f21815da58988a5623feb3fff3d97de655c3977a80dcf8eaefe47d9d14d8e6e6a4bab0f8afd8d42668ed061172c0a1c7'
+ '794944aecd2d395ec1e35cce8d7dd7b78080e7693768a3594f2dd2607fab951a4ac3bea7bb2e80a5dd399af65a6215ff0309a1df59861559b8975130b1ec00a8')
prepare() {
cd "${srcdir}"/${_pkgname}-${pkgver}
+ patch -Np1 -i ../fix-flexmock_teardown-import.patch
# poetry-generated setup.py are fatally broken, see:
# https://github.com/sdispater/poetry/issues/866
Added: fix-flexmock_teardown-import.patch
===================================================================
--- fix-flexmock_teardown-import.patch (rev 0)
+++ fix-flexmock_teardown-import.patch 2021-12-02 21:26:47 UTC (rev 1062570)
@@ -0,0 +1,78 @@
+diff -upr cachy-0.3.0.orig/tests/stores/test_dict_store.py cachy-0.3.0/tests/stores/test_dict_store.py
+--- cachy-0.3.0.orig/tests/stores/test_dict_store.py 2019-08-06 22:18:57.993954200 +0300
++++ cachy-0.3.0/tests/stores/test_dict_store.py 2021-12-02 23:24:31.936148644 +0200
+@@ -1,7 +1,8 @@
+ # -*- coding: utf-8 -*-
+
+ from unittest import TestCase
+-from flexmock import flexmock, flexmock_teardown
++from flexmock import flexmock
++from flexmock._api import flexmock_teardown
+
+ from cachy.stores import DictStore
+
+diff -upr cachy-0.3.0.orig/tests/stores/test_file_store.py cachy-0.3.0/tests/stores/test_file_store.py
+--- cachy-0.3.0.orig/tests/stores/test_file_store.py 2019-08-06 22:18:57.994094000 +0300
++++ cachy-0.3.0/tests/stores/test_file_store.py 2021-12-02 23:24:32.446162662 +0200
+@@ -7,7 +7,8 @@ import hashlib
+ import shutil
+
+ from unittest import TestCase
+-from flexmock import flexmock, flexmock_teardown
++from flexmock import flexmock
++from flexmock._api import flexmock_teardown
+
+ from cachy.serializers import JsonSerializer
+ from cachy.stores import FileStore
+diff -upr cachy-0.3.0.orig/tests/stores/test_redis_store.py cachy-0.3.0/tests/stores/test_redis_store.py
+--- cachy-0.3.0.orig/tests/stores/test_redis_store.py 2019-08-06 22:57:58.550268400 +0300
++++ cachy-0.3.0/tests/stores/test_redis_store.py 2021-12-02 23:24:32.446162662 +0200
+@@ -4,7 +4,8 @@ import math
+
+ import redis
+ from unittest import TestCase
+-from flexmock import flexmock, flexmock_teardown
++from flexmock import flexmock
++from flexmock._api import flexmock_teardown
+ from fakeredis import FakeServer
+ from fakeredis import FakeStrictRedis
+ from cachy.stores import RedisStore
+diff -upr cachy-0.3.0.orig/tests/test_cache_manager.py cachy-0.3.0/tests/test_cache_manager.py
+--- cachy-0.3.0.orig/tests/test_cache_manager.py 2019-08-06 22:18:57.994549300 +0300
++++ cachy-0.3.0/tests/test_cache_manager.py 2021-12-02 23:24:32.446162662 +0200
+@@ -3,7 +3,8 @@
+ import os
+ import tempfile
+ from unittest import TestCase
+-from flexmock import flexmock, flexmock_teardown
++from flexmock import flexmock
++from flexmock._api import flexmock_teardown
+
+ from cachy import CacheManager, Repository
+ from cachy.stores import DictStore, FileStore
+diff -upr cachy-0.3.0.orig/tests/test_repository.py cachy-0.3.0/tests/test_repository.py
+--- cachy-0.3.0.orig/tests/test_repository.py 2019-08-06 22:18:57.994738000 +0300
++++ cachy-0.3.0/tests/test_repository.py 2021-12-02 23:24:32.446162662 +0200
+@@ -2,7 +2,8 @@
+
+ import datetime
+ from unittest import TestCase
+-from flexmock import flexmock, flexmock_teardown
++from flexmock import flexmock
++from flexmock._api import flexmock_teardown
+
+ from cachy import Repository
+ from cachy.contracts.store import Store
+diff -upr cachy-0.3.0.orig/tests/test_tagged_cache.py cachy-0.3.0/tests/test_tagged_cache.py
+--- cachy-0.3.0.orig/tests/test_tagged_cache.py 2019-08-06 22:18:57.994858300 +0300
++++ cachy-0.3.0/tests/test_tagged_cache.py 2021-12-02 23:24:32.446162662 +0200
+@@ -7,7 +7,8 @@ from cachy.stores import DictStore, Redi
+ from cachy.tag_set import TagSet
+ from cachy.redis_tagged_cache import RedisTaggedCache
+ from datetime import datetime, timedelta
+-from flexmock import flexmock, flexmock_teardown
++from flexmock import flexmock
++from flexmock._api import flexmock_teardown
+
+
+ class TaggedCacheTestCase(TestCase):
More information about the arch-commits
mailing list