summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f3948b91e54
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-redis-lock
+ pkgdesc = Lock context manager implemented via redis SET NX EX and BLPOP
+ pkgver = 3.5.0
+ pkgrel = 1
+ url = https://pypi.org/project/charamel/
+ arch = any
+ license = BSD
+ checkdepends = python-pytest
+ checkdepends = python-process-tests
+ makedepends = python-setuptools
+ depends = python
+ depends = python-redis
+ optdepends = python-django-redis
+ source = https://files.pythonhosted.org/packages/source/p/python-redis-lock/python-redis-lock-3.5.0.tar.gz
+ sha256sums = 06f28f63bf4ea3d739ff5c472e76563e24aa5c887002a85cbdb7a5b13aa05897
+
+pkgname = python-redis-lock
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..574a8578368
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/src
+/pkg
+*.tar.gz
+*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7907e767ed8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Marcus Hoffmann <bubu@bubu1.eu>
+
+pkgname=python-redis-lock
+pkgver=3.5.0
+pkgrel=1
+pkgdesc="Lock context manager implemented via redis SET NX EX and BLPOP"
+url="https://pypi.org/project/charamel/"
+depends=('python' 'python-redis')
+makedepends=('python-setuptools')
+optdepends=('python-django-redis')
+checkdepends=('python-pytest' 'python-process-tests')
+license=('BSD')
+arch=('any')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
+
+sha256sums=('06f28f63bf4ea3d739ff5c472e76563e24aa5c887002a85cbdb7a5b13aa05897')
+
+check() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ PYTHONUNBUFFERED=yes DJANGO_SETTINGS_MODULE=test_project.settings PYTHONPATH=. pytest
+}
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}