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

Antonio Rojas arojas at archlinux.org
Wed Jan 15 14:15:33 UTC 2020


    Date: Wednesday, January 15, 2020 @ 14:15:33
  Author: arojas
Revision: 552633

Drop python2

Modified:
  python-cachetools/trunk/PKGBUILD

----------+
 PKGBUILD |   34 +++++++---------------------------
 1 file changed, 7 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-15 14:12:44 UTC (rev 552632)
+++ PKGBUILD	2020-01-15 14:15:33 UTC (rev 552633)
@@ -1,50 +1,30 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-cachetools
-pkgname=(python-cachetools python2-cachetools)
+pkgname=python-cachetools
 pkgver=3.1.1
-pkgrel=3
+pkgrel=4
 pkgdesc="Extensible memoizing collections and decorators"
 url="https://github.com/tkem/cachetools"
 license=('MIT')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/tkem/cachetools/archive/v$pkgver.tar.gz")
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tkem/cachetools/archive/v$pkgver.tar.gz")
 sha512sums=('3765f2a4dbca7fa1da92be6f68f3d4c1202b558ca6d7a5f05b8bb9c13cbb9ebeef19d4370b29d0239dc606656ce74b3db4d3df5d5ae36ce323d94eae3f18aedc')
 
-prepare() {
-  cp -a cachetools-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/cachetools-$pkgver
   python setup.py build
-
-  cd "$srcdir"/cachetools-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/cachetools-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/cachetools-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-cachetools() {
-  depends=('python')
-
+package() {
   cd cachetools-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-cachetools() {
-  depends=('python2')
-
-  cd cachetools-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list