Date: Tue, 21 Aug 2012 21:07:09 +0000 (UTC) From: Nicola Vitale <nivit@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r302903 - in head/devel: . py-stevedore py-stevedore/files Message-ID: <201208212107.q7LL79SU006205@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nivit Date: Tue Aug 21 21:07:08 2012 New Revision: 302903 URL: http://svn.freebsd.org/changeset/ports/302903 Log: Python makes loading code dynamically easy, allowing you to configure and extend your application by discovering and loading extensions ("plugins") at runtime. Many applications implement their own library for doing this, using __import__ or importlib. Stevedore avoids creating yet another extension mechanism by building on top of setuptools entry points. WWW: https://github.com/dreamhost/stevedore Added: head/devel/py-stevedore/ head/devel/py-stevedore/Makefile (contents, props changed) head/devel/py-stevedore/distinfo (contents, props changed) head/devel/py-stevedore/files/ head/devel/py-stevedore/files/patch-setup.py (contents, props changed) head/devel/py-stevedore/pkg-descr (contents, props changed) head/devel/py-stevedore/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Aug 21 21:01:21 2012 (r302902) +++ head/devel/Makefile Tue Aug 21 21:07:08 2012 (r302903) @@ -3434,6 +3434,7 @@ SUBDIR += py-speaklater SUBDIR += py-sqlcc SUBDIR += py-statgrab + SUBDIR += py-stevedore SUBDIR += py-subversion SUBDIR += py-subvertpy SUBDIR += py-sysv_ipc Added: head/devel/py-stevedore/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-stevedore/Makefile Tue Aug 21 21:07:08 2012 (r302903) @@ -0,0 +1,53 @@ +# New ports collection makefile for: py-stevedore +# Date created: 2012-08-19 +# Whom: Nicola Vitale <nivit@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= stevedore +PORTVERSION= 0.3 +#PORTREVISION= 0 +CATEGORIES= devel +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= nivit@FreeBSD.org +COMMENT= Manage dynamic plugins for Python applications + +OPTIONS_DEFINE= DOCS +OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options + +# Python3 ready +USE_PYTHON= yes +USE_PYDISTUTILS= easy_install + +.include <bsd.port.options.mk> + +.include <bsd.port.pre.mk> + +.if ${PORT_OPTIONS:MDOCS} +BUILD_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz \ + sphinx-build:${PORTSDIR}/textproc/py-sphinx +DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} +PYDISTUTILS_BUILD_TARGET+= build_sphinx -a -E + +post-install: + @cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${DOCSDIR} +.endif + +.if ${PYTHON_REL} >= 320 +PYMAGICTAG= ${PYTHON_CMD} -c 'import imp; print(imp.get_tag())' +add-plist-post: + @${AWK} '\ + /\.py[co]$$/ && !($$0 ~ "/" pc "/") {id = match($$0, /\/[^\/]+\.py[co]$$/); if (id != 0) {d = substr($$0, 1, RSTART - 1); dirs[d] = 1}; sub(/\.py[co]$$/, "." mt "&"); sub(/[^\/]+\.py[co]$$/, pc "/&"); print; next} \ + /^@dirrm / {d = substr($$0, 8); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \ + {print} \ + END {if (sp in dirs) {print "@dirrm " sp "/" pc}} \ + ' \ + pc="__pycache__" mt="$$(${PYMAGICTAG})" sp="${PYTHON_SITELIBDIR:S,${PYTHONBASE}/,,g}" \ + ${TMPPLIST} > ${TMPPLIST}.pyc_tmp + @${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST} +.endif + +.include <bsd.port.post.mk> Added: head/devel/py-stevedore/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-stevedore/distinfo Tue Aug 21 21:07:08 2012 (r302903) @@ -0,0 +1,2 @@ +SHA256 (stevedore-0.3.tar.gz) = c86fe6931192d5e57755d21cf83d85499deaa8098f05607f031c250b85b6314a +SIZE (stevedore-0.3.tar.gz) = 19908 Added: head/devel/py-stevedore/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-stevedore/files/patch-setup.py Tue Aug 21 21:07:08 2012 (r302903) @@ -0,0 +1,33 @@ +--- ./setup.py.orig 2012-08-19 22:25:09.000000000 +0200 ++++ ./setup.py 2012-08-19 22:25:33.000000000 +0200 +@@ -1,8 +1,8 @@ + #!/usr/bin/env python + + # Bootstrap installation of Distribute +-import distribute_setup +-distribute_setup.use_setuptools() ++#import distribute_setup ++#distribute_setup.use_setuptools() + + from setuptools import setup, find_packages + +@@ -11,8 +11,8 @@ + except IOError: + long_description = '' + +-install_requires = ['distribute', +- ] ++#install_requires = ['distribute', ++# ] + + setup( + name='stevedore', +@@ -44,7 +44,7 @@ + + provides=['stevedore', + ], +- install_requires=install_requires, ++# install_requires=install_requires, + + namespace_packages=[], + packages=find_packages(), Added: head/devel/py-stevedore/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-stevedore/pkg-descr Tue Aug 21 21:07:08 2012 (r302903) @@ -0,0 +1,8 @@ +Python makes loading code dynamically easy, allowing you to configure +and extend your application by discovering and loading extensions +("plugins") at runtime. Many applications implement their own library +for doing this, using __import__ or importlib. Stevedore avoids +creating yet another extension mechanism by building on top of setuptools +entry points. + +WWW: https://github.com/dreamhost/stevedore Added: head/devel/py-stevedore/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-stevedore/pkg-plist Tue Aug 21 21:07:08 2012 (r302903) @@ -0,0 +1,101 @@ +@comment $FreeBSD$ +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/namespace_packages.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/dispatch.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/dispatch.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/dispatch.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/driver.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/driver.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/driver.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/enabled.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/enabled.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/enabled.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/extension.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/extension.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/extension.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/hook.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/hook.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/hook.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/named.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/named.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/named.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_dispatch.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_dispatch.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_dispatch.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_driver.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_driver.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_driver.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_enabled.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_enabled.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_enabled.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_extension.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_extension.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_extension.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_hook.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_hook.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_hook.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_named.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_named.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_named.pyo +%%PORTDOCS%%%%DOCSDIR%%/.buildinfo +%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-08fe6220bc1dbd26a74e2669d53a297aa22af2f3.png +%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-08fe6220bc1dbd26a74e2669d53a297aa22af2f3.png.map +%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-3af069098c975cf4ccc9b878bd4ecfce2f485b8b.png +%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-3af069098c975cf4ccc9b878bd4ecfce2f485b8b.png.map +%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-c58c2e8e4126e434dc2251649dea48f116f08b19.png +%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-c58c2e8e4126e434dc2251649dea48f116f08b19.png.map +%%PORTDOCS%%%%DOCSDIR%%/_sources/history.txt +%%PORTDOCS%%%%DOCSDIR%%/_sources/index.txt +%%PORTDOCS%%%%DOCSDIR%%/_sources/install.txt +%%PORTDOCS%%%%DOCSDIR%%/_sources/managers.txt +%%PORTDOCS%%%%DOCSDIR%%/_sources/patterns_enabling.txt +%%PORTDOCS%%%%DOCSDIR%%/_sources/patterns_loading.txt +%%PORTDOCS%%%%DOCSDIR%%/_static/ajax-loader.gif +%%PORTDOCS%%%%DOCSDIR%%/_static/basic.css +%%PORTDOCS%%%%DOCSDIR%%/_static/comment-bright.png +%%PORTDOCS%%%%DOCSDIR%%/_static/comment-close.png +%%PORTDOCS%%%%DOCSDIR%%/_static/comment.png +%%PORTDOCS%%%%DOCSDIR%%/_static/default.css +%%PORTDOCS%%%%DOCSDIR%%/_static/doctools.js +%%PORTDOCS%%%%DOCSDIR%%/_static/down-pressed.png +%%PORTDOCS%%%%DOCSDIR%%/_static/down.png +%%PORTDOCS%%%%DOCSDIR%%/_static/file.png +%%PORTDOCS%%%%DOCSDIR%%/_static/jquery.js +%%PORTDOCS%%%%DOCSDIR%%/_static/minus.png +%%PORTDOCS%%%%DOCSDIR%%/_static/plus.png +%%PORTDOCS%%%%DOCSDIR%%/_static/pygments.css +%%PORTDOCS%%%%DOCSDIR%%/_static/searchtools.js +%%PORTDOCS%%%%DOCSDIR%%/_static/sidebar.js +%%PORTDOCS%%%%DOCSDIR%%/_static/underscore.js +%%PORTDOCS%%%%DOCSDIR%%/_static/up-pressed.png +%%PORTDOCS%%%%DOCSDIR%%/_static/up.png +%%PORTDOCS%%%%DOCSDIR%%/_static/websupport.js +%%PORTDOCS%%%%DOCSDIR%%/genindex.html +%%PORTDOCS%%%%DOCSDIR%%/history.html +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/install.html +%%PORTDOCS%%%%DOCSDIR%%/managers.html +%%PORTDOCS%%%%DOCSDIR%%/objects.inv +%%PORTDOCS%%%%DOCSDIR%%/patterns_enabling.html +%%PORTDOCS%%%%DOCSDIR%%/patterns_loading.html +%%PORTDOCS%%%%DOCSDIR%%/search.html +%%PORTDOCS%%%%DOCSDIR%%/searchindex.js +%%PORTDOCS%%@dirrm %%DOCSDIR%%/_static +%%PORTDOCS%%@dirrm %%DOCSDIR%%/_sources +%%PORTDOCS%%@dirrm %%DOCSDIR%%/_images +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208212107.q7LL79SU006205>