[arch-commits] Commit in python-structlog/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Apr 9 09:42:57 UTC 2019


    Date: Tuesday, April 9, 2019 @ 09:42:56
  Author: felixonmars
Revision: 450543

upgpkg: python-structlog 19.1.0-2

remove python2 sibling

Modified:
  python-structlog/trunk/PKGBUILD

----------+
 PKGBUILD |   41 ++++++++++-------------------------------
 1 file changed, 10 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-09 09:42:18 UTC (rev 450542)
+++ PKGBUILD	2019-04-09 09:42:56 UTC (rev 450543)
@@ -1,51 +1,30 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-structlog
-pkgname=(python-structlog python2-structlog)
+pkgname=python-structlog
 pkgver=19.1.0
-pkgrel=1
+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")
+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')
 
-prepare() {
-  cp -a structlog-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/structlog-$pkgver
+  cd structlog-$pkgver
   python setup.py build
-
-  cd "$srcdir"/structlog-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/structlog-$pkgver
+  cd structlog-$pkgver
   PYTHONPATH="$PWD"/build/lib pytest
-
-  cd "$srcdir"/structlog-$pkgver-py2
-  PYTHONPATH="$PWD"/build/lib pytest2
 }
 
-package_python-structlog() {
-  depends=('python-six')
-
+package() {
   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
-}



More information about the arch-commits mailing list