pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-trio



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Feb 22 13:56:14 UTC 2022

Modified Files:
        pkgsrc/devel/py-trio: Makefile PLIST distinfo

Log Message:
py-trio: updated to 0.20.0

Trio 0.20.0 (2022-02-21)
------------------------

Features
- You can now conveniently spawn a child process in a background task
  and interact it with on the fly using ``process = await
  nursery.start(run_process, ...)``. See `run_process` for more details.
  We recommend most users switch to this new API. Also note that:

  - ``trio.open_process`` has been deprecated in favor of
    `trio.lowlevel.open_process`,
  - The ``aclose`` method on `Process` has been deprecated along with
    ``async with process_obj``.
- Now context variables set with `contextvars` are preserved when running functions
  in a worker thread with `trio.to_thread.run_sync`, or when running
  functions from the worker thread in the parent Trio thread with
  `trio.from_thread.run`, and `trio.from_thread.run_sync`.
  This is done by automatically copying the `contextvars` context.
  `trio.lowlevel.spawn_system_task` now also receives an optional ``context`` argument.

Bugfixes
- Trio now avoids creating cyclic garbage when a `MultiError` is generated and filtered,
  including invisibly within the cancellation system.  This means errors raised
  through nurseries and cancel scopes should result in less GC latency.
- Trio now deterministically cleans up file descriptors that were opened before
  subprocess creation fails. Previously, they would remain open until the next run of
  the garbage collector.
- Add compatibility with OpenSSL 3.0 on newer Python and PyPy versions by working
  around ``SSLEOFError`` not being raised properly.
- Fix a bug that could cause `Process.wait` to hang on Linux systems using pidfds, if
  another task were to access `Process.returncode` after the process exited but before
  ``wait`` woke up


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-trio/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-trio/PLIST \
    pkgsrc/devel/py-trio/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/py-trio/Makefile
diff -u pkgsrc/devel/py-trio/Makefile:1.3 pkgsrc/devel/py-trio/Makefile:1.4
--- pkgsrc/devel/py-trio/Makefile:1.3   Sun Jan 23 09:01:11 2022
+++ pkgsrc/devel/py-trio/Makefile       Tue Feb 22 13:56:14 2022
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2022/01/23 09:01:11 adam Exp $
+# $NetBSD: Makefile,v 1.4 2022/02/22 13:56:14 adam Exp $
 
-DISTNAME=      trio-0.19.0
+DISTNAME=      trio-0.20.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/trio/}
 
@@ -11,7 +10,6 @@ HOMEPAGE=     https://github.com/python-trio
 COMMENT=       Friendly Python library for async concurrency and I/O
 LICENSE=       mit OR apache-2.0
 
-DEPENDS+=      ${PYPKGPREFIX}-astor>=0.8.1:../../devel/py-astor
 DEPENDS+=      ${PYPKGPREFIX}-async_generator>=1.9:../../devel/py-async_generator
 DEPENDS+=      ${PYPKGPREFIX}-attrs>=19.2.0:../../devel/py-attrs
 DEPENDS+=      ${PYPKGPREFIX}-cffi>=1.14:../../devel/py-cffi
@@ -20,6 +18,7 @@ DEPENDS+=     ${PYPKGPREFIX}-outcome>=1.1.0:
 DEPENDS+=      ${PYPKGPREFIX}-sniffio>=1.2.0:../../misc/py-sniffio
 DEPENDS+=      ${PYPKGPREFIX}-sortedcontainers>=2.2.2:../../devel/py-sortedcontainers
 TEST_DEPENDS+= ${PYPKGPREFIX}-OpenSSL-[0-9]*:../../security/py-OpenSSL
+TEST_DEPENDS+= ${PYPKGPREFIX}-astor>=0.8.1:../../devel/py-astor
 TEST_DEPENDS+= ${PYPKGPREFIX}-jedi-[0-9]*:../../editors/py-jedi
 TEST_DEPENDS+= ${PYPKGPREFIX}-pylint-[0-9]*:../../devel/py-pylint
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
@@ -29,9 +28,6 @@ USE_LANGUAGES=        # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-# test status as of 0.19.0
-# hangs, needs to be stopped with ctrl-c; then
-# 3 failed, 466 passed, 12 skipped
 do-test:
        cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
 

Index: pkgsrc/devel/py-trio/PLIST
diff -u pkgsrc/devel/py-trio/PLIST:1.1 pkgsrc/devel/py-trio/PLIST:1.2
--- pkgsrc/devel/py-trio/PLIST:1.1      Wed Jan 19 21:14:26 2022
+++ pkgsrc/devel/py-trio/PLIST  Tue Feb 22 13:56:14 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2022/01/19 21:14:26 rhialto Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/02/22 13:56:14 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -298,6 +298,9 @@ ${PYSITELIB}/trio/tests/test_abc.pyo
 ${PYSITELIB}/trio/tests/test_channel.py
 ${PYSITELIB}/trio/tests/test_channel.pyc
 ${PYSITELIB}/trio/tests/test_channel.pyo
+${PYSITELIB}/trio/tests/test_contextvars.py
+${PYSITELIB}/trio/tests/test_contextvars.pyc
+${PYSITELIB}/trio/tests/test_contextvars.pyo
 ${PYSITELIB}/trio/tests/test_deprecate.py
 ${PYSITELIB}/trio/tests/test_deprecate.pyc
 ${PYSITELIB}/trio/tests/test_deprecate.pyo
Index: pkgsrc/devel/py-trio/distinfo
diff -u pkgsrc/devel/py-trio/distinfo:1.1 pkgsrc/devel/py-trio/distinfo:1.2
--- pkgsrc/devel/py-trio/distinfo:1.1   Wed Jan 19 21:14:26 2022
+++ pkgsrc/devel/py-trio/distinfo       Tue Feb 22 13:56:14 2022
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2022/01/19 21:14:26 rhialto Exp $
+$NetBSD: distinfo,v 1.2 2022/02/22 13:56:14 adam Exp $
 
-BLAKE2s (trio-0.19.0.tar.gz) = 5b279ad804f3a014c72b76d9599b1ce4f663760e77a70df0c0d711377616d3a7
-SHA512 (trio-0.19.0.tar.gz) = e517d19beca7607128ef066ca8ab6ff9b0934a6a35210507f4fc1907941da98a86abf1a3c23711dc9a9d86be4d5a2f648f99b6c2913cbf8665aeae7ecdfea947
-Size (trio-0.19.0.tar.gz) = 440341 bytes
+BLAKE2s (trio-0.20.0.tar.gz) = 52d3d031829ca01c5ff435930e1d9b155f004d7024232d563d22a88b4a9712e6
+SHA512 (trio-0.20.0.tar.gz) = 892604fb74298e8454c4863ff54a2a05775d11c88cb26fa9188a1727c8bd2847c1a4a4a497d9b2045b26a1f886eb08aeec17a7047769f8b21796549405206dd7
+Size (trio-0.20.0.tar.gz) = 444961 bytes



Home | Main Index | Thread Index | Old Index