13f514f86f
Bugfixes: spawnProcess no longer opens an unwanted console on Windows The transition to the hyperlink package adds IPv6 support to twisted.python.url.URL. This is now deprecated and new code should use hyperlink directly twisted.logger now buffers only 200 events by default (reduced from 65536) while waiting for observers to be configured. The transition of twisted.python.url to using the hyperlink package enables a URL.click() with no arguments (or 0-length string argument) to resolve dot segments in the path. twisted.protocols.finger now works on Python 3. TLS-related tests now pass when run with OpenSSL 1.1.0. This makes tests pass again on macOS and Windows, as cryptography 1.8 and later include OpenSSL 1.1.0. UNIX socket endpoints now process all messages from recvmsg's ancillary data via twisted.internet.unix.Server.doRead/twisted.internet.unix.Client.doRead, while discarding and logging ones that don't contain file descriptors. twisted.internet.endpoints.HostnameEndpoint and twisted.web.client.Agent work again with reactors that do not provide IReactorPluggableNameResolver. This undoes the changes that broke downstream users such as treq.testing. Note that passing reactors that do not provide IReactorPluggableNameResolver to either is deprecated. A Python 3 Perspective Broker server which receives a remote call with keyword arguments from a Python 2 client will now decode any keys which are binary to strings instead of crashing. This fixes interoperability between Python 2 Buildbot clients and Python 3 Buildbot servers. twisted.internet._threadedselect now works on both Python 2 and 3. twisted.internet.interfaces.IResolverSimple implementers will now always be passed bytes, properly IDNA encoded if required, on Python 2. On Python 3, they will now be passed correctly IDNA-encoded Unicode forms of the domain, taking advantage of the idna library from PyPI if possible. This is to avoid Python's standard library (which has an out of date idna module) from mis- encoding domain names when non-ASCII Unicode is passed to it.
37 lines
1.5 KiB
Makefile
37 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.34 2017/06/21 18:35:35 adam Exp $
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
|
|
COMMENT= Framework for writing networked applications
|
|
.include "../../net/py-twisted/Makefile.common"
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-automat-[0-9]*:../../devel/py-automat
|
|
DEPENDS+= ${PYPKGPREFIX}-constantly-[0-9]*:../../devel/py-constantly
|
|
DEPENDS+= ${PYPKGPREFIX}-hyperlink-[0-9]*:../../www/py-hyperlink
|
|
DEPENDS+= ${PYPKGPREFIX}-incremental-[0-9]*:../../devel/py-incremental
|
|
DEPENDS+= ${PYPKGPREFIX}-OpenSSL>=0.6:../../security/py-OpenSSL
|
|
DEPENDS+= ${PYPKGPREFIX}-service_identity-[0-9]*:../../security/py-service_identity
|
|
DEPENDS+= ${PYPKGPREFIX}-ZopeInterface>=3.0.1:../../devel/py-ZopeInterface
|
|
|
|
REPLACE_PYTHON+= src/twisted/mail/test/pop3testserver.py
|
|
REPLACE_PYTHON+= src/twisted/trial/test/scripttest.py
|
|
REPLACE_PYTHON+= src/twisted/python/test/pullpipe.py
|
|
|
|
CFLAGS.SunOS+= -D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -Du_int=uint32_t
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
for i in cftp ckeygen conch mailmail pyhtmlizer tkconch trial twist twistd; do \
|
|
${MV} $$i $$i-${PYVERSSUFFIX}; \
|
|
done
|
|
|
|
# Do not "make package" after running "make test"; this will result in files
|
|
# being installed that should not be.
|
|
do-test:
|
|
cd ${WRKSRC} && ./build/scripts-${PYVERSSUFFIX}/trial twisted
|
|
|
|
# created during self test.
|
|
CHECK_FILES_SKIP+= ${PREFIX}/${PYSITELIB}/twisted/plugins/dropin.cache
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|