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

Felix Yan felixonmars at archlinux.org
Tue Apr 2 12:42:47 UTC 2019


    Date: Tuesday, April 2, 2019 @ 12:42:45
  Author: felixonmars
Revision: 447671

upgpkg: python-sortedcontainers 2.1.0-2

remove python2 sibling

Modified:
  python-sortedcontainers/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++--------------------------
 1 file changed, 9 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-02 12:39:22 UTC (rev 447670)
+++ PKGBUILD	2019-04-02 12:42:45 UTC (rev 447671)
@@ -1,51 +1,34 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-sortedcontainers
-pkgname=('python-sortedcontainers' 'python2-sortedcontainers')
+pkgname=python-sortedcontainers
 pkgver=2.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python Sorted Container Types: SortedList, SortedDict, and SortedSet"
 arch=('any')
 license=('Apache')
 url="http://www.grantjenks.com/docs/sortedcontainers/"
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/grantjenks/python-sortedcontainers/archive/v$pkgver.tar.gz")
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/grantjenks/python-sortedcontainers/archive/v$pkgver.tar.gz")
 sha512sums=('1c56daea5d491dbeea9c677677a79ef5c4805325ea3d5da97005cd3b269003a99459550a793dfe65820f152c774371472ba471a7daf61c9d97b36744bafb013b')
 
 prepare() {
   # Don't use tox
   sed -i '/tests_require/d' python-sortedcontainers-$pkgver/setup.py
-
-  cp -a python-sortedcontainers-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/python-sortedcontainers-$pkgver
+  cd python-sortedcontainers-$pkgver
   python setup.py build
-
-  cd "$srcdir"/python-sortedcontainers-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/python-sortedcontainers-$pkgver
+  cd python-sortedcontainers-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/python-sortedcontainers-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-sortedcontainers() {
-  depends=('python')
-
+package() {
   cd python-sortedcontainers-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-sortedcontainers() {
-  depends=('python2')
-
-  cd python-sortedcontainers-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}


More information about the arch-commits mailing list