[arch-commits] Commit in python-sqlalchemy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jan 6 08:40:18 UTC 2018
Date: Saturday, January 6, 2018 @ 08:40:17
Author: felixonmars
Revision: 279420
archrelease: copy trunk to community-testing-x86_64
Added:
python-sqlalchemy/repos/community-testing-x86_64/
python-sqlalchemy/repos/community-testing-x86_64/PKGBUILD
(from rev 279419, python-sqlalchemy/trunk/PKGBUILD)
----------+
PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
Copied: python-sqlalchemy/repos/community-testing-x86_64/PKGBUILD (from rev 279419, python-sqlalchemy/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2018-01-06 08:40:17 UTC (rev 279420)
@@ -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.0
+pkgrel=1
+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=('0d9e57147b022955ad20da5b280e8734ba4be9585301b6e8fb9b96797d87d8707f95cb58afbaf310ec8033defffc4d794bec1d5089ca016b8dd9497e292881e3'
+ '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