39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'python-alembic'
|
|
pkgname=python-alembic
|
|
version=1.3.0
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="alembic-${version}"
|
|
build_style=python-module
|
|
pycompile_module="alembic"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-Mako python-SQLAlchemy python-dateutil python-editor"
|
|
checkdepends="${depends} ${depends//python-/python3-}
|
|
python-pytest python3-pytest python-mock tox"
|
|
short_desc="Database migration tool for SQLAlchemy (Python2)"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="MIT"
|
|
homepage="https://bitbucket.org/zzzeek/alembic"
|
|
distfiles="${PYPI_SITE}/a/alembic/alembic-${version}.tar.gz"
|
|
checksum=e6c6a4243e89c8d3e2342a1562b2388f3b524c9cac2fccc4d2c461a1320cc1c1
|
|
|
|
do_check() {
|
|
tox -e py27,py${py3_ver/./}
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-alembic_package() {
|
|
archs=noarch
|
|
pycompile_module="alembic"
|
|
depends="python3-Mako python3-SQLAlchemy python3-dateutil python3-editor"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|