2014-05-13 08:21:22 +08:00
|
|
|
# Maintainer: Manuel 'UtG' <utg.chakra.linux[at]gmail[dot]com>
|
2014-02-02 07:51:01 +08:00
|
|
|
# Contributor: Julien Humbert <julroy67 at gmail dot com>
|
|
|
|
# Contributor: Angel 'angvp' Velasquez <angvp at archlinux dot com.ve>
|
|
|
|
|
|
|
|
pkgbase=python-sqlalchemy
|
|
|
|
pkgname=('python3-sqlalchemy' 'python2-sqlalchemy')
|
2016-03-17 05:36:13 +08:00
|
|
|
pkgver=1.0.12
|
2014-09-07 02:06:09 +08:00
|
|
|
pkgrel=1
|
2014-02-02 07:51:01 +08:00
|
|
|
pkgdesc="Python SQL toolkit and Object Relational Mapper"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://www.sqlalchemy.org/"
|
2014-05-13 08:21:22 +08:00
|
|
|
license=('MIT')
|
2016-03-17 05:36:13 +08:00
|
|
|
makedepends=('python3-setuptools' 'python2-setuptools')
|
2014-05-13 08:21:22 +08:00
|
|
|
checkdepends=('python2-pytest' 'python3-pytest' 'python2-mock' 'python3-mock')
|
2014-02-02 07:51:01 +08:00
|
|
|
source=("https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz")
|
2016-03-17 05:36:13 +08:00
|
|
|
md5sums=('6d19ef29883bbebdcac6613cf391cac4')
|
2014-02-02 07:51:01 +08:00
|
|
|
|
2014-05-13 08:21:22 +08:00
|
|
|
prepare() {
|
2014-02-02 07:51:01 +08:00
|
|
|
cp -a SQLAlchemy-$pkgver SQLAlchemy2-$pkgver
|
2014-05-13 08:21:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2014-02-02 07:51:01 +08:00
|
|
|
cd SQLAlchemy-$pkgver
|
|
|
|
python3 setup.py build
|
2014-05-13 08:21:22 +08:00
|
|
|
|
2014-02-02 07:51:01 +08:00
|
|
|
cd ../SQLAlchemy2-$pkgver
|
|
|
|
python2 setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2014-05-13 08:21:22 +08:00
|
|
|
|
|
|
|
check() {
|
2014-02-02 07:51:01 +08:00
|
|
|
cd SQLAlchemy-${pkgver}
|
2014-05-13 08:21:22 +08:00
|
|
|
python3 setup.py test
|
|
|
|
|
|
|
|
cd ../SQLAlchemy2-$pkgver
|
|
|
|
python2 setup.py test
|
|
|
|
}
|
2014-02-02 07:51:01 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python3-sqlalchemy() {
|
|
|
|
pkgdesc='Python SQL toolkit and Object Relational Mapper'
|
|
|
|
depends=('python3')
|
|
|
|
optdepends=('python3-psycopg2: connect to PostgreSQL database')
|
|
|
|
|
|
|
|
cd SQLAlchemy-${pkgver}
|
|
|
|
python3 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')
|
|
|
|
provides=('python-sqlalchemy')
|
|
|
|
replaces=('python-sqlalchemy')
|
|
|
|
conflicts=('python-sqlalchemy')
|
|
|
|
|
|
|
|
cd SQLAlchemy2-$pkgver
|
|
|
|
python2 setup.py install --root="$pkgdir"
|
|
|
|
install -D -m644 LICENSE \
|
|
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
2014-04-12 18:03:35 +08:00
|
|
|
}
|