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.17.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8a4f63b3c9bb
branches:  trunk
changeset: 385394:8a4f63b3c9bb
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Sep 16 13:00:15 2022 +0000

description:
py-uvloop: updated to 0.17.0

v0.17.0

This release adds Python 3.11 support, updates bundled libuv to 1.43.0
and fixes a handful of issues.

Changes

Expose uv_loop_t pointer for integration with other C-extensions
Support python 3.11+
Expose libuv uv_fs_event functionality
Activate debug mode when -X dev is used
Expose uv_version() for libuv API compatibility
Fix loop.getaddrinfo() and tests
Bump to libuv 1.43.0

Fixes

_TransProtPair is no longer defined in asyncio.events
use a TypeVar for asyncio.BaseProtocol
Fix segfault in TimerHandle.when() after cleared
Avoid self._errpipe_write double close
Fix typo in test
Fix potential infinite loop
use a stack of self._fds_to_close to prevent double closes
Fix incorrect main thread id value forking from a thread
create_subprocess_exec should treat env={} as empty environment
Queue write only after processing all buffers
Drop Python 3.6 support for thread ident
bugfix: write to another transport in resume_writing() fails

Build

Upgrade GitHub Actions
typo same as same
setup.py: allow to override extra_compile_args
Drop hack in setup.py in finalize_options (492)
Fix tests invocation on release CI worklow

Documentation

use asyncio.Runner loop_factory on 3.11+
Fix CI badge in docs, remove remaining Travis CI references from docs
Fix typo in README

diffstat:

 devel/py-uvloop/Makefile               |   7 +++----
 devel/py-uvloop/PLIST                  |   4 +++-
 devel/py-uvloop/distinfo               |  10 +++++-----
 devel/py-uvloop/patches/patch-setup.py |  18 ++++++++++--------
 4 files changed, 21 insertions(+), 18 deletions(-)

diffs (98 lines):

diff -r 2960f347f616 -r 8a4f63b3c9bb devel/py-uvloop/Makefile
--- a/devel/py-uvloop/Makefile  Fri Sep 16 12:33:30 2022 +0000
+++ b/devel/py-uvloop/Makefile  Fri Sep 16 13:00:15 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.28 2022/01/04 20:53:47 wiz Exp $
+# $NetBSD: Makefile,v 1.29 2022/09/16 13:00:15 adam Exp $
 
-DISTNAME=      uvloop-0.16.0
+DISTNAME=      uvloop-0.17.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=u/uvloop/}
 
@@ -11,7 +10,7 @@
 COMMENT=       Fast implementation of asyncio event loop on top of libuv
 LICENSE=       mit AND apache-2.0
 
-DEPENDS+=      libuv>=1.42.0:../../devel/libuv
+DEPENDS+=      libuv>=1.43.0:../../devel/libuv
 TEST_DEPENDS+= ${PYPKGPREFIX}-OpenSSL-[0-9]*:../../security/py-OpenSSL
 TEST_DEPENDS+= ${PYPKGPREFIX}-psutil-[0-9]*:../../sysutils/py-psutil
 
diff -r 2960f347f616 -r 8a4f63b3c9bb devel/py-uvloop/PLIST
--- a/devel/py-uvloop/PLIST     Fri Sep 16 12:33:30 2022 +0000
+++ b/devel/py-uvloop/PLIST     Fri Sep 16 13:00:15 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2021/02/10 08:18:25 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2022/09/16 13:00:15 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -26,6 +26,8 @@
 ${PYSITELIB}/uvloop/handles/basetransport.pyx
 ${PYSITELIB}/uvloop/handles/check.pxd
 ${PYSITELIB}/uvloop/handles/check.pyx
+${PYSITELIB}/uvloop/handles/fsevent.pxd
+${PYSITELIB}/uvloop/handles/fsevent.pyx
 ${PYSITELIB}/uvloop/handles/handle.pxd
 ${PYSITELIB}/uvloop/handles/handle.pyx
 ${PYSITELIB}/uvloop/handles/idle.pxd
diff -r 2960f347f616 -r 8a4f63b3c9bb devel/py-uvloop/distinfo
--- a/devel/py-uvloop/distinfo  Fri Sep 16 12:33:30 2022 +0000
+++ b/devel/py-uvloop/distinfo  Fri Sep 16 13:00:15 2022 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.26 2022/04/25 21:46:49 tnn Exp $
+$NetBSD: distinfo,v 1.27 2022/09/16 13:00:15 adam Exp $
 
-BLAKE2s (uvloop-0.16.0.tar.gz) = 0c9a34b053ad5d385f6e840d5098016cff71f854f730c33a060287e3d979491a
-SHA512 (uvloop-0.16.0.tar.gz) = dd6dcec38f7f94dc0cf0123302fd6fe404428196b452a80a8258a207654e3f67e210233be3d649668c22b48390232d0347706b1d87fb50016287142c742b806d
-Size (uvloop-0.16.0.tar.gz) = 2129067 bytes
-SHA1 (patch-setup.py) = 31968fa87f7a5a626f79e4bdfb0bd3f054cfc95e
+BLAKE2s (uvloop-0.17.0.tar.gz) = b0d5eca1cabe4d6286c830ac4aec7f2e1d67b36570b2fd96724ceddc5cbe90fe
+SHA512 (uvloop-0.17.0.tar.gz) = 861d7f28ad879ecbfa40d53b9626e38660f02618fd433edbd5a8ea5100a17ade042a26549def04bc23f928aca3adc83d62503f0548038cd400284f5654003ee4
+Size (uvloop-0.17.0.tar.gz) = 2279973 bytes
+SHA1 (patch-setup.py) = f11dba60f6e4fde5e7b42f82ca42becf115cce8e
 SHA1 (patch-uvloop_loop.c) = 23e35e68c2cc1ab4c9ddedfe74b87f2d293d2f2b
diff -r 2960f347f616 -r 8a4f63b3c9bb devel/py-uvloop/patches/patch-setup.py
--- a/devel/py-uvloop/patches/patch-setup.py    Fri Sep 16 12:33:30 2022 +0000
+++ b/devel/py-uvloop/patches/patch-setup.py    Fri Sep 16 13:00:15 2022 +0000
@@ -1,27 +1,29 @@
-$NetBSD: patch-setup.py,v 1.5 2022/01/27 10:06:38 wiz Exp $
+$NetBSD: patch-setup.py,v 1.6 2022/09/16 13:00:15 adam Exp $
 
 Relax restrictions.
 Use system libuv (--use-system-libuv option does not work for 'install').
 
---- setup.py.orig      2021-08-10 19:05:35.000000000 +0000
+--- setup.py.orig      2022-09-14 14:53:41.000000000 +0000
 +++ setup.py
-@@ -25,13 +25,9 @@ CYTHON_DEPENDENCY = 'Cython(>=0.29.24,<0
+@@ -25,15 +25,11 @@ CYTHON_DEPENDENCY = 'Cython(>=0.29.32,<0
  
  # Minimal dependencies required to test uvloop.
  TEST_DEPENDENCIES = [
 -    # pycodestyle is a dependency of flake8, but it must be frozen because
 -    # their combination breaks too often
 -    # (example breakage: https://gitlab.com/pycqa/flake8/issues/427)
-     'aiohttp',
+     # aiohttp doesn't support 3.11 yet,
+     # see https://github.com/aio-libs/aiohttp/issues/6600
+     'aiohttp ; python_version < "3.11"',
      'flake8~=3.9.2',
      'psutil',
 -    'pycodestyle~=2.7.0',
-     'pyOpenSSL~=19.0.0',
+     'pyOpenSSL~=22.0.0',
      'mypy>=0.800',
- ]
-@@ -121,7 +117,7 @@ class uvloop_build_ext(build_ext):
-             return
+     CYTHON_DEPENDENCY,
+@@ -118,7 +114,7 @@ class uvloop_build_ext(build_ext):
  
+     def initialize_options(self):
          super().initialize_options()
 -        self.use_system_libuv = False
 +        self.use_system_libuv = True



Home | Main Index | Thread Index | Old Index