From ed74cba852097f1e31f74ee706f7fad5a5f2f374 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 5 Aug 2014 02:45:05 +0200 Subject: [PATCH] New package: python-sqlalchemy-migrate-0.9.1 with python3.4 subpkg; replaces sqlalchemy-migrate Revbump buildbot. --- srcpkgs/buildbot/template | 4 +- srcpkgs/python-sqlalchemy-migrate/template | 67 ++++++++++++++++++++++ srcpkgs/python3.4-sqlalchemy-migrate | 1 + srcpkgs/sqlalchemy-migrate/template | 16 ------ 4 files changed, 70 insertions(+), 18 deletions(-) create mode 100644 srcpkgs/python-sqlalchemy-migrate/template create mode 120000 srcpkgs/python3.4-sqlalchemy-migrate delete mode 100644 srcpkgs/sqlalchemy-migrate/template diff --git a/srcpkgs/buildbot/template b/srcpkgs/buildbot/template index fbe1135765..413a196fee 100644 --- a/srcpkgs/buildbot/template +++ b/srcpkgs/buildbot/template @@ -1,11 +1,11 @@ # Template file for 'buildbot' pkgname=buildbot version=0.8.8 -revision=3 +revision=4 noarch="yes" build_style=python-module hostmakedepends="python" -makedepends="python python-Jinja2 sqlalchemy-migrate python-simplejson Twisted" +makedepends="python python-Jinja2 python-sqlalchemy-migrate python-simplejson Twisted" depends="${makedepends}" pycompile_module="buildbot" short_desc="A system to automate the compile/test cycle" diff --git a/srcpkgs/python-sqlalchemy-migrate/template b/srcpkgs/python-sqlalchemy-migrate/template new file mode 100644 index 0000000000..5cbe5173e9 --- /dev/null +++ b/srcpkgs/python-sqlalchemy-migrate/template @@ -0,0 +1,67 @@ +# Template file for 'python-sqlalchemy-migrate' +pkgname=python-sqlalchemy-migrate +version=0.9.1 +revision=1 +noarch=yes +wrksrc="${pkgname#*-}-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends=" + python-pbr python3.4-pbr python-SQLAlchemy python3.4-SQLAlchemy + python-decorator python3.4-decorator python-six python3.4-six + python-tempita python3.4-tempita" +depends="python python-SQLAlchemy python-decorator python-six python-tempita" +replaces="sqlalchemy-migrate>=0" +pycompile_module="migrate" +short_desc="Database schema migration for SQLAlchemy (Python2)" +maintainer="Alessio Sergi " +homepage="https://github.com/stackforge/sqlalchemy-migrate" +license="MIT" +distfiles="https://pypi.python.org/packages/source/s/sqlalchemy-migrate/sqlalchemy-migrate-${version}.tar.gz" +checksum=16e327c9642ca4c99a70dcac3b39aeb821edaf5214834b47fb0a89bac44af23b + +post_extract() { + cp -a ${wrksrc} /tmp/python2.7-build + cp -a ${wrksrc} /tmp/python3.4-build + mv /tmp/python{2.7,3.4}-build ${wrksrc} +} + +pre_build() { + cd ${wrksrc}/python3.4-build + sed -i 's,migrate =,migrate3 =,;s,migrate-repository =,migrate-repository3 =,' setup.cfg + find . -type f -name '*.py' -exec sed -i -e '/^#!/s,python$,&3.4,' {} + +} + +do_build() { + cd ${wrksrc}/python2.7-build + python setup.py build + + cd ${wrksrc}/python3.4-build + python3.4 setup.py build +} + +do_install() { + cd ${wrksrc}/python2.7-build + python setup.py install --root=${DESTDIR} + + cd ${wrksrc}/python3.4-build + python3.4 setup.py install --root=${DESTDIR} +} + +post_install() { + vlicense COPYING LICENSE +} + +python3.4-sqlalchemy-migrate_package() { + noarch=yes + depends="python python3.4-SQLAlchemy python3.4-decorator python3.4-six python3.4-tempita" + pycompile_version="3.4" + pycompile_module="migrate" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/bin/migrate*3 + vmove usr/lib/python3.4 + vlicense ${wrksrc}/COPYING LICENSE + } +} diff --git a/srcpkgs/python3.4-sqlalchemy-migrate b/srcpkgs/python3.4-sqlalchemy-migrate new file mode 120000 index 0000000000..b984188f63 --- /dev/null +++ b/srcpkgs/python3.4-sqlalchemy-migrate @@ -0,0 +1 @@ +python-sqlalchemy-migrate \ No newline at end of file diff --git a/srcpkgs/sqlalchemy-migrate/template b/srcpkgs/sqlalchemy-migrate/template deleted file mode 100644 index 6013e1a737..0000000000 --- a/srcpkgs/sqlalchemy-migrate/template +++ /dev/null @@ -1,16 +0,0 @@ -# Template file for 'sqlalchemy-migrate' -pkgname=sqlalchemy-migrate -version=0.7.2 -revision=3 -build_style=python-module -noarch="yes" -pycompile_module="migrate" -hostmakedepends="python-setuptools" -makedepends="python-setuptools python-sqlalchemy python-decorator python-tempita" -depends="python python-sqlalchemy python-decorator python-tempita" -short_desc="SQLAlchemy Schema Migration Tools" -maintainer="Juan RP " -homepage="https://code.google.com/p/sqlalchemy-migrate/" -license="MIT" -distfiles="https://sqlalchemy-migrate.googlecode.com/files/$pkgname-$version.tar.gz" -checksum=7f55c768ee26f143fedb11b365a4c57c3bbdb5211e049c7f04b8ae8107c28333