Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2012 19:36:18 GMT
From:      Olivier Duchateau <duchateau.olivier@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/166827: [UPDATE] databases/py-sqlalchemy to 0.7.6
Message-ID:  <201204101936.q3AJaIOr028836@red.freebsd.org>
Resent-Message-ID: <201204101940.q3AJe1dN008692@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166827
>Category:       ports
>Synopsis:       [UPDATE] databases/py-sqlalchemy to 0.7.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 10 19:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Olivier Duchateau
>Release:        FreeBSD 8.2-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Update to 0.7.6
- Add PR163884, http://www.FreeBSD.org/cgi/query-pr.cgi?pr=163884 and enhance support of MySQL with Python3
- Add PR166512, http://www.FreeBSD.org/cgi/query-pr.cgi?pr=166512
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -urN /usr/ports/databases/py-sqlalchemy/Makefile py-sqlalchemy/Makefile
--- /usr/ports/databases/py-sqlalchemy/Makefile	2011-10-22 19:38:20.000000000 +0200
+++ py-sqlalchemy/Makefile	2012-04-10 20:29:53.000000000 +0200
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	sqlalchemy
-PORTVERSION=	0.7.3
+PORTVERSION=	0.7.6
 CATEGORIES=	databases python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -27,9 +27,9 @@
 
 OPTIONS=	FIREBIRD "support FireBird" off
 OPTIONS+=	MSSQL "support MS SQL Server" off
-OPTIONS+=	MYSQL "support MySql" on
+OPTIONS+=	MYSQL "support MySQL" on
 OPTIONS+=	NOSE "install Nose for unit tests" off
-OPTIONS+=	POSTGRE "support PostGreSQL" on
+OPTIONS+=	PGSQL "support PostGreSQL" on
 OPTIONS+=	SQLITE "support Sqlite" on
 OPTIONS+=	SYBASE "support Sybase" off
 
@@ -52,14 +52,18 @@
 .endif
 
 .if !defined(WITHOUT_MYSQL)
+.if ${PYTHON_VER} < 3.0
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb
+.else
+RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/pymysql/__init__.py:${PORTSDIR}/databases/py-pymysql
+.endif
 .endif
 
 .if defined(WITH_NOSE)
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}nose-1.0.0:${PORTSDIR}/devel/py-nose
 .endif
 
-.if !defined(WITHOUT_POSTGRE)
+.if !defined(WITHOUT_PGSQL)
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}psycopg2>=2.0.8:${PORTSDIR}/databases/py-psycopg2
 .endif
 
diff -urN /usr/ports/databases/py-sqlalchemy/distinfo py-sqlalchemy/distinfo
--- /usr/ports/databases/py-sqlalchemy/distinfo	2011-10-22 19:38:20.000000000 +0200
+++ py-sqlalchemy/distinfo	2012-04-10 20:29:53.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (SQLAlchemy-0.7.3.tar.gz) = 54e6e9fb30bef740b036c69cffbcb369cae2e61f95b69af4c086fca9c15308fa
-SIZE (SQLAlchemy-0.7.3.tar.gz) = 2463979
+SHA256 (SQLAlchemy-0.7.6.tar.gz) = 606a48a2d53ad959043347dec1d9f9cc561d9b66d79f463a7a8fe302058119e5
+SIZE (SQLAlchemy-0.7.6.tar.gz) = 2597214
diff -urN /usr/ports/databases/py-sqlalchemy/files/patch-setup.py py-sqlalchemy/files/patch-setup.py
--- /usr/ports/databases/py-sqlalchemy/files/patch-setup.py	1970-01-01 01:00:00.000000000 +0100
+++ py-sqlalchemy/files/patch-setup.py	2012-04-10 20:29:53.000000000 +0200
@@ -0,0 +1,11 @@
+--- setup.py.orig	2012-03-15 05:23:20.000000000 +0100
++++ setup.py	2012-04-10 19:19:38.000000000 +0200
+@@ -128,7 +128,7 @@
+           package_dir={'': 'lib'},
+           license="MIT License",
+           cmdclass=cmdclass,
+-
++          zip_safe=False,
+           tests_require=['nose >= 0.11'],
+           test_suite="sqla_nose",
+           long_description=readme,
diff -urN /usr/ports/databases/py-sqlalchemy/pkg-plist py-sqlalchemy/pkg-plist
--- /usr/ports/databases/py-sqlalchemy/pkg-plist	2011-08-10 17:55:20.000000000 +0200
+++ py-sqlalchemy/pkg-plist	2012-04-10 20:29:53.000000000 +0200
@@ -295,6 +295,9 @@
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sqlalchemy/orm/mapper.py
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sqlalchemy/orm/mapper.pyc
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sqlalchemy/orm/mapper.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sqlalchemy/orm/persistence.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sqlalchemy/orm/persistence.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sqlalchemy/orm/persistence.pyo
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sqlalchemy/orm/properties.py
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sqlalchemy/orm/properties.pyc
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sqlalchemy/orm/properties.pyo
@@ -455,6 +458,8 @@
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/custom_attributes/__init__.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/custom_attributes/custom_management.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/custom_attributes/listen_for_events.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/declarative_reflection/__init__.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/declarative_reflection/declarative_reflection.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dynamic_dict/__init__.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dynamic_dict/dynamic_dict.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/elementtree/__init__.py
@@ -500,6 +505,7 @@
 %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/generic_associations
 %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/elementtree
 %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/dynamic_dict
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/declarative_reflection
 %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/custom_attributes
 %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/beaker_caching
 %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/association


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204101936.q3AJaIOr028836>