[arch-commits] Commit in python-click-log/repos (2 files)
David Runge
dvzrv at archlinux.org
Sat Feb 3 16:37:39 UTC 2018
Date: Saturday, February 3, 2018 @ 16:37:38
Author: dvzrv
Revision: 288796
archrelease: copy trunk to community-testing-any
Added:
python-click-log/repos/community-testing-any/
python-click-log/repos/community-testing-any/PKGBUILD
(from rev 288795, python-click-log/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: python-click-log/repos/community-testing-any/PKGBUILD (from rev 288795, python-click-log/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-02-03 16:37:38 UTC (rev 288796)
@@ -0,0 +1,60 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+
+_name=click-log
+pkgname=("python-${_name}" "python2-${_name}")
+pkgver=0.2.1
+pkgrel=2
+pkgdesc="Logging integration for Click"
+arch=("any")
+url="https://pypi.python.org/pypi/click-log"
+license=("MIT")
+makedepends=("python-setuptools" "python2-setuptools")
+checkdepends=("python-pytest" "python-click" "python2-pytest" "python2-click")
+source=("${_name}-${pkgver}.tar.gz::https://github.com/click-contrib/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('ea30cf849ebd166f105b36be5991bf4aba38df57b1d6e3d330612d9d252ee1653db9fb14ab902143d96d5ecf2e8902aa5e63e630c8b75daa3c16c788f985ba58')
+
+prepare() {
+ mv "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}"
+ cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
+}
+
+build() {
+ cd "${pkgname[0]}-${pkgver}"
+ python setup.py build
+ cd ../"${pkgname[1]}-${pkgver}"
+ python2 setup.py build
+}
+
+check() {
+ # Needed for the tests, especially when building in clean chroot
+ [[ ${LANG} = C ]] && export LANG=en_US.UTF8
+ cd "${pkgname[0]}-${pkgver}"
+ export PYTHONPATH=build/lib:$PYTHONPATH
+ py.test
+
+ cd ../"${pkgname[1]}-${pkgver}"
+ export PYTHONPATH=build/lib:$PYTHONPATH
+ py.test2
+}
+
+package_python-click-log() {
+ depends=("python-click")
+ cd "${pkgname[0]}-${pkgver}"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-click-log() {
+ depends=("python2-click")
+ cd "${pkgname[1]}-${pkgver}"
+ python2 setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
More information about the arch-commits
mailing list