Date: Sat, 22 Jun 2013 10:43:26 +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: r321560 - in head/net: . py-pynsq py-pynsq/files Message-ID: <201306221043.r5MAhQvt087231@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Sat Jun 22 10:43:26 2013 New Revision: 321560 URL: http://svnweb.freebsd.org/changeset/ports/321560 Log: net/py-pynsq: [NEW PORT] The official Python client library for NSQ pynsq provides high-level nsq.Reader and nsq.Writer classes for building consumers and producers and two low-level modules for both sync and async communication over the NSQ Protocol (if you wanted to write your own high-level functionality). WWW: https://github.com/bitly/pynsq Added: head/net/py-pynsq/ head/net/py-pynsq/Makefile (contents, props changed) head/net/py-pynsq/distinfo (contents, props changed) head/net/py-pynsq/files/ head/net/py-pynsq/files/patch-setup.py (contents, props changed) head/net/py-pynsq/pkg-descr (contents, props changed) head/net/py-pynsq/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Sat Jun 22 09:36:41 2013 (r321559) +++ head/net/Makefile Sat Jun 22 10:43:26 2013 (r321560) @@ -929,6 +929,7 @@ SUBDIR += py-pcapy SUBDIR += py-pcs SUBDIR += py-port-for + SUBDIR += py-pynsq SUBDIR += py-pypcap SUBDIR += py-pysendfile SUBDIR += py-pysphere Added: head/net/py-pynsq/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-pynsq/Makefile Sat Jun 22 10:43:26 2013 (r321560) @@ -0,0 +1,41 @@ +# Created by: Kubilay Kocak <koobs@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= pynsq +PORTVERSION= 0.4.2 +CATEGORIES= net python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= koobs@FreeBSD.org +COMMENT= Official Python client library for NSQ + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tornado>0:${PORTSDIR}/www/py-tornado +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tornado>0:${PORTSDIR}/www/py-tornado \ + ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \ + ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock + +OPTIONS_DEFINE= TESTS +TESTS_DESC= Install tools to run test suite +OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options + +.include <bsd.port.options.mk> + +USE_GITHUB= yes +USE_PYTHON= yes +USE_PYDISTUTILS= easy_install + +GH_ACCOUNT= bitly +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= 8dd5a49 + +post-patch: + ${TOUCH} ${WRKSRC}/tests/__init__.py + +.if ${PORT_OPTIONS:MTESTS} +BUILD_DEPENDS:= ${TEST_DEPENDS} +.endif + +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test + +.include <bsd.port.mk> Added: head/net/py-pynsq/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-pynsq/distinfo Sat Jun 22 10:43:26 2013 (r321560) @@ -0,0 +1,2 @@ +SHA256 (pynsq-0.4.2.tar.gz) = 7452e4a77969a17f208df245ab63bbfcfd75c57541cf4508a3ef5d3f50c80a00 +SIZE (pynsq-0.4.2.tar.gz) = 14906 Added: head/net/py-pynsq/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-pynsq/files/patch-setup.py Sat Jun 22 10:43:26 2013 (r321560) @@ -0,0 +1,54 @@ +--- ./setup.py.orig 2013-06-08 23:24:54.875536114 +1000 ++++ ./setup.py 2013-06-08 23:25:23.966041820 +1000 +@@ -1,17 +1,38 @@ + from setuptools import setup ++from setuptools.command.test import test as TestCommand ++import sys ++ ++ ++class PyTest(TestCommand): ++ def finalize_options(self): ++ TestCommand.finalize_options(self) ++ self.test_args = [] ++ self.test_suite = True ++ def run_tests(self): ++ import pytest ++ errno = pytest.main(self.test_args) ++ sys.exit(errno) ++ + ++# also update in nsq/__init__.py + version = '0.4.2' + +-setup(name='pynsq', +- version=version, +- description="a Python module for NSQ", +- keywords='python nsq', +- author='Matt Reiferson', +- author_email='snakes@gmail.com', +- url='http://github.com/bitly/pynsq', +- download_url='https://s3.amazonaws.com/bitly-downloads/nsq/pynsq-%s.tar.gz' % version, +- packages=['nsq'], +- requires=['tornado'], +- include_package_data=True, +- zip_safe=True, +- ) ++ ++setup( ++ name='pynsq', ++ version=version, ++ description="a Python module for NSQ", ++ keywords='python nsq', ++ author='Matt Reiferson', ++ author_email='snakes@gmail.com', ++ url='http://github.com/bitly/pynsq', ++ download_url='https://s3.amazonaws.com/bitly-downloads/nsq/pynsq-%s.tar.gz' % version, ++ packages=['nsq'], ++ requires=['tornado'], ++ include_package_data=True, ++ zip_safe=False, ++ tests_require=['pytest', 'mock', 'tornado'], ++ cmdclass={'test': PyTest}, ++) ++ ++ Added: head/net/py-pynsq/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-pynsq/pkg-descr Sat Jun 22 10:43:26 2013 (r321560) @@ -0,0 +1,8 @@ +The official Python client library for NSQ + +It provides high-level nsq.Reader and nsq.Writer classes for building +consumers and producers and two low-level modules for both sync and async +communication over the NSQ Protocol (if you wanted to write your own +high-level functionality). + +WWW: https://github.com/bitly/pynsq Added: head/net/py-pynsq/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-pynsq/pkg-plist Sat Jun 22 10:43:26 2013 (r321560) @@ -0,0 +1,29 @@ +%%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/not-zip-safe +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/BackoffTimer.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/BackoffTimer.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/BackoffTimer.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/Reader.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/Reader.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/Reader.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/Writer.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/Writer.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/Writer.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/async.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/async.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/async.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/nsq.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/nsq.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/nsq.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/sync.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/sync.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq/sync.pyo +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nsq +@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?201306221043.r5MAhQvt087231>