From owner-svn-ports-head@freebsd.org Tue Feb 7 20:31:43 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55E13CD5382; Tue, 7 Feb 2017 20:31:43 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0D7B61D27; Tue, 7 Feb 2017 20:31:42 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v17KVgGn059402; Tue, 7 Feb 2017 20:31:42 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v17KVfCg059398; Tue, 7 Feb 2017 20:31:41 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201702072031.v17KVfCg059398@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Tue, 7 Feb 2017 20:31:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433589 - in head/databases/py-dbutils: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2017 20:31:43 -0000 Author: sunpoet Date: Tue Feb 7 20:31:41 2017 New Revision: 433589 URL: https://svnweb.freebsd.org/changeset/ports/433589 Log: Update to 1.2 - Relax USES=python Changes: https://cito.github.io/DBUtils/RelNotes-1.2.html Added: head/databases/py-dbutils/files/ head/databases/py-dbutils/files/patch-DBUtils-Examples-DBUtilsExample.py (contents, props changed) Modified: head/databases/py-dbutils/Makefile head/databases/py-dbutils/distinfo Modified: head/databases/py-dbutils/Makefile ============================================================================== --- head/databases/py-dbutils/Makefile Tue Feb 7 20:31:36 2017 (r433588) +++ head/databases/py-dbutils/Makefile Tue Feb 7 20:31:41 2017 (r433589) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= dbutils -PORTVERSION= 1.1.1 +PORTVERSION= 1.2 CATEGORIES= databases python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,7 +14,7 @@ COMMENT= Providing solid, persistent, an LICENSE= MIT NO_ARCH= yes -USES= python:2 +USES= python USE_PYTHON= autoplist distutils .include Modified: head/databases/py-dbutils/distinfo ============================================================================== --- head/databases/py-dbutils/distinfo Tue Feb 7 20:31:36 2017 (r433588) +++ head/databases/py-dbutils/distinfo Tue Feb 7 20:31:41 2017 (r433589) @@ -1,3 +1,3 @@ -TIMESTAMP = 1486287417 -SHA256 (DBUtils-1.1.1.tar.gz) = 4051d7fe0d5be6b0dff87cd2344247592de03bf25d58e4d8a4c7b3d5e35fdb8d -SIZE (DBUtils-1.1.1.tar.gz) = 92371 +TIMESTAMP = 1486480831 +SHA256 (DBUtils-1.2.tar.gz) = fc185892248ff2e008b4ef92192b4247308404464d8508b225f8900caa163c6b +SIZE (DBUtils-1.2.tar.gz) = 91239 Added: head/databases/py-dbutils/files/patch-DBUtils-Examples-DBUtilsExample.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/py-dbutils/files/patch-DBUtils-Examples-DBUtilsExample.py Tue Feb 7 20:31:41 2017 (r433589) @@ -0,0 +1,74 @@ +--- DBUtils/Examples/DBUtilsExample.py.orig 2017-02-05 12:39:41 UTC ++++ DBUtils/Examples/DBUtilsExample.py +@@ -147,7 +147,7 @@ class DBUtilsExample(ExamplePage): + else: + db.cursor().execute(ddl) + db.commit() +- except self.dbapi.Error, error: ++ except self.dbapi.Error as error: + if self.dbapi_name != 'pg': + db.rollback() + self.outputMsg(error, True) +@@ -173,7 +173,7 @@ class DBUtilsExample(ExamplePage): + else: + db.cursor().execute(cmd) + db.commit() +- except self.dbapi.Error, error: ++ except self.dbapi.Error as error: + try: + if self.dbapi_name == 'pg': + db.query('end') +@@ -198,7 +198,7 @@ class DBUtilsExample(ExamplePage): + cursor.execute(query) + result = cursor.fetchall() + cursor.close() +- except self.dbapi.Error, error: ++ except self.dbapi.Error as error: + self.outputMsg(error, True) + return + if not result: +@@ -251,7 +251,7 @@ class DBUtilsExample(ExamplePage): + for cmd in cmds: + db.cursor().execute(cmd) + db.commit() +- except self.dbapi.Error, error: ++ except self.dbapi.Error as error: + if self.dbapi_name == 'pg': + db.query('end') + else: +@@ -275,7 +275,7 @@ class DBUtilsExample(ExamplePage): + cursor.execute(query) + result = cursor.fetchall() + cursor.close() +- except self.dbapi.Error, error: ++ except self.dbapi.Error as error: + self.outputMsg(error, True) + return + if not result: +@@ -335,7 +335,7 @@ class DBUtilsExample(ExamplePage): + else: + db.cursor().execute(cmd) + db.commit() +- except self.dbapi.Error, error: ++ except self.dbapi.Error as error: + if self.dbapi_name == 'pg': + db.query('end') + else: +@@ -359,7 +359,7 @@ class DBUtilsExample(ExamplePage): + cursor.execute(query) + result = cursor.fetchall() + cursor.close() +- except self.dbapi.Error, error: ++ except self.dbapi.Error as error: + self.outputMsg(error, True) + return + if not result: +@@ -422,7 +422,7 @@ class DBUtilsExample(ExamplePage): + db.cursor().execute(cmd) + cursor.close() + db.commit() +- except self.dbapi.Error, error: ++ except self.dbapi.Error as error: + if self.dbapi_name == 'pg': + db.query('end') + else: