[arch-commits] Commit in python-alembic/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:13:29 UTC 2019
Date: Saturday, October 26, 2019 @ 04:13:28
Author: felixonmars
Revision: 519941
archrelease: copy trunk to community-staging-any
Added:
python-alembic/repos/community-staging-any/
python-alembic/repos/community-staging-any/PKGBUILD
(from rev 519940, python-alembic/trunk/PKGBUILD)
----------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
Copied: python-alembic/repos/community-staging-any/PKGBUILD (from rev 519940, python-alembic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 04:13:28 UTC (rev 519941)
@@ -0,0 +1,64 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: googol <googol at posteo.de>
+# Contributor: Oliver Mangold <o.mangold at gmail dot com>
+
+pkgbase=python-alembic
+pkgname=('python-alembic' 'python2-alembic')
+pkgver=1.1.0
+pkgrel=2
+pkgdesc='Lightweight database migration tool for usage with SQLAlchemy'
+url='https://bitbucket.org/zzzeek/alembic'
+arch=('any')
+license=('MIT')
+makedepends=('python-setuptools' 'python-mako' 'python-sqlalchemy' 'python-editor' 'python-dateutil'
+ 'python2-setuptools' 'python2-mako' 'python2-sqlalchemy' 'python2-editor' 'python2-dateutil')
+checkdepends=('python-pytest' 'python-mock' 'python2-pytest' 'python2-mock')
+source=(https://pypi.org/packages/source/a/alembic/alembic-${pkgver}.tar.gz{,.asc})
+sha512sums=('9ddd5b64048aba67c03effa8839eec2ba486295f86223f281c345ef95077c3dc205773a2a4367c5204ca7789e3f05235de9ed6bc0d200f51515bf3ce5ed8e447'
+ 'SKIP')
+validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') # Michael Bayer <classic at zzzcomputing.com>
+
+prepare() {
+ cp -a alembic-${pkgver}{,-py2}
+}
+
+build() {
+ msg2 'Building python...'
+ (cd alembic-${pkgver}
+ python setup.py build
+ )
+ msg2 'Building python2...'
+ (cd alembic-${pkgver}-py2
+ python2 setup.py build
+ )
+}
+
+check() {
+ msg2 'Checking python...'
+ (cd alembic-${pkgver}
+ py.test
+ )
+ msg2 'Checking python2...'
+ (cd alembic-${pkgver}-py2
+ py.test2
+ )
+}
+
+package_python-alembic() {
+ depends=('python' 'python-mako' 'python-sqlalchemy' 'python-editor' 'python-dateutil')
+ cd alembic-${pkgver}
+ python setup.py install --root="${pkgdir}" --prefix=/usr -O1 --skip-build
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 README.rst CHANGES -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+package_python2-alembic() {
+ depends=('python2' 'python2-mako' 'python2-sqlalchemy' 'python2-editor' 'python2-dateutil')
+ cd alembic-${pkgver}-py2
+ python2 setup.py install --root="${pkgdir}" --prefix=/usr -O1 --skip-build
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 README.rst CHANGES -t "${pkgdir}/usr/share/doc/${pkgname}"
+ mv "${pkgdir}/usr/bin/alembic"{,2}
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list