[arch-commits] Commit in python-structlog/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Apr 9 09:43:15 UTC 2019
Date: Tuesday, April 9, 2019 @ 09:43:14
Author: felixonmars
Revision: 450544
archrelease: copy trunk to community-any
Added:
python-structlog/repos/community-any/PKGBUILD
(from rev 450543, python-structlog/trunk/PKGBUILD)
Deleted:
python-structlog/repos/community-any/PKGBUILD
----------+
PKGBUILD | 81 ++++++++++++++++++++++---------------------------------------
1 file changed, 30 insertions(+), 51 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-09 09:42:56 UTC (rev 450543)
+++ PKGBUILD 2019-04-09 09:43:14 UTC (rev 450544)
@@ -1,51 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-structlog
-pkgname=(python-structlog python2-structlog)
-pkgver=19.1.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=('7d2705afab3ab2415e4ce636061572e1dce57b612d45e34b5f5b55947d180b8b69f97c084ce9e6e79fde270daab8506618fe7da881f2db1fd3a781b240b8a6c5')
-
-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 450543, python-structlog/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-04-09 09:43:14 UTC (rev 450544)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-structlog
+pkgver=19.1.0
+pkgrel=2
+pkgdesc="Structured Logging for Python"
+url="http://www.structlog.org"
+license=('Apache')
+arch=('any')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-freezegun' 'python-pretend' 'python-simplejson'
+ 'python-twisted' 'python-rapidjson' 'python-greenlet')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hynek/structlog/archive/$pkgver.tar.gz")
+sha512sums=('7d2705afab3ab2415e4ce636061572e1dce57b612d45e34b5f5b55947d180b8b69f97c084ce9e6e79fde270daab8506618fe7da881f2db1fd3a781b240b8a6c5')
+
+build() {
+ cd structlog-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd structlog-$pkgver
+ PYTHONPATH="$PWD"/build/lib pytest
+}
+
+package() {
+ cd structlog-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list