Date: Wednesday, September 5, 2018 @ 21:42:49 Author: felixonmars Revision: 377060
archrelease: copy trunk to community-any Added: python-structlog/repos/community-any/PKGBUILD (from rev 377059, python-structlog/trunk/PKGBUILD) Deleted: python-structlog/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-09-05 21:42:32 UTC (rev 377059) +++ PKGBUILD 2018-09-05 21:42:49 UTC (rev 377060) @@ -1,52 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-structlog -pkgname=(python-structlog python2-structlog) -pkgver=18.1.0 -pkgrel=2 -pkgdesc="Structured Logging for Python" -url="http://www.structlog.org" -license=('Apache') -arch=('any') -makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six') -checkdepends=('python-pytest' 'python2-pytest' 'python-freezegun' 'python2-freezegun' - 'python-pretend' 'python2-pretend' 'python-simplejson' 'python2-simplejson' - 'python-twisted' 'python2-twisted' 'python-rapidjson' 'python-greenlet' - 'python2-greenlet') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/hynek/structlog/archive/$pkgver.tar.gz") -sha512sums=('01ea560f16979312acd168c08994007e1116de470cf933a1524033884058114999f815cf3061b2d080c95453c9b628ed7747ea5d283bb2fcda7180edd977c09b') - -prepare() { - cp -a structlog-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/structlog-$pkgver - python setup.py build - - cd "$srcdir"/structlog-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/structlog-$pkgver - PYTHONPATH="$PWD"/build/lib pytest - - cd "$srcdir"/structlog-$pkgver-py2 - PYTHONPATH="$PWD"/build/lib pytest2 -} - -package_python-structlog() { - depends=('python-six') - - cd structlog-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 -} - -package_python2-structlog() { - depends=('python2-six') - - cd structlog-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -} Copied: python-structlog/repos/community-any/PKGBUILD (from rev 377059, python-structlog/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-09-05 21:42:49 UTC (rev 377060) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-structlog +pkgname=(python-structlog python2-structlog) +pkgver=18.2.0 +pkgrel=1 +pkgdesc="Structured Logging for Python" +url="http://www.structlog.org" +license=('Apache') +arch=('any') +makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six') +checkdepends=('python-pytest' 'python2-pytest' 'python-freezegun' 'python2-freezegun' + 'python-pretend' 'python2-pretend' 'python-simplejson' 'python2-simplejson' + 'python-twisted' 'python2-twisted' 'python-rapidjson' 'python-greenlet' + 'python2-greenlet') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/hynek/structlog/archive/$pkgver.tar.gz") +sha512sums=('7bfeec27b1e5444d4c8529f27be9954f39dff2d98d68618df139b8491262de6ad0bd76e56b17c844fa0fa962ba768e54888e888b6f63770f58353563cf8e94ad') + +prepare() { + cp -a structlog-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/structlog-$pkgver + python setup.py build + + cd "$srcdir"/structlog-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/structlog-$pkgver + PYTHONPATH="$PWD"/build/lib pytest + + cd "$srcdir"/structlog-$pkgver-py2 + PYTHONPATH="$PWD"/build/lib pytest2 +} + +package_python-structlog() { + depends=('python-six') + + cd structlog-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-structlog() { + depends=('python2-six') + + cd structlog-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +}