[arch-commits] Commit in python-distlib/repos (community-any community-any/PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Thu May 17 20:55:56 UTC 2018
Date: Thursday, May 17, 2018 @ 20:55:55
Author: eschwartz
Revision: 324084
archrelease: copy trunk to community-any
Added:
python-distlib/repos/community-any/
python-distlib/repos/community-any/PKGBUILD
(from rev 324083, python-distlib/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-distlib/repos/community-any/PKGBUILD (from rev 324083, python-distlib/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-05-17 20:55:55 UTC (rev 324084)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=distlib
+pkgbase='python-distlib'
+pkgname=('python-distlib' 'python2-distlib')
+pkgver=0.2.7
+pkgrel=1
+pkgdesc="Low-level components of distutils2/packaging"
+arch=('any')
+url="https://bitbucket.org/pypa/${_pkgname}"
+license=('PSF')
+makedepends=('python' 'python2')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.zip")
+sha256sums=('cd502c66fc27c535bab62dc4f482e403e2369c2c05281a79cc2d4e2f42a87f20')
+
+prepare() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ # https://bitbucket.org/pypa/distlib/issues/107/test-suite-failures
+ # patch misses the docs file...
+ sed -i 's/tatterdema/tatterdemalion/' tests/test_index.py
+}
+
+build() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py build
+ python2 setup.py build
+}
+
+check() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ PYTHONHASHSEED=0 python setup.py test
+ python2 setup.py test
+}
+
+package_python-distlib() {
+ depends=('python')
+
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+package_python2-distlib() {
+ depends=('python2')
+
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list