pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-uvloop py-uvloop: updated to 0.9.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e35f97a22a22
branches:  trunk
changeset: 372065:e35f97a22a22
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Nov 27 10:44:55 2017 +0000

description:
py-uvloop: updated to 0.9.0

v0.9.0
TCP & UDP
---------
transport.get_extra_info('socket') now returns a socket-like
object. It supports socket methods like setsockopts(), but
prohibits send(), recv(), close() and any other calls that
can interfere with the transport that ultimately owns this file
descriptor.

TCP_NODELAY is used by default for all TCP connections.

Make Transport.resume_reading() and pause_reading() idempotent.
This will match asyncio in Python 3.7.

loop.create_server() keeps a strong reference to the Server
object it returns until its closed.

Fix loop.connect_accepted_socket() to return correct SSL
transport.

The UDP transport layer was rewritten from scratch. Now it uses
uv_poll_* libuv APIs, instead of high-level uv_udp_* ones.
This could mean a slight performance regression, and will be
reverted when we port uvloop to Windows. For now this is
the only viable option to make uvloop fully compatible with asyncio.
When libuv gets an API to connect UDP sockets, uv_udp_connect(),
we'll be able to switch to a better UDP implementation.

UDPTransport.sendto(data, addr) will raise an exception if
addr requires a name resolution.


Low-level sockets
-----------------
loop.add_reader() and loop.add_writer() accept file-like
objects.

loop.sock_connect() supports 4 element address tuples for
IPv6 sockets.

Protect sockets from closing while they are in use by
loop.sock_*() methods. Close all reader/writer sockets the
loop owns when it closes.


Other event loop APIs
---------------------
loop.run_until_complete() cleans up done callbacks in all
situations.

New uv_loop_fork() libuv API is used in loop.subprocess_shell()
and loop.subprocess_exec() making them more stable.

loop.call_later() accepts infinite time float('inf').

loop.subprocess_exec() accepts pathlib.Path objects for its
cwd parameter.

Support pathlib.Path objects in loop.create_unix_connection()
and loop.create_unix_server().

Try removing existing stale Unix socket paths in
loop.create_unix_server().

ascii encoding is tried before encoding with idna.

Fix slow_callback_duration repr in warnings for callback handles
and Tasks.


Python 3.7
----------
Some APIs that will be available in Python 3.7 in vanilla asyncio,
but can be used with uvloop today.

Implement .cancelled() method for callback and timer handles.

Add Transport.is_reading().

Implement loop.sock_recv_into().

Python 3.7.0a1 is now supported.


Miscellaneous
-------------
Drop custom uvloop Future and Task implementations. This means
that there will be a tiny performance regression for Python 3.5
deploys.

Limit stack traces in debug mode to make it faster.

signal.siginterrupt is now used by signals machinery to let
system calls to be repeated by default, instead of raising an
EINTR.


Build
-----
libuv in uvloop has been upgraded from v1.11.0 to v1.17.0. Aside
from bug fixes and performance improvements, libuv survives
fork.

LIBUV_CONFIGURE_HOST environment variable can be used to
cross-compile uvloop/libuv.

Cyhton was upgraded from 0.25.2 to 0.27.3.

uvloop binary is linked with pthread

diffstat:

 devel/py-uvloop/Makefile |   4 ++--
 devel/py-uvloop/PLIST    |   5 ++---
 devel/py-uvloop/distinfo |  10 +++++-----
 3 files changed, 9 insertions(+), 10 deletions(-)

diffs (56 lines):

diff -r 7e11f6e329ef -r e35f97a22a22 devel/py-uvloop/Makefile
--- a/devel/py-uvloop/Makefile  Mon Nov 27 08:08:18 2017 +0000
+++ b/devel/py-uvloop/Makefile  Mon Nov 27 10:44:55 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2017/09/13 06:21:01 adam Exp $
+# $NetBSD: Makefile,v 1.5 2017/11/27 10:44:55 adam Exp $
 
-DISTNAME=      uvloop-0.8.1
+DISTNAME=      uvloop-0.9.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=u/uvloop/}
diff -r 7e11f6e329ef -r e35f97a22a22 devel/py-uvloop/PLIST
--- a/devel/py-uvloop/PLIST     Mon Nov 27 08:08:18 2017 +0000
+++ b/devel/py-uvloop/PLIST     Mon Nov 27 10:44:55 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/06/24 06:47:58 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/11/27 10:44:55 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -17,10 +17,8 @@
 ${PYSITELIB}/uvloop/_testbase.pyo
 ${PYSITELIB}/uvloop/cbhandles.pxd
 ${PYSITELIB}/uvloop/cbhandles.pyx
-${PYSITELIB}/uvloop/chain_futs.pyx
 ${PYSITELIB}/uvloop/dns.pyx
 ${PYSITELIB}/uvloop/errors.pyx
-${PYSITELIB}/uvloop/future.pyx
 ${PYSITELIB}/uvloop/handles/async_.pxd
 ${PYSITELIB}/uvloop/handles/async_.pyx
 ${PYSITELIB}/uvloop/handles/basetransport.pxd
@@ -62,6 +60,7 @@
 ${PYSITELIB}/uvloop/loop.pxd
 ${PYSITELIB}/uvloop/loop.pyx
 ${PYSITELIB}/uvloop/loop.so
+${PYSITELIB}/uvloop/pseudosock.pyx
 ${PYSITELIB}/uvloop/request.pxd
 ${PYSITELIB}/uvloop/request.pyx
 ${PYSITELIB}/uvloop/server.pxd
diff -r 7e11f6e329ef -r e35f97a22a22 devel/py-uvloop/distinfo
--- a/devel/py-uvloop/distinfo  Mon Nov 27 08:08:18 2017 +0000
+++ b/devel/py-uvloop/distinfo  Mon Nov 27 10:44:55 2017 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2017/09/13 06:21:01 adam Exp $
+$NetBSD: distinfo,v 1.3 2017/11/27 10:44:55 adam Exp $
 
-SHA1 (uvloop-0.8.1.tar.gz) = cb3569ddc228cf12954d0cc0e0e9d4594be0f188
-RMD160 (uvloop-0.8.1.tar.gz) = 5ca907bd29dde9f559231daf3fb4a8c25c87908d
-SHA512 (uvloop-0.8.1.tar.gz) = 45dba019a0dacaae6c2a732c3f321402c19c945b0d9fa35b9cae28f888a54c7d4b322b450c55a6cf21c1aac01dc49b90eccdffbf4cb8c812a5ec8b9e805e01e4
-Size (uvloop-0.8.1.tar.gz) = 1719488 bytes
+SHA1 (uvloop-0.9.0.tar.gz) = 641239a1873b63bce52d82ee66efbbc8640bd8dc
+RMD160 (uvloop-0.9.0.tar.gz) = 7fc56ccae62a6c74cc416fc2f4a545dece6624fc
+SHA512 (uvloop-0.9.0.tar.gz) = c75797e5443d998ad209e0f349edb830622acdabc2f0c85e050c73266d0ce3001f73c05c2bb1122b421ed458348d3294e3bb96d730ec43ceeafe1a96e2579a9d
+Size (uvloop-0.9.0.tar.gz) = 1793384 bytes
 SHA1 (patch-setup.py) = 4be1c2b9612dfaa749ae1c92382fd054b17a1d8c



Home | Main Index | Thread Index | Old Index