[arch-commits] Commit in python-pony/repos/community-any (PKGBUILD PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat Mar 21 18:17:51 UTC 2020


    Date: Saturday, March 21, 2020 @ 18:17:50
  Author: ffy00
Revision: 602947

archrelease: copy trunk to community-any

Added:
  python-pony/repos/community-any/PKGBUILD
    (from rev 602946, python-pony/trunk/PKGBUILD)
Deleted:
  python-pony/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   88 ++++++++++++++++++++++++-------------------------------------
 1 file changed, 35 insertions(+), 53 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-21 18:17:44 UTC (rev 602946)
+++ PKGBUILD	2020-03-21 18:17:50 UTC (rev 602947)
@@ -1,53 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-pkgbase=python-pony
-_pkgname=${pkgbase#python-}
-pkgname=(python-$_pkgname python2-$_pkgname)
-pkgver=0.7.11
-pkgrel=1
-pkgdesc='Pony Object Relational Mapper'
-arch=('any')
-url='https://github.com/ponyorm/pony'
-makedepends=('python-setuptools' 'python2-setuptools')
-license=('Apache')
-source=("$url/archive/v$pkgver.tar.gz")
-sha512sums=('88d0ec9b0c66a8e791a135b4eee5c3fcf1df5abca3dc89fd1614021867a51330b1ba5a1735a665c8c710248c3d6f6d2d7275b13df9b04ad86f4f861947c9edb9')
-
-prepare() {
-  cp -a $_pkgname-$pkgver{,-py2}
-}
-
-build() {
-  echo "Building python-$_pkgname $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver
-  python setup.py build
-
-  echo "Building python2-$_pkgname $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  echo "Running tests for python-$_pkgname $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver
-  python setup.py test
-
-  echo "Running tests for python2-$_pkgname $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver-py2
-  python2 setup.py test
-}
-
-package_python-pony() {
-  depends=('python')
-  cd $_pkgname-$pkgver
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-
-package_python2-pony() {
-  depends=('python2')
-  cd $_pkgname-$pkgver-py2
-
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-

Copied: python-pony/repos/community-any/PKGBUILD (from rev 602946, python-pony/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-21 18:17:50 UTC (rev 602947)
@@ -0,0 +1,35 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=pony
+pkgname=python-$_pkgname
+pkgver=0.7.13
+pkgrel=1
+pkgdesc='Pony Object Relational Mapper'
+arch=('any')
+url='https://github.com/ponyorm/pony'
+depends=('python')
+makedepends=('python-setuptools')
+license=('Apache')
+source=("$pkgname-$pkgver::$url/archive/v$pkgver.tar.gz")
+sha512sums=('431d19e3297ba1cdae5313948123d8b8cd71ee8ad5868b8cc2f5447eb435875fdbcdc3768834b9afe22ce8e4c1abaabeb597f3e6974b00aab33aa61e497d6390')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py test
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  rm -rf "$pkgdir"/usr/lib/python*/site-packages/pony/orm/tests
+}
+



More information about the arch-commits mailing list