git: 8e8cb4690635 - main - www/py-autobahn: Update version 19.5.1=>21.2.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 12 Mar 2022 10:37:19 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=8e8cb469063549780b40a6c6620f73d573b429b3 commit 8e8cb469063549780b40a6c6620f73d573b429b3 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2022-03-10 15:22:53 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2022-03-12 10:37:15 +0000 www/py-autobahn: Update version 19.5.1=>21.2.1 - Update WWW Relnotes: https://github.com/crossbario/autobahn-python/releases/tag/v21.2.1 --- www/py-autobahn/Makefile | 55 +++++++++++++++++------------------- www/py-autobahn/distinfo | 6 ++-- www/py-autobahn/files/patch-setup.py | 38 +++++++++++++++---------- www/py-autobahn/pkg-descr | 2 +- 4 files changed, 53 insertions(+), 48 deletions(-) diff --git a/www/py-autobahn/Makefile b/www/py-autobahn/Makefile index a74b241f2e91..46db37b399d7 100644 --- a/www/py-autobahn/Makefile +++ b/www/py-autobahn/Makefile @@ -1,45 +1,41 @@ # Created by: Kubilay Kocak <koobs@FreeBSD.org> -PORTNAME= autobahn -PORTVERSION= 19.5.1 +PORTNAME= autobahn +PORTVERSION= 21.2.1 DISTVERSIONPREFIX= v -CATEGORIES= www python -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +CATEGORIES= www python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= bofh@FreeBSD.org -COMMENT= WebSocket client & server library, WAMP real-time framework +MAINTAINER= bofh@FreeBSD.org +COMMENT= WebSocket client & server library, WAMP real-time framework LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}txaio>=18.8.1:devel/py-txaio@${PY_FLAVOR} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.8.6:devel/py-pytest@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}mock>=1.3.0:devel/py-mock@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=2.9.2:security/py-cryptography@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hyperlink>=20.0.1:www/py-hyperlink@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}txaio>=20.4.1:devel/py-txaio@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.8.6:devel/py-pytest@${PY_FLAVOR} USES= cpe python:3.5+ -USE_GITHUB= yes -USE_PYTHON= autoplist distutils - CPE_VENDOR= crossbar - +USE_GITHUB= yes GH_ACCOUNT= crossbario GH_PROJECT= autobahn-python +USE_PYTHON= autoplist distutils NO_ARCH= yes OPTIONS_DEFINE= ACCELERATE ENCRYPTION SCRAM SERIALIZATION -OPTIONS_DEFAULT= ASYNCIO ACCELERATE ENCRYPTION SCRAM SERIALIZATION TWISTED - -OPTIONS_FILE= ${PORT_DBDIR}/${OPTIONS_NAME}/${FLAVOR}-options - +OPTIONS_DEFAULT= ACCELERATE ASYNCIO ENCRYPTION SCRAM SERIALIZATION \ + TWISTED OPTIONS_MULTI= BACKENDS OPTIONS_MULTI_BACKENDS= ASYNCIO TWISTED - -BACKENDS_DESC= Network Backends +OPTIONS_FILE= ${PORT_DBDIR}/${OPTIONS_NAME}/${FLAVOR}-options ACCELERATE_DESC= C-based WebSocket Acceleration ASYNCIO_DESC= Asyncronous IO Support +BACKENDS_DESC= Network Backends ENCRYPTION_DESC= TLS Transport / Cryptosign Encryption & Authentication SCRAM_DESC= WAMP-SCRAM Authentication support SERIALIZATION_DESC= Serializers (MessagePack, CBOR, UBJSON, Flatbuffers) @@ -47,20 +43,21 @@ TWISTED_DESC= Twisted network backend support ACCELERATE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wsaccel>=0.6.2:www/py-wsaccel@${PY_FLAVOR} ENCRYPTION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openssl>=16.2.0:security/py-openssl@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}service_identity>=16.0.0:security/py-service_identity@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pynacl>=1.0.1:security/py-pynacl@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyqrcode>=1.1:graphics/py-pyqrcode@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytrie>=0.2:devel/py-pytrie@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pyqrcode>=1.1:graphics/py-pyqrcode@${PY_FLAVOR} -SCRAM_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.11.5:devel/py-cffi@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}argon2-cffi>=18.1.0:security/py-argon2-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}service_identity>=18.1.0:security/py-service_identity@${PY_FLAVOR} +SCRAM_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}argon2-cffi>=18.1.0:security/py-argon2-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cffi>=1.11.5:devel/py-cffi@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}passlib>=1.7.1:security/py-passlib@${PY_FLAVOR} -SERIALIZATION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack>=0.6.1:devel/py-msgpack@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}ujson>=1.35:devel/py-ujson@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}cbor2>=4.1.2:devel/py-cbor2@${PY_FLAVOR} \ +SERIALIZATION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cbor2>=5.0.1:devel/py-cbor2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}cbor>=1.0.0:devel/py-cbor@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flatbuffers>=1.10:devel/py-flatbuffers@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}msgpack>=0.6.1:devel/py-msgpack@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}py-ubjson>=0.8.4:devel/py-py-ubjson@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}flatbuffers>=1.10:devel/py-flatbuffers@${PY_FLAVOR} -TWISTED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=12.1.0:devel/py-twisted@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ujson>=1.35:devel/py-ujson@${PY_FLAVOR} +TWISTED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=19.2.0:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}twisted>=20.3.0:devel/py-twisted@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}zope.interface>=3.6.0:devel/py-zope.interface@${PY_FLAVOR} .include <bsd.port.options.mk> diff --git a/www/py-autobahn/distinfo b/www/py-autobahn/distinfo index 6767a47fad83..0a76657e8c56 100644 --- a/www/py-autobahn/distinfo +++ b/www/py-autobahn/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1558187547 -SHA256 (crossbario-autobahn-python-v19.5.1_GH0.tar.gz) = ab08651ce0fd4f748527b7820c79d2ef6960804f3a6b13c6c72ee4d276418fd3 -SIZE (crossbario-autobahn-python-v19.5.1_GH0.tar.gz) = 1412835 +TIMESTAMP = 1646891739 +SHA256 (crossbario-autobahn-python-v21.2.1_GH0.tar.gz) = f108ed2e96a22a9ddc821f6eb580a6b076780f78f30694f483a2c6c176b2f825 +SIZE (crossbario-autobahn-python-v21.2.1_GH0.tar.gz) = 2700279 diff --git a/www/py-autobahn/files/patch-setup.py b/www/py-autobahn/files/patch-setup.py index 4c738938c55a..6c7fcf8c1845 100644 --- a/www/py-autobahn/files/patch-setup.py +++ b/www/py-autobahn/files/patch-setup.py @@ -1,18 +1,26 @@ ---- setup.py.orig 2016-01-24 16:10:22 UTC +--- setup.py.orig 2022-03-10 14:28:18 UTC +++ setup.py -@@ -32,12 +32,9 @@ import platform - from setuptools import setup - from setuptools.command.test import test as test_command - --# remember if we already had six _before_ installation +@@ -312,23 +312,3 @@ setup( + "Topic :: Software Development :: Object Brokering"], + keywords='autobahn crossbar websocket realtime rfc6455 wamp rpc pubsub twisted asyncio xbr data-markets blockchain ethereum' + ) +- +- +-# regenerate Twisted plugin cache -try: -- import six # noqa -- _HAD_SIX = True +- from twisted.internet import reactor +- print("Twisted found (default reactor is {0})".format(reactor.__class__)) -except ImportError: -- _HAD_SIX = False -+# We don't want this package to regenerate the Twisted dropin.cache -+# as it creates a filesystem violation by writing outside of STAGEDIR -+_HAD_SIX = False - - CPY = platform.python_implementation() == 'CPython' - PY3 = sys.version_info >= (3,) +- # the user doesn't have Twisted, so skip +- pass +-else: +- # Make Twisted regenerate the dropin.cache, if possible. This is necessary +- # because in a site-wide install, dropin.cache cannot be rewritten by +- # normal users. +- try: +- from twisted.plugin import IPlugin, getPlugins +- list(getPlugins(IPlugin)) +- except Exception as e: +- print("Failed to update Twisted plugin cache: {0}".format(e)) +- else: +- print("Twisted dropin.cache regenerated.") diff --git a/www/py-autobahn/pkg-descr b/www/py-autobahn/pkg-descr index 24e8054f424e..b63d0fa89e7b 100644 --- a/www/py-autobahn/pkg-descr +++ b/www/py-autobahn/pkg-descr @@ -11,4 +11,4 @@ WebSocket allows bidirectional real-time messaging on the Web and WAMP adds asynchronous Remote Procedure Calls and Publish & Subscribe on top of WebSocket. -WWW: http://autobahn.ws/python +WWW: https://github.com/crossbario/autobahn-python