[arch-commits] Commit in python-peewee/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Jan 29 17:49:16 UTC 2018


    Date: Monday, January 29, 2018 @ 17:49:15
  Author: felixonmars
Revision: 287842

archrelease: copy trunk to community-testing-x86_64

Added:
  python-peewee/repos/community-testing-x86_64/
  python-peewee/repos/community-testing-x86_64/PKGBUILD
    (from rev 287841, python-peewee/trunk/PKGBUILD)

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Copied: python-peewee/repos/community-testing-x86_64/PKGBUILD (from rev 287841, python-peewee/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-01-29 17:49:15 UTC (rev 287842)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Blackleg <blacklg at openaliasbox.org>
+# Contributor: Nidhogg
+# Contributor: juantascon
+
+pkgbase=python-peewee
+pkgname=('python-peewee' 'python2-peewee')
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="a little orm"
+url="https://pypi.python.org/pypi/peewee/"
+arch=('x86_64')
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2')
+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")
+sha512sums=('8e9ee514fb26042e4cc036a53cd7cbe92143c257f1e4920e2473e4958dd222bcbee7bb3b487267eeb29dd01dd921219d265c2b7b46d3cd34ee7d792e8c56448e')
+
+prepare() {
+  cp -a peewee-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/peewee-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/peewee-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/peewee-$pkgver
+  python runtests.py
+
+  cd "$srcdir"/peewee-$pkgver-py2
+  python2 runtests.py
+}
+
+package_python-peewee() {
+  depends=('python')
+  optdepends=('python-psycopg2: for PostgreSQL database support'
+              'mysql-python: for MySQL database support')
+
+  cd "$srcdir"/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