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

Felix Yan felixonmars at archlinux.org
Fri Mar 1 10:50:20 UTC 2019


    Date: Friday, March 1, 2019 @ 10:50:20
  Author: felixonmars
Revision: 437227

upgpkg: python-colander 1.7.0-2

remove python2 sibling

Modified:
  python-colander/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++---------------------
 1 file changed, 7 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-01 10:46:05 UTC (rev 437226)
+++ PKGBUILD	2019-03-01 10:50:20 UTC (rev 437227)
@@ -1,45 +1,31 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-colander
-pkgname=(python-colander python2-colander)
+pkgname=python-colander
 pkgver=1.7.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A simple schema-based serialization and deserialization library"
 url="https://docs.pylonsproject.org/projects/colander/en/latest/"
 license=('BSD')
 arch=('x86_64')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-translationstring'
-             'python2-translationstring' 'python-iso8601' 'python2-iso8601' 'python2-enum34')
-checkdepends=('python-nose' 'python2-nose')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/Pylons/colander/archive/$pkgver.tar.gz")
+depends=('python-translationstring' 'python-iso8601')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Pylons/colander/archive/$pkgver.tar.gz")
 sha512sums=('6f1862c8d4eb615365fe9b833ea679711e4af9fea8060d3da05ca31dca67ba70fef5c6a93ea3dd7d006cf894d465431296fc55902712ac8b5f95463ec4a55d9e')
 
 build() {
   cd colander-$pkgver
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
   cd colander-$pkgver
   python setup.py nosetests
-  python2 setup.py nosetests
 }
 
-package_python-colander() {
-  depends=('python-translationstring' 'python-iso8601')
-
+package() {
   cd colander-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 
   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-colander() {
-  depends=('python2-translationstring' 'python2-iso8601' 'python2-enum34')
-
-  cd colander-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}



More information about the arch-commits mailing list