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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 13:13:48 UTC 2018


    Date: Saturday, June 30, 2018 @ 13:13:48
  Author: felixonmars
Revision: 348164

archrelease: copy trunk to community-staging-x86_64

Added:
  python-sqlalchemy/repos/community-staging-x86_64/
  python-sqlalchemy/repos/community-staging-x86_64/PKGBUILD
    (from rev 348162, python-sqlalchemy/trunk/PKGBUILD)

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

Copied: python-sqlalchemy/repos/community-staging-x86_64/PKGBUILD (from rev 348162, python-sqlalchemy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-30 13:13:48 UTC (rev 348164)
@@ -0,0 +1,62 @@
+# $Id$ 
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sébastien Luttringer <seblu at aur.archlinux.org>
+
+pkgbase=python-sqlalchemy
+pkgname=('python-sqlalchemy' 'python2-sqlalchemy')
+pkgver=1.2.9
+pkgrel=2
+arch=('x86_64') # python2 package contain .so
+url="http://www.sqlalchemy.org/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-xdist' 'python2-pytest-xdist' 'python-mock' 'python2-mock')
+source=("https://pypi.io/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz"{,.asc})
+validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1')
+sha512sums=('88ef57b9e456d7047bd7b5fd9607c87a473a9917d662960b0614fbfc40891002309eda55e66e42a6a280c6d6e7e8e6921349901a19c1caaedace2d532b32af22'
+            'SKIP')
+
+prepare() {
+  cp -a SQLAlchemy-$pkgver SQLAlchemy2-$pkgver
+}
+
+build() {
+  cd "$srcdir"/SQLAlchemy-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/SQLAlchemy2-$pkgver
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/SQLAlchemy-$pkgver
+  python setup.py pytest
+ 
+  cd "$srcdir"/SQLAlchemy2-$pkgver  
+  python2 setup.py pytest
+}
+
+package_python-sqlalchemy() {
+  pkgdesc='Python SQL toolkit and Object Relational Mapper'
+  depends=('python')
+  optdepends=('python-psycopg2: connect to PostgreSQL database')
+
+  cd SQLAlchemy-$pkgver
+  python setup.py install --root="${pkgdir}"
+  install -D -m644 LICENSE \
+	  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-sqlalchemy() {
+  pkgdesc='Python 2 SQL toolkit and Object Relational Mapper'
+  depends=('python2')
+  optdepends=('python2-psycopg2: connect to PostgreSQL database')
+
+  cd SQLAlchemy2-$pkgver
+  python2 setup.py install --root="$pkgdir"
+  install -D -m644 LICENSE \
+	  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 ft=sh et:



More information about the arch-commits mailing list