diff options
author | Kubilay Kocak <koobs@FreeBSD.org> | 2013-11-30 17:26:04 +0000 |
---|---|---|
committer | Kubilay Kocak <koobs@FreeBSD.org> | 2013-11-30 17:26:04 +0000 |
commit | 7a0e3f5994a37d99a336e4aa39a795dc321f3502 (patch) | |
tree | ca567cc440482895e2186c1a151be0767f1c0a66 /net | |
parent | Add staging support. (diff) |
net/py-pynsq: Update to 0.5.1
- Update to 0.5.1
- Enable STAGE support
- Enable AUTOPLIST, delete pkg-plist
- Sort USE_* and GH_* sections
- Remove upstreamed setup.py patch and post-patch: target
Changes:
https://github.com/bitly/pynsq/blob/v0.5.1/ChangeLog.md
Notes
Notes:
svn path=/head/; revision=335307
Diffstat (limited to 'net')
-rw-r--r-- | net/py-pynsq/Makefile | 12 | ||||
-rw-r--r-- | net/py-pynsq/distinfo | 4 | ||||
-rw-r--r-- | net/py-pynsq/files/patch-setup.py | 54 | ||||
-rw-r--r-- | net/py-pynsq/pkg-plist | 29 |
4 files changed, 7 insertions, 92 deletions
diff --git a/net/py-pynsq/Makefile b/net/py-pynsq/Makefile index b1107259ae02..ec59ff2dae78 100644 --- a/net/py-pynsq/Makefile +++ b/net/py-pynsq/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= pynsq -PORTVERSION= 0.4.2 +PORTVERSION= 0.5.1 CATEGORIES= net python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -18,19 +18,17 @@ OPTIONS_DEFINE= TESTS TESTS_DESC= Install tools to run test suite OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options -NO_STAGE= yes -.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 +GH_COMMIT= b64f3f3 -post-patch: - ${TOUCH} ${WRKSRC}/tests/__init__.py +PYDISTUTILS_AUTOPLIST= yes + +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MTESTS} BUILD_DEPENDS:= ${TEST_DEPENDS} diff --git a/net/py-pynsq/distinfo b/net/py-pynsq/distinfo index cbe45e9e7731..666670b449bc 100644 --- a/net/py-pynsq/distinfo +++ b/net/py-pynsq/distinfo @@ -1,2 +1,2 @@ -SHA256 (pynsq-0.4.2.tar.gz) = 7452e4a77969a17f208df245ab63bbfcfd75c57541cf4508a3ef5d3f50c80a00 -SIZE (pynsq-0.4.2.tar.gz) = 14906 +SHA256 (pynsq-0.5.1.tar.gz) = 78be19617fc4df13ec0d9d466f63c9dd12634ed5eab1a2dd8e1c9b38cab3b893 +SIZE (pynsq-0.5.1.tar.gz) = 25739 diff --git a/net/py-pynsq/files/patch-setup.py b/net/py-pynsq/files/patch-setup.py deleted file mode 100644 index f37462725b00..000000000000 --- a/net/py-pynsq/files/patch-setup.py +++ /dev/null @@ -1,54 +0,0 @@ ---- ./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}, -+) -+ -+ diff --git a/net/py-pynsq/pkg-plist b/net/py-pynsq/pkg-plist deleted file mode 100644 index 694133094943..000000000000 --- a/net/py-pynsq/pkg-plist +++ /dev/null @@ -1,29 +0,0 @@ -%%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%% |