pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel
Module Name: pkgsrc
Committed By: adam
Date: Mon Jan 31 17:47:22 UTC 2022
Modified Files:
pkgsrc/devel: Makefile
Added Files:
pkgsrc/devel/py-nest-asyncio: DESCR Makefile PLIST distinfo
Log Message:
py-nest-asyncio: added version 1.5.4
By design asyncio does not allow its event loop to be nested. This presents a
practical problem: When in an environment where the event loop is already
running it's impossible to run tasks and wait for the result. Trying to do so
will give the error "RuntimeError: This event loop is already running".
The issue pops up in various environments, such as web servers, GUI
applications and in Jupyter notebooks.
This module patches asyncio to allow nested use of asyncio.run and
loop.run_until_complete.
To generate a diff of this commit:
cvs rdiff -u -r1.3570 -r1.3571 pkgsrc/devel/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-nest-asyncio/DESCR \
pkgsrc/devel/py-nest-asyncio/Makefile pkgsrc/devel/py-nest-asyncio/PLIST \
pkgsrc/devel/py-nest-asyncio/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/Makefile
diff -u pkgsrc/devel/Makefile:1.3570 pkgsrc/devel/Makefile:1.3571
--- pkgsrc/devel/Makefile:1.3570 Mon Jan 31 11:54:25 2022
+++ pkgsrc/devel/Makefile Mon Jan 31 17:47:22 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3570 2022/01/31 11:54:25 wiz Exp $
+# $NetBSD: Makefile,v 1.3571 2022/01/31 17:47:22 adam Exp $
#
COMMENT= Development utilities
@@ -2444,6 +2444,7 @@ SUBDIR+= py-mox
SUBDIR+= py-msgpack
SUBDIR+= py-mulpyplexer
SUBDIR+= py-multipledispatch
+SUBDIR+= py-nest-asyncio
SUBDIR+= py-newt
SUBDIR+= py-nose
SUBDIR+= py-nose-exclude
Added files:
Index: pkgsrc/devel/py-nest-asyncio/DESCR
diff -u /dev/null pkgsrc/devel/py-nest-asyncio/DESCR:1.1
--- /dev/null Mon Jan 31 17:47:22 2022
+++ pkgsrc/devel/py-nest-asyncio/DESCR Mon Jan 31 17:47:22 2022
@@ -0,0 +1,10 @@
+By design asyncio does not allow its event loop to be nested. This presents a
+practical problem: When in an environment where the event loop is already
+running it's impossible to run tasks and wait for the result. Trying to do so
+will give the error "RuntimeError: This event loop is already running".
+
+The issue pops up in various environments, such as web servers, GUI
+applications and in Jupyter notebooks.
+
+This module patches asyncio to allow nested use of asyncio.run and
+loop.run_until_complete.
Index: pkgsrc/devel/py-nest-asyncio/Makefile
diff -u /dev/null pkgsrc/devel/py-nest-asyncio/Makefile:1.1
--- /dev/null Mon Jan 31 17:47:22 2022
+++ pkgsrc/devel/py-nest-asyncio/Makefile Mon Jan 31 17:47:22 2022
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2022/01/31 17:47:22 adam Exp $
+
+DISTNAME= nest_asyncio-1.5.4
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_PYPI:=n/nest-asyncio/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/erdewit/nest_asyncio
+COMMENT= Patch asyncio to allow nested event loops
+LICENSE= modified-bsd
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-nest-asyncio/PLIST
diff -u /dev/null pkgsrc/devel/py-nest-asyncio/PLIST:1.1
--- /dev/null Mon Jan 31 17:47:22 2022
+++ pkgsrc/devel/py-nest-asyncio/PLIST Mon Jan 31 17:47:22 2022
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/31 17:47:22 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/nest_asyncio.py
+${PYSITELIB}/nest_asyncio.pyc
+${PYSITELIB}/nest_asyncio.pyo
Index: pkgsrc/devel/py-nest-asyncio/distinfo
diff -u /dev/null pkgsrc/devel/py-nest-asyncio/distinfo:1.1
--- /dev/null Mon Jan 31 17:47:22 2022
+++ pkgsrc/devel/py-nest-asyncio/distinfo Mon Jan 31 17:47:22 2022
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/01/31 17:47:22 adam Exp $
+
+BLAKE2s (nest_asyncio-1.5.4.tar.gz) = b224aa9e1ee746234fcba9de1aa67dbd0cfafe8a2c1ba1dea1e7da509325ddc4
+SHA512 (nest_asyncio-1.5.4.tar.gz) = 982e274712ec8a8004108492708f28fbf459c5f2d274e754387b0afa0f92425fe29be075e3402bbc319accf17974efcbb3015799421f6a10ed15cfa424f82310
+Size (nest_asyncio-1.5.4.tar.gz) = 5893 bytes
Home |
Main Index |
Thread Index |
Old Index