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

Jelle van der Waa jelle at archlinux.org
Fri Apr 10 21:06:00 UTC 2020


    Date: Friday, April 10, 2020 @ 21:06:00
  Author: jelle
Revision: 613182

Remove python2 package

Modified:
  python-alembic/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++----------------------------
 1 file changed, 5 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-10 20:59:16 UTC (rev 613181)
+++ PKGBUILD	2020-04-10 21:06:00 UTC (rev 613182)
@@ -2,8 +2,7 @@
 # Contributor: googol <googol at posteo.de>
 # Contributor: Oliver Mangold <o.mangold at gmail dot com>
 
-pkgbase=python-alembic
-pkgname=('python-alembic' 'python2-alembic')
+pkgname=python-alembic
 pkgver=1.4.2
 pkgrel=1
 pkgdesc='Lightweight database migration tool for usage with SQLAlchemy'
@@ -10,9 +9,9 @@
 url='https://bitbucket.org/zzzeek/alembic'
 arch=('any')
 license=('MIT')
-makedepends=('python-setuptools' 'python-mako' 'python-sqlalchemy' 'python-editor' 'python-dateutil'
-             'python2-setuptools' 'python2-mako' 'python2-sqlalchemy' 'python2-editor' 'python2-dateutil')
-checkdepends=('python-pytest' 'python-mock' 'python2-pytest' 'python2-mock')
+depends=('python' 'python-mako' 'python-sqlalchemy' 'python-editor' 'python-dateutil')
+makedepends=('python-setuptools' 'python-mako' 'python-sqlalchemy' 'python-editor' 'python-dateutil')
+checkdepends=('python-pytest' 'python-mock')
 source=(https://pypi.org/packages/source/a/alembic/alembic-${pkgver}.tar.gz{,.asc})
 sha512sums=('82bdfe442c19033aa2b802ec49edd13ed265c00a2b5a048490a83ffa8e53587c56a90b64d554e746a9189923419c528482cb7a7c950c210e0de47b32fa7c270e'
             'SKIP')
@@ -20,19 +19,11 @@
         'SKIP')
 validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') # Michael Bayer <classic at zzzcomputing.com>
 
-prepare() {
-  cp -a alembic-${pkgver}{,-py2}
-}
-
 build() {
   echo 'Building python...'
   (cd alembic-${pkgver}
     python setup.py build
   )
-  echo 'Building python2...'
-  (cd alembic-${pkgver}-py2
-    python2 setup.py build
-  )
 }
 
 check() {
@@ -40,14 +31,9 @@
   (cd alembic-${pkgver}
     py.test
   )
-  echo 'Checking python2...'
-  (cd alembic-${pkgver}-py2
-    py.test2
-  )
 }
 
-package_python-alembic() {
-  depends=('python' 'python-mako' 'python-sqlalchemy' 'python-editor' 'python-dateutil')
+package() {
   cd alembic-${pkgver}
   python setup.py install --root="${pkgdir}" --prefix=/usr -O1 --skip-build
   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
@@ -54,13 +40,4 @@
   install -Dm 644 README.rst CHANGES -t "${pkgdir}/usr/share/doc/${pkgname}"
 }
 
-package_python2-alembic() {
-  depends=('python2' 'python2-mako' 'python2-sqlalchemy' 'python2-editor' 'python2-dateutil')
-  cd alembic-${pkgver}-py2
-  python2 setup.py install --root="${pkgdir}" --prefix=/usr -O1 --skip-build
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm 644 README.rst CHANGES -t "${pkgdir}/usr/share/doc/${pkgname}"
-  mv "${pkgdir}/usr/bin/alembic"{,2}
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list