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

Felix Yan felixonmars at archlinux.org
Wed Mar 27 11:18:03 UTC 2019


    Date: Wednesday, March 27, 2019 @ 11:18:02
  Author: felixonmars
Revision: 444181

upgpkg: python-peewee 3.9.3-2

remove python2 sibling

Modified:
  python-peewee/trunk/PKGBUILD

----------+
 PKGBUILD |   48 ++++++++++++------------------------------------
 1 file changed, 12 insertions(+), 36 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-27 11:15:44 UTC (rev 444180)
+++ PKGBUILD	2019-03-27 11:18:02 UTC (rev 444181)
@@ -3,57 +3,33 @@
 # Contributor: Nidhogg
 # Contributor: juantascon
 
-pkgbase=python-peewee
-pkgname=('python-peewee' 'python2-peewee')
+pkgname=python-peewee
 pkgver=3.9.3
-pkgrel=1
+pkgrel=2
 pkgdesc="a little orm"
 url="https://pypi.python.org/pypi/peewee/"
 arch=('x86_64')
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'sqlite')
-checkdepends=('python-apsw' 'python2-apsw' 'python-flask' 'python2-flask'
-              'python-psycopg2' 'python2-psycopg2')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/coleifer/peewee/archive/$pkgver.tar.gz")
+depends=('python' 'sqlite')
+optdepends=('python-psycopg2: for PostgreSQL database support'
+            'mysql-python: for MySQL database support')
+makedepends=('python-setuptools' 'cython')
+checkdepends=('python-apsw' 'python-flask' 'python-psycopg2')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/coleifer/peewee/archive/$pkgver.tar.gz")
 sha512sums=('de7080104bad7c55cd8a0ee50bf86a1c5617870a1425f57122729b3810078f0adb70261e3c870e117bccc5f558576418d163677d174b53a7a4f079a0033df27a')
 
-prepare() {
-  cp -a peewee-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/peewee-$pkgver
+  cd peewee-$pkgver
   python setup.py build
-
-  cd "$srcdir"/peewee-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/peewee-$pkgver
+  cd peewee-$pkgver
   python runtests.py
-
-  cd "$srcdir"/peewee-$pkgver-py2
-  python2 runtests.py
 }
 
-package_python-peewee() {
-  depends=('python' 'sqlite')
-  optdepends=('python-psycopg2: for PostgreSQL database support'
-              'mysql-python: for MySQL database support')
-
-  cd "$srcdir"/peewee-$pkgver
+package() {
+  cd peewee-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-peewee() {
-  depends=('python2')
-  optdepends=('python2-psycopg2: for PostgreSQL database support')
-
-  cd "$srcdir"/peewee-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  mv "$pkgdir"/usr/bin/pwiz{,2}.py
-}


More information about the arch-commits mailing list