[arch-commits] Commit in python-cachy/repos/community-staging-any (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 2 21:27:20 UTC 2021
Date: Thursday, December 2, 2021 @ 21:27:20
Author: felixonmars
Revision: 1062572
archrelease: copy trunk to community-staging-any
Added:
python-cachy/repos/community-staging-any/PKGBUILD
(from rev 1062571, python-cachy/trunk/PKGBUILD)
python-cachy/repos/community-staging-any/fix-flexmock_teardown-import.patch
(from rev 1062571, python-cachy/trunk/fix-flexmock_teardown-import.patch)
Deleted:
python-cachy/repos/community-staging-any/PKGBUILD
------------------------------------+
PKGBUILD | 92 ++++++++++++++++++-----------------
fix-flexmock_teardown-import.patch | 78 +++++++++++++++++++++++++++++
2 files changed, 126 insertions(+), 44 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-02 21:27:11 UTC (rev 1062571)
+++ PKGBUILD 2021-12-02 21:27:20 UTC (rev 1062572)
@@ -1,44 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-
-_pkgname=cachy
-pkgname=python-cachy
-pkgver=0.3.0
-pkgrel=5
-pkgdesc="simple yet effective caching library"
-arch=('any')
-url="https://github.com/sdispater/${_pkgname}"
-license=('MIT')
-depends=('python')
-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')
-
-prepare() {
- cd "${srcdir}"/${_pkgname}-${pkgver}
-
- # poetry-generated setup.py are fatally broken, see:
- # https://github.com/sdispater/poetry/issues/866
- dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build(){
- cd "${srcdir}"/${_pkgname}-${pkgver}
-
- python setup.py build
-}
-
-check() {
- cd "${srcdir}"/${_pkgname}-${pkgver}
-
- pifpaf run memcached --port 11211 -- pytest
-}
-
-package() {
- cd "${srcdir}"/${_pkgname}-${pkgver}
-
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
Copied: python-cachy/repos/community-staging-any/PKGBUILD (from rev 1062571, python-cachy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-02 21:27:20 UTC (rev 1062572)
@@ -0,0 +1,48 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=cachy
+pkgname=python-cachy
+pkgver=0.3.0
+pkgrel=6
+pkgdesc="simple yet effective caching library"
+arch=('any')
+url="https://github.com/sdispater/${_pkgname}"
+license=('MIT')
+depends=('python')
+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"
+ 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
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build(){
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ pifpaf run memcached --port 11211 -- pytest
+}
+
+package() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
Copied: python-cachy/repos/community-staging-any/fix-flexmock_teardown-import.patch (from rev 1062571, python-cachy/trunk/fix-flexmock_teardown-import.patch)
===================================================================
--- fix-flexmock_teardown-import.patch (rev 0)
+++ fix-flexmock_teardown-import.patch 2021-12-02 21:27:20 UTC (rev 1062572)
@@ -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