[arch-commits] Commit in python-logbook/repos (4 files)
Felix Yan
fyan at archlinux.org
Sat Sep 12 06:09:56 UTC 2015
Date: Saturday, September 12, 2015 @ 08:09:56
Author: fyan
Revision: 139953
archrelease: copy trunk to community-i686, community-x86_64
Added:
python-logbook/repos/community-i686/
python-logbook/repos/community-i686/PKGBUILD
(from rev 139952, python-logbook/trunk/PKGBUILD)
python-logbook/repos/community-x86_64/
python-logbook/repos/community-x86_64/PKGBUILD
(from rev 139952, python-logbook/trunk/PKGBUILD)
---------------------------+
community-i686/PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 114 insertions(+)
Copied: python-logbook/repos/community-i686/PKGBUILD (from rev 139952, python-logbook/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-09-12 06:09:56 UTC (rev 139953)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Tomas Schertel<tschertel at gmail.com>
+
+pkgbase=python-logbook
+pkgname=(python-logbook python2-logbook)
+_pypiname=Logbook
+pkgver=0.10.0
+pkgrel=1
+pkgdesc="Logging sytem for Python that replaces the standard library’s logging module"
+arch=('i686' 'x86_64')
+url="http://packages.python.org/Logbook/index.html"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git'
+ 'python-six' 'python2-six')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("git+https://github.com/mitsuhiko/logbook.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a logbook{,-py2}
+}
+
+build() {
+ cd "$srcdir/logbook"
+ cython logbook/_speedups.pyx
+ python setup.py build
+
+ cd "$srcdir/logbook-py2"
+ cython2 logbook/_speedups.pyx
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/logbook"
+ LC_CTYPE=en_US.UTF-8 py.test tests
+
+ cd "$srcdir/logbook-py2"
+ LC_CTYPE=en_US.UTF-8 py.test2 tests
+}
+
+package_python-logbook() {
+ depends=('python-six')
+
+ cd "${srcdir}/logbook"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+ install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-logbook() {
+ depends=('python2-six')
+
+ cd "${srcdir}/logbook-py2"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+
+ install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
Copied: python-logbook/repos/community-x86_64/PKGBUILD (from rev 139952, python-logbook/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-09-12 06:09:56 UTC (rev 139953)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Tomas Schertel<tschertel at gmail.com>
+
+pkgbase=python-logbook
+pkgname=(python-logbook python2-logbook)
+_pypiname=Logbook
+pkgver=0.10.0
+pkgrel=1
+pkgdesc="Logging sytem for Python that replaces the standard library’s logging module"
+arch=('i686' 'x86_64')
+url="http://packages.python.org/Logbook/index.html"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git'
+ 'python-six' 'python2-six')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("git+https://github.com/mitsuhiko/logbook.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a logbook{,-py2}
+}
+
+build() {
+ cd "$srcdir/logbook"
+ cython logbook/_speedups.pyx
+ python setup.py build
+
+ cd "$srcdir/logbook-py2"
+ cython2 logbook/_speedups.pyx
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/logbook"
+ LC_CTYPE=en_US.UTF-8 py.test tests
+
+ cd "$srcdir/logbook-py2"
+ LC_CTYPE=en_US.UTF-8 py.test2 tests
+}
+
+package_python-logbook() {
+ depends=('python-six')
+
+ cd "${srcdir}/logbook"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+ install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-logbook() {
+ depends=('python2-six')
+
+ cd "${srcdir}/logbook-py2"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+
+ install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list