[arch-commits] Commit in python-socketpool/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 20:31:17 UTC 2019
Date: Saturday, October 26, 2019 @ 20:31:17
Author: foutrelis
Revision: 520586
archrelease: copy trunk to community-staging-any
Added:
python-socketpool/repos/community-staging-any/
python-socketpool/repos/community-staging-any/PKGBUILD
(from rev 520583, python-socketpool/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-socketpool/repos/community-staging-any/PKGBUILD (from rev 520583, python-socketpool/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:31:17 UTC (rev 520586)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-socketpool
+pkgname=('python-socketpool' 'python2-socketpool')
+pkgver=0.5.3
+pkgrel=4
+pkgdesc="A simple Python socket pool"
+arch=('any')
+license=('MIT')
+url="https://github.com/benoitc/socketpool"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("git+https://github.com/benoitc/socketpool.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ sed -i 's/data_files.*$/)/' socketpool/setup.py
+ cp -a socketpool{,-py2}
+}
+
+build() {
+ cd "$srcdir/socketpool"
+ LC_CTYPE=en_US.UTF-8 python setup.py build
+
+ cd "$srcdir/socketpool-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/socketpool"
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" \
+ py.test tests/
+
+ cd "$srcdir/socketpool-py2"
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" \
+ py.test2 tests/
+}
+
+package_python-socketpool() {
+ depends=('python')
+
+ cd socketpool
+ LC_CTYPE=en_US.UTF-8 python setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-socketpool() {
+ depends=('python2')
+
+ cd socketpool-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list