[arch-commits] Commit in python2-migrate/trunk (3 files)

Sergej Pupykin spupykin at archlinux.org
Thu Aug 7 11:25:37 UTC 2014


    Date: Thursday, August 7, 2014 @ 13:25:37
  Author: spupykin
Revision: 116977

upgpkg: python2-migrate 0.9.1-1

upd

Modified:
  python2-migrate/trunk/PKGBUILD
Deleted:
  python2-migrate/trunk/fix_SchemaVisitor_import_for_sqlalchemy_0.9.patch
  python2-migrate/trunk/fix_exceptions_import_for_sqlalchemy_0.8.patch

---------------------------------------------------+
 PKGBUILD                                          |   53 ++++----------------
 fix_SchemaVisitor_import_for_sqlalchemy_0.9.patch |   12 ----
 fix_exceptions_import_for_sqlalchemy_0.8.patch    |   12 ----
 3 files changed, 11 insertions(+), 66 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-07 11:25:34 UTC (rev 116976)
+++ PKGBUILD	2014-08-07 11:25:37 UTC (rev 116977)
@@ -3,53 +3,22 @@
 # Contributor: Roberto Alsina <ralsina at kde.org>
 
 pkgname=python2-migrate
-pkgver=0.7.2
-pkgrel=6
+pkgver=0.9.1
+pkgrel=1
 pkgdesc="provides a way to deal with database schema changes in SQLAlchemy projects"
 arch=(any)
 url="http://sqlalchemy-migrate.googlecode.com/"
-depends=('python2' 'python2-sqlalchemy' 'python2-decorator' 'python2-tempita')
-makedepends=('python2-setuptools')
+depends=('python2' 'python2-sqlalchemy' 'python2-decorator'
+	 'python2-tempita' 'python2-pip' 'python2-six' 'python2-decorator'
+	 'python2-pbr')
+makedepends=('python2-setuptools' 'git')
 license=('MIT')
-source=(http://sqlalchemy-migrate.googlecode.com/files/sqlalchemy-migrate-$pkgver.tar.gz
-	fix_exceptions_import_for_sqlalchemy_0.8.patch
-        fix_SchemaVisitor_import_for_sqlalchemy_0.9.patch)
-md5sums=('10382fda16f056491e671b5307dd6713'
-         'f0e7a642736d0451709cf2d0684bc8e9'
-         '8957d0b768e8fc70ce8f187758e09109')
+#source=("$pkgname-$pkgver.tar.gz::https://github.com/stackforge/sqlalchemy-migrate/archive/$pkgver.tar.gz")
+source=("$pkgname-$pkgver::git://github.com/stackforge/sqlalchemy-migrate.git#tag=$pkgver")
+md5sums=('SKIP')
 
-prepare() {
-  cd $srcdir/sqlalchemy-migrate-$pkgver
-  patch -p1 <$srcdir/fix_exceptions_import_for_sqlalchemy_0.8.patch
-  patch -p1 <$srcdir/fix_SchemaVisitor_import_for_sqlalchemy_0.9.patch
-}
-
 package() {
-  cd $srcdir/sqlalchemy-migrate-$pkgver
+  cd $srcdir/python2-migrate-$pkgver
   python2 setup.py install --root=$pkgdir
-
-  install -dm0755 $pkgdir/usr/share/licenses/$pkgname/
-  cat >$pkgdir/usr/share/licenses/$pkgname/LICENSE <<EOF
-The MIT License (MIT)
-
-Copyright (c) 2011 Jan Dittberner <jan at dittberner.info>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-EOF
+  install -Dm0755 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }

Deleted: fix_SchemaVisitor_import_for_sqlalchemy_0.9.patch
===================================================================
--- fix_SchemaVisitor_import_for_sqlalchemy_0.9.patch	2014-08-07 11:25:34 UTC (rev 116976)
+++ fix_SchemaVisitor_import_for_sqlalchemy_0.9.patch	2014-08-07 11:25:37 UTC (rev 116977)
@@ -1,12 +0,0 @@
-diff -ruNa sqlalchemy-migrate-0.7.2.orig/migrate/changeset/ansisql.py sqlalchemy-migrate-0.7.2/migrate/changeset/ansisql.py
---- sqlalchemy-migrate-0.7.2.orig/migrate/changeset/ansisql.py	2011-10-28 17:11:43.000000000 +0200
-+++ sqlalchemy-migrate-0.7.2/migrate/changeset/ansisql.py	2014-01-13 13:02:08.456043268 +0100
-@@ -7,7 +7,7 @@
- import StringIO
- 
- import sqlalchemy as sa
--from sqlalchemy.schema import SchemaVisitor
-+from sqlalchemy.sql.base import SchemaVisitor
- from sqlalchemy.engine.default import DefaultDialect
- from sqlalchemy.sql import ClauseElement
- from sqlalchemy.schema import (ForeignKeyConstraint,

Deleted: fix_exceptions_import_for_sqlalchemy_0.8.patch
===================================================================
--- fix_exceptions_import_for_sqlalchemy_0.8.patch	2014-08-07 11:25:34 UTC (rev 116976)
+++ fix_exceptions_import_for_sqlalchemy_0.8.patch	2014-08-07 11:25:37 UTC (rev 116977)
@@ -1,12 +0,0 @@
-diff -ruNa a/migrate/versioning/schema.py b/migrate/versioning/schema.py
---- a/migrate/versioning/schema.py
-+++ b/migrate/versioning/schema.py
-@@ -7,7 +7,7 @@
- from sqlalchemy import (Table, Column, MetaData, String, Text, Integer,
-     create_engine)
- from sqlalchemy.sql import and_
--from sqlalchemy import exceptions as sa_exceptions
-+from sqlalchemy import exc as sa_exceptions
- from sqlalchemy.sql import bindparam
- 
- from migrate import exceptions




More information about the arch-commits mailing list