Date: Thu, 5 Dec 2013 11:39:39 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r335660 - in head/databases/py-mysql2pgsql: . files Message-ID: <201312051139.rB5BddaA091012@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Thu Dec 5 11:39:38 2013 New Revision: 335660 URL: http://svnweb.freebsd.org/changeset/ports/335660 Log: databases/py-mysql2pgsql: Fix argparse dependency argparse was missing from this ports RUN_DEPENDS, causing errors on imports. argparse is avaiilable in the Python 2.7 and 3.2+ standard libraries so patch setup.py to only require it for those versions. Patch has been committed upstream and won't be necessary for the next release. While I'm here, enable STAGE support. PR: ports/183477 Submitted by: koobs Approved by: Volodymyr Kostyrko <c.kworr@gmail.com> (maintainer) Added: head/databases/py-mysql2pgsql/files/ head/databases/py-mysql2pgsql/files/patch-setup.py (contents, props changed) Modified: head/databases/py-mysql2pgsql/Makefile Modified: head/databases/py-mysql2pgsql/Makefile ============================================================================== --- head/databases/py-mysql2pgsql/Makefile Thu Dec 5 11:19:00 2013 (r335659) +++ head/databases/py-mysql2pgsql/Makefile Thu Dec 5 11:39:38 2013 (r335660) @@ -2,6 +2,7 @@ PORTNAME= mysql2pgsql PORTVERSION= 0.1.6 +PORTREVISION= 1 CATEGORIES= databases python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= py-${PORTNAME}-${PORTVERSION} @@ -28,5 +29,4 @@ GH_COMMIT= 250cb1c GH_PROJECT= py-${PORTNAME} GH_TAGNAME= v${PORTVERSION} -NO_STAGE= yes .include <bsd.port.mk> Added: head/databases/py-mysql2pgsql/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/py-mysql2pgsql/files/patch-setup.py Thu Dec 5 11:39:38 2013 (r335660) @@ -0,0 +1,27 @@ +--- ./setup.py.orig 2012-09-12 19:25:34.000000000 +1000 ++++ ./setup.py 2013-12-05 21:21:46.941032294 +1100 +@@ -1,17 +1,22 @@ + import os ++import sys + from setuptools import setup + + install_requires = [ + 'mysql-python>=1.2.3', + 'psycopg2>=2.4.2', + 'pyyaml>=3.10.0', +- 'argparse', + 'pytz', + ] + + if os.name == 'posix': + install_requires.append('termcolor>=1.1.0') +- ++ ++version = sys.version_info[:2] ++ ++if version < (2,7) or (3,0) <= version <= (3,1): ++ install_requires += ['argparse'] ++ + setup( + name='py-mysql2pgsql', + version='0.1.6',
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312051139.rB5BddaA091012>