[arch-commits] Commit in python-elasticsearch/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:56:20 UTC 2019
Date: Friday, October 25, 2019 @ 15:56:19
Author: felixonmars
Revision: 519284
archrelease: copy trunk to community-staging-any
Added:
python-elasticsearch/repos/community-staging-any/
python-elasticsearch/repos/community-staging-any/PKGBUILD
(from rev 519283, python-elasticsearch/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-elasticsearch/repos/community-staging-any/PKGBUILD (from rev 519283, python-elasticsearch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:56:19 UTC (rev 519284)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-elasticsearch
+pkgname=('python-elasticsearch' 'python2-elasticsearch')
+pkgver=7.0.5
+pkgrel=2
+arch=('any')
+pkgdesc='Python client for Elasticsearch'
+url='https://github.com/elastic/elasticsearch-py'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-urllib3' 'python2-urllib3')
+checkdepends=('python-nose' 'python2-nose' 'python-requests' 'python2-requests' 'python-coverage'
+ 'python2-coverage' 'python-mock' 'python2-mock' 'python-pyaml' 'python2-pyaml'
+ 'python-nosexcover' 'python2-nosexcover')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/elastic/elasticsearch-py/archive/$pkgver.tar.gz")
+sha512sums=('c4224cee6f7739ad932036f2afc6ed20ead16829d42f40b79e08d6714b4a247f019175739fb5a93bcea5bba391bd9f54cadcd31d42ff9411da414d08c140049b')
+
+prepare() {
+ sed -i 's/urllib3<.*,>/urllib3>/' elasticsearch-py-$pkgver/setup.py
+ cp -a elasticsearch-py-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/elasticsearch-py-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/elasticsearch-py-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/elasticsearch-py-$pkgver
+ # https://github.com/elastic/elasticsearch-py/issues/816
+ # python setup.py test
+
+ cd "$srcdir"/elasticsearch-py-$pkgver-py2
+ # python2 setup.py test
+}
+
+package_python-elasticsearch() {
+ depends=('python-urllib3')
+
+ cd elasticsearch-py-$pkgver
+ python setup.py install --root "$pkgdir" --optimize=1
+}
+
+package_python2-elasticsearch() {
+ depends=('python2-urllib3')
+
+ cd elasticsearch-py-$pkgver-py2
+ python2 setup.py install --root "$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list