Bug 101920 - [new port]: databases/py-sqlalchemy A Python ORM
Summary: [new port]: databases/py-sqlalchemy A Python ORM
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-12 15:20 UTC by dryice
Modified: 2006-08-23 14:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dryice 2006-08-12 15:20:09 UTC
	Attached is the shar file for databases/py-sqlalchemy, which
	is a Python SQL tool kit and Object Relational Mapper

Fix: --- attached file begins here ---


--- attached file ends here -----zQkIYL0UJVbr3d2O7LlnR2Y3Govp2fJhezFQUvAQAYos9w5o
Content-Type: text/plain; name="file.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.shar"

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/databases/py-sqlalchemy
#	/usr/ports/databases/py-sqlalchemy/distinfo
#	/usr/ports/databases/py-sqlalchemy/Makefile
#	/usr/ports/databases/py-sqlalchemy/pkg-descr
#	/usr/ports/databases/py-sqlalchemy/pkg-plist
#
echo c - /usr/ports/databases/py-sqlalchemy
mkdir -p /usr/ports/databases/py-sqlalchemy > /dev/null 2>&1
echo x - /usr/ports/databases/py-sqlalchemy/distinfo
sed 's/^X//' >/usr/ports/databases/py-sqlalchemy/distinfo << 'END-of-/usr/ports/databases/py-sqlalchemy/distinfo'
XMD5 (SQLAlchemy-0.2.6.tar.gz) = feb6c89b24a6b9b20ece9a1f78bccda4
XSHA256 (SQLAlchemy-0.2.6.tar.gz) = 31a03b1099e99ab5b54c637b38db84c06777c6067d568c23892c0841c6eac07f
XSIZE (SQLAlchemy-0.2.6.tar.gz) = 614870
END-of-/usr/ports/databases/py-sqlalchemy/distinfo
echo x - /usr/ports/databases/py-sqlalchemy/Makefile
sed 's/^X//' >/usr/ports/databases/py-sqlalchemy/Makefile << 'END-of-/usr/ports/databases/py-sqlalchemy/Makefile'
X# Ports collection makefile for:	py-sqlalchemy
X# Date created:				12 Auguest 2004
X# Whom:					Dryice Dong Liu <dryice@dryice.name>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sqlalchemy
XPORTVERSION=	0.2.6
XCATEGORIES=	databases python
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
X		http://cheeseshop.python.org/packages/source/S/SQLAlchemy/ \
X		http://dryice.name/computer/FreeBSD/distfiles/
XDISTNAME=	SQLAlchemy-${PORTVERSION}
X
XMAINTAINER=	dryice@dryice.name
XCOMMENT=	A Python SQL toolkit and Object Relational Mapper
X
XUSE_PYTHON=	2.3+
XPLIST_SUB+=	PORTVERSION=${PORTVERSION} \
X		PYTHONVERSION=${_PYTHON_VERSION} \
X		EXAMPLEDIR=share/examples/${PORTNAME}
XUSE_PYDISTUTILS=	yes
X
XOPTIONS=	FIREBIRD "support FireBird" off
XOPTIONS+=	MSSQL "support MS SQL Server" off
XOPTIONS+=	MYSQL "support MySql" on
XOPTIONS+=	POSTGRE "support PostGreSQL" on
XOPTIONS+=	SQLITE "support Sqlite" on
X
X.if !defined(NOPORTDOCS)
XPORTDOCS=	adv_datamapping.html alphaapi.html \
X		alphaimplementation.html datamapping.html \
X		dbengine.html docs.css docstrings.html \
X		documentation.html index.html metadata.html \
X		plugins.html pooling.html scripts.js \
X		sqlconstruction.html style.css syntaxhighlight.css \
X		tutorial.html types.html unitofwork.html
X.endif
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_FIREBIRD)
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/kinterbasdb/__init__.py:${PORTSDIR}/databases/kinterbasdb
X.endif
X
X.if defined(WITH_MSSQL)
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/pymssql.py:${PORTSDIR}/databases/py-mssql
X.endif
X
X.if !defined(WITHOUT_MYSQL)
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb
X.endif
X
X.if !defined(WITHOUT_POSTGRE)
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psycopg2/__init__.py:${PORTSDIR}/databases/py-psycopg2
X.endif
X
X.if !defined(WITHOUT_SQLITE)
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X.for i in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
X.endfor
X.endif
X
X	${MKDIR} ${EXAMPLESDIR}
X.for i in adjacencytree backref polymorph vertical
X	${CP} -r ${WRKSRC}/examples/${i} ${EXAMPLESDIR}
X.endfor
X
X.include <bsd.port.post.mk>
END-of-/usr/ports/databases/py-sqlalchemy/Makefile
echo x - /usr/ports/databases/py-sqlalchemy/pkg-descr
sed 's/^X//' >/usr/ports/databases/py-sqlalchemy/pkg-descr << 'END-of-/usr/ports/databases/py-sqlalchemy/pkg-descr'
XThe Python SQL Toolkit and Object Relational Mapper
X
XSQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
Xgives application developers the full power and flexibility of SQL.
X
XIt provides a full suite of well known enterprise-level persistence
Xpatterns, designed for efficient and high-performing database access,
Xadapted into a simple and Pythonic domain language.
X
XWWW: http://www.sqlalchemy.org/
END-of-/usr/ports/databases/py-sqlalchemy/pkg-descr
echo x - /usr/ports/databases/py-sqlalchemy/pkg-plist
sed 's/^X//' >/usr/ports/databases/py-sqlalchemy/pkg-plist << 'END-of-/usr/ports/databases/py-sqlalchemy/pkg-plist'
X%%PYTHON_SITELIBDIR%%/SQLAlchemy-%%PORTVERSION%%-py%%PYTHONVERSION%%.egg
X%%EXAMPLEDIR%%/adjacencytree/basic_tree.py
X%%EXAMPLEDIR%%/adjacencytree/byroot_tree.py
X%%EXAMPLEDIR%%/backref/backref_tree.py
X%%EXAMPLEDIR%%/polymorph/concrete.py
X%%EXAMPLEDIR%%/polymorph/polymorph.py
X%%EXAMPLEDIR%%/polymorph/single.py
X%%EXAMPLEDIR%%/vertical/vertical.py
X@dirrm %%EXAMPLEDIR%%/adjacencytree
X@dirrm %%EXAMPLEDIR%%/backref
X@dirrm %%EXAMPLEDIR%%/polymorph
X@dirrm %%EXAMPLEDIR%%/vertical
X@dirrm %%EXAMPLEDIR%%
END-of-/usr/ports/databases/py-sqlalchemy/pkg-plist
exit
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2006-08-16 07:38:41 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2006-08-16 14:18:11 UTC
Hi, The port does not build. Can you take a look in it?

---------------------------------------------------------------------------
Downloading
http://cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6a5-py2.4.egg
Traceback (most recent call last): File "setup.py", line 2, in ?
    use_setuptools()
  File
"/work/a/ports/databases/py-sqlalchemy/work/SQLAlchemy-0.2.6/ez_setup.py",
line 74, in use_setuptools egg = download_setuptools(version,
download_base, to_dir, download_delay) File
"/work/a/ports/databases/py-sqlalchemy/work/SQLAlchemy-0.2.6/ez_setup.py",
line 122, in download_setuptools src = urllib2.urlopen(url) File
"/usr/local/lib/python2.4/urllib2.py", line 130, in urlopen return
_opener.open(url, data) File "/usr/local/lib/python2.4/urllib2.py",
line 364, in open response = meth(req, response)


Full log can you see here
http://miwibox.org/tb/index.php?action=describe_port&id=177

- Reagards Martin
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2006-08-16 14:18:55 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 4 dryice 2006-08-21 11:48:42 UTC
Martin Wilke <miwi@FreeBSD.org> wrote:

> Hi, The port does not build. Can you take a look in it?

Thanks for taking care of this PR.

This attached shar file includes a new version (0.2.7) and one more
BUILD_DEPENDS which (hopefully) fix the build error.

Thanks.

======================================================================
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/databases/py-sqlalchemy
#	/usr/ports/databases/py-sqlalchemy/distinfo
#	/usr/ports/databases/py-sqlalchemy/Makefile
#	/usr/ports/databases/py-sqlalchemy/pkg-descr
#	/usr/ports/databases/py-sqlalchemy/pkg-plist
#
echo c - /usr/ports/databases/py-sqlalchemy
mkdir -p /usr/ports/databases/py-sqlalchemy > /dev/null 2>&1
echo x - /usr/ports/databases/py-sqlalchemy/distinfo
sed 's/^X//' >/usr/ports/databases/py-sqlalchemy/distinfo << 'END-of-/usr/ports/databases/py-sqlalchemy/distinfo'
XMD5 (SQLAlchemy-0.2.7.tar.gz) = d1c4e9f4c512d6d68e3e453f10df896e
XSHA256 (SQLAlchemy-0.2.7.tar.gz) = d12ff098ae9206114d0d024469b3f93cc4c9dc5febfd92390391c6155642f19e
XSIZE (SQLAlchemy-0.2.7.tar.gz) = 626974
END-of-/usr/ports/databases/py-sqlalchemy/distinfo
echo x - /usr/ports/databases/py-sqlalchemy/Makefile
sed 's/^X//' >/usr/ports/databases/py-sqlalchemy/Makefile << 'END-of-/usr/ports/databases/py-sqlalchemy/Makefile'
X# Ports collection makefile for:	py-sqlalchemy
X# Date created:				12 Auguest 2004
X# Whom:					Dryice Dong Liu <dryice@dryice.name>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sqlalchemy
XPORTVERSION=	0.2.7
XCATEGORIES=	databases python
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
X		http://cheeseshop.python.org/packages/source/S/SQLAlchemy/ \
X		http://dryice.name/computer/FreeBSD/distfiles/
XDISTNAME=	SQLAlchemy-${PORTVERSION}
X
XMAINTAINER=	dryice@dryice.name
XCOMMENT=	A Python SQL toolkit and Object Relational Mapper
X
XUSE_PYTHON=	2.3+
XUSE_PYDISTUTILS=	yes
X
XPLIST_SUB+=	PORTVERSION=${PORTVERSION} \
X		PYTHONVERSION=${_PYTHON_VERSION} \
X		EXAMPLEDIR=share/examples/${PORTNAME}
X
XBUILD_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-setuptools
X
XOPTIONS=	FIREBIRD "support FireBird" off
XOPTIONS+=	MSSQL "support MS SQL Server" off
XOPTIONS+=	MYSQL "support MySql" on
XOPTIONS+=	POSTGRE "support PostGreSQL" on
XOPTIONS+=	SQLITE "support Sqlite" on
X
X.if !defined(NOPORTDOCS)
XPORTDOCS=	adv_datamapping.html alphaapi.html \
X		alphaimplementation.html datamapping.html \
X		dbengine.html docs.css docstrings.html \
X		documentation.html index.html metadata.html \
X		plugins.html pooling.html scripts.js \
X		sqlconstruction.html style.css syntaxhighlight.css \
X		tutorial.html types.html unitofwork.html
X.endif
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_FIREBIRD)
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/kinterbasdb/__init__.py:${PORTSDIR}/databases/kinterbasdb
X.endif
X
X.if defined(WITH_MSSQL)
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/pymssql.py:${PORTSDIR}/databases/py-mssql
X.endif
X
X.if !defined(WITHOUT_MYSQL)
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb
X.endif
X
X.if !defined(WITHOUT_POSTGRE)
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psycopg2/__init__.py:${PORTSDIR}/databases/py-psycopg2
X.endif
X
X.if !defined(WITHOUT_SQLITE)
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X.for i in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
X.endfor
X.endif
X
X	${MKDIR} ${EXAMPLESDIR}
X.for i in adjacencytree backref polymorph vertical
X	${CP} -r ${WRKSRC}/examples/${i} ${EXAMPLESDIR}
X.endfor
X
X.include <bsd.port.post.mk>
END-of-/usr/ports/databases/py-sqlalchemy/Makefile
echo x - /usr/ports/databases/py-sqlalchemy/pkg-descr
sed 's/^X//' >/usr/ports/databases/py-sqlalchemy/pkg-descr << 'END-of-/usr/ports/databases/py-sqlalchemy/pkg-descr'
XThe Python SQL Toolkit and Object Relational Mapper
X
XSQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
Xgives application developers the full power and flexibility of SQL.
X
XIt provides a full suite of well known enterprise-level persistence
Xpatterns, designed for efficient and high-performing database access,
Xadapted into a simple and Pythonic domain language.
X
XWWW: http://www.sqlalchemy.org/
END-of-/usr/ports/databases/py-sqlalchemy/pkg-descr
echo x - /usr/ports/databases/py-sqlalchemy/pkg-plist
sed 's/^X//' >/usr/ports/databases/py-sqlalchemy/pkg-plist << 'END-of-/usr/ports/databases/py-sqlalchemy/pkg-plist'
X%%PYTHON_SITELIBDIR%%/SQLAlchemy-%%PORTVERSION%%-py%%PYTHONVERSION%%.egg
X%%EXAMPLEDIR%%/adjacencytree/basic_tree.py
X%%EXAMPLEDIR%%/adjacencytree/byroot_tree.py
X%%EXAMPLEDIR%%/backref/backref_tree.py
X%%EXAMPLEDIR%%/polymorph/concrete.py
X%%EXAMPLEDIR%%/polymorph/polymorph.py
X%%EXAMPLEDIR%%/polymorph/single.py
X%%EXAMPLEDIR%%/vertical/vertical.py
X@dirrm %%EXAMPLEDIR%%/adjacencytree
X@dirrm %%EXAMPLEDIR%%/backref
X@dirrm %%EXAMPLEDIR%%/polymorph
X@dirrm %%EXAMPLEDIR%%/vertical
X@dirrm %%EXAMPLEDIR%%
END-of-/usr/ports/databases/py-sqlalchemy/pkg-plist
exit

======================================================================

-- 
Dryice @ http://dryice.name

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/sylvester-response.html
Comment 5 Martin Wilke freebsd_committer freebsd_triage 2006-08-23 14:48:10 UTC
State Changed
From-To: feedback->closed

New port added. Thanks!