[arch-commits] Commit in python-tarantool/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 00:37:25 UTC 2021


    Date: Friday, December 3, 2021 @ 00:37:24
  Author: felixonmars
Revision: 1063907

archrelease: copy trunk to community-staging-any

Added:
  python-tarantool/repos/community-staging-any/
  python-tarantool/repos/community-staging-any/PKGBUILD
    (from rev 1063906, python-tarantool/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: python-tarantool/repos/community-staging-any/PKGBUILD (from rev 1063906, python-tarantool/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 00:37:24 UTC (rev 1063907)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Anatol Pomozov
+
+pkgname=python-tarantool
+pkgver=0.6.6.r25.gb267643
+_commit=b267643a242e2e6abc013539395b89dd235b798f
+pkgrel=4
+pkgdesc='Python client library for Tarantool 1.6 Database'
+arch=('any')
+url='https://github.com/tarantool/tarantool-python'
+license=('BSD')
+depends=('python' 'python-msgpack' 'python-yaml' 'python-six')
+makedepends=('python-setuptools' 'git')
+checkdepends=('tarantool')
+#source=("https://pypi.io/packages/source/t/tarantool/tarantool-$pkgver.tar.gz")
+source=("git+https://github.com/tarantool/tarantool-python#commit=$_commit")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd tarantool-$pkgver
+  git describe | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+  mv tarantool-python tarantool-$pkgver
+  sed -i 's/msgpack-python/msgpack/g' tarantool-$pkgver/setup.py
+}
+
+build() {
+  cd tarantool-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd tarantool-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd tarantool-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list