[arch-commits] Commit in python-sqlalchemy-migrate/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Oct 23 13:00:32 UTC 2019
Date: Wednesday, October 23, 2019 @ 13:00:31
Author: felixonmars
Revision: 518718
upgpkg: python-sqlalchemy-migrate 0.13.0-1
Modified:
python-sqlalchemy-migrate/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-23 12:28:58 UTC (rev 518717)
+++ PKGBUILD 2019-10-23 13:00:31 UTC (rev 518718)
@@ -2,7 +2,7 @@
pkgbase=python-sqlalchemy-migrate
pkgname=(python-sqlalchemy-migrate python2-sqlalchemy-migrate)
-pkgver=0.12.0
+pkgver=0.13.0
pkgrel=1
pkgdesc="Database schema migration for SQLAlchemy"
arch=('any')
@@ -11,33 +11,29 @@
makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-sqlalchemy'
'python2-sqlalchemy' 'python-decorator' 'python2-decorator' 'python-sqlparse'
'python2-sqlparse' 'python-tempita' 'python2-tempita')
-checkdepends=('python-mock' 'python2-mock' 'python-testrepository' 'python2-testrepository'
- 'python-scripttest' 'python2-scripttest' 'python-ibm-db-sa' 'python2-ibm-db-sa'
- 'mysql-python' 'python2-psycopg2')
+checkdepends=('python-mock' 'python-testrepository' 'python-scripttest' 'python-ibm-db-sa')
options=('!emptydirs')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/sqlalchemy-migrate/archive/$pkgver.tar.gz")
-sha512sums=('95f3a705bd119ea27b17607c2adfd5f88b979640fe5ed1b309d3aea369b63feb205491e3a8a749a48d62c1b5430aa91658b82faf35f26bd8d95b6c15b2a69fde')
+source=("$pkgbase-$pkgver.tar.gz::https://opendev.org/x/sqlalchemy-migrate/archive/$pkgver.tar.gz")
+sha512sums=('3ae1140cb17ea24db7423a8cb62d667620333c8ed559f6bfd6eecfb35f829c9f9c4918f41f8f723d89bcb3c51d6b803e5cbdc30cb485c8cdfc140caaf1d981f0')
prepare() {
- cp -a sqlalchemy-migrate-$pkgver{,-py2}
+ cp -a sqlalchemy-migrate{,-py2}
export PBR_VERSION=$pkgver
}
build() {
- cd "$srcdir"/sqlalchemy-migrate-$pkgver
+ cd "$srcdir"/sqlalchemy-migrate
python setup.py build
- cd "$srcdir"/sqlalchemy-migrate-$pkgver-py2
+ cd "$srcdir"/sqlalchemy-migrate-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/sqlalchemy-migrate-$pkgver
- python setup.py testr || warning "Tests failed"
-
- cd "$srcdir"/sqlalchemy-migrate-$pkgver-py2
- PYTHON=python2 python2 setup.py testr || warning "Tests failed"
+ cd "$srcdir"/sqlalchemy-migrate
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" python setup.py testr || warning "Tests failed"
}
package_python-sqlalchemy-migrate() {
@@ -44,7 +40,7 @@
depends=('python-six' 'python-pbr' 'python-sqlalchemy' 'python-decorator' 'python-sqlparse'
'python-tempita')
- cd "$srcdir"/sqlalchemy-migrate-$pkgver
+ cd "$srcdir"/sqlalchemy-migrate
python setup.py install --root="$pkgdir" --optimize=1
}
@@ -52,7 +48,7 @@
depends=('python2-six' 'python2-pbr' 'python2-sqlalchemy' 'python2-decorator' 'python2-sqlparse'
'python2-tempita')
- cd "$srcdir"/sqlalchemy-migrate-$pkgver-py2
+ cd "$srcdir"/sqlalchemy-migrate-py2
python2 setup.py install --root="$pkgdir" --optimize=1
mv "$pkgdir"/usr/bin/migrate{,2}
More information about the arch-commits
mailing list