pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-trio py-trio: updated to 0.22.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9b3766ffe801
branches:  trunk
changeset: 388233:9b3766ffe801
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Nov 15 09:49:38 2022 +0000

description:
py-trio: updated to 0.22.0

Trio 0.22.0 (2022-09-28)
------------------------

Headline features
~~~~~~~~~~~~~~~~~
- ``MultiError`` has been deprecated in favor of the standard :exc:`BaseExceptionGroup`
  (introduced in :pep:`654`). On Python versions below 3.11, this exception and its
  derivative :exc:`ExceptionGroup` are provided by the backport_. Trio still raises
  ``MultiError``, but it has been refactored into a subclass of :exc:`BaseExceptionGroup`
  which users should catch instead of ``MultiError``. Uses of the ``MultiError.filter()``
  class method should be replaced with :meth:`BaseExceptionGroup.split`. Uses of the
  ``MultiError.catch()`` class method should be replaced with either ``except*`` clauses
  (on Python 3.11+) or the ``exceptiongroup.catch()`` context manager provided by the
  backport_.

  See the :ref:`updated documentation <exceptiongroups>` for details.


Features
~~~~~~~~
- Added support for `Datagram TLS
  <https://en.wikipedia.org/wiki/Datagram_Transport_Layer_Security>`__,
  for secure communication over UDP. Currently requires `PyOpenSSL
  <https://pypi.org/p/pyopenssl>`__.

diffstat:

 devel/py-trio/Makefile |  10 +++++++---
 devel/py-trio/PLIST    |  20 +++++++++++++-------
 devel/py-trio/distinfo |   8 ++++----
 3 files changed, 24 insertions(+), 14 deletions(-)

diffs (110 lines):

diff -r 41e0891a7dbb -r 9b3766ffe801 devel/py-trio/Makefile
--- a/devel/py-trio/Makefile    Tue Nov 15 09:30:59 2022 +0000
+++ b/devel/py-trio/Makefile    Tue Nov 15 09:49:38 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2022/10/19 14:25:18 nia Exp $
+# $NetBSD: Makefile,v 1.7 2022/11/15 09:49:38 adam Exp $
 
-DISTNAME=      trio-0.21.0
+DISTNAME=      trio-0.22.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/trio/}
@@ -12,7 +12,6 @@
 
 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
 DEPENDS+=      ${PYPKGPREFIX}-idna>=2.10:../../www/py-idna
 DEPENDS+=      ${PYPKGPREFIX}-outcome>=1.1.0:../../devel/py-outcome
 DEPENDS+=      ${PYPKGPREFIX}-sniffio>=1.2.0:../../misc/py-sniffio
@@ -27,6 +26,11 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 311
+DEPENDS+=      ${PYPKGPREFIX}-exceptiongroup>=1.0.0:../../devel/py-exceptiongroup
+.endif
+
 do-test:
        cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
 
diff -r 41e0891a7dbb -r 9b3766ffe801 devel/py-trio/PLIST
--- a/devel/py-trio/PLIST       Tue Nov 15 09:30:59 2022 +0000
+++ b/devel/py-trio/PLIST       Tue Nov 15 09:49:38 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2022/02/22 13:56:14 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/11/15 09:49:38 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -127,9 +127,6 @@
 ${PYSITELIB}/trio/_core/tests/test_multierror_scripts/apport_excepthook.py
 ${PYSITELIB}/trio/_core/tests/test_multierror_scripts/apport_excepthook.pyc
 ${PYSITELIB}/trio/_core/tests/test_multierror_scripts/apport_excepthook.pyo
-${PYSITELIB}/trio/_core/tests/test_multierror_scripts/custom_excepthook.py
-${PYSITELIB}/trio/_core/tests/test_multierror_scripts/custom_excepthook.pyc
-${PYSITELIB}/trio/_core/tests/test_multierror_scripts/custom_excepthook.pyo
 ${PYSITELIB}/trio/_core/tests/test_multierror_scripts/ipython_custom_exc.py
 ${PYSITELIB}/trio/_core/tests/test_multierror_scripts/ipython_custom_exc.pyc
 ${PYSITELIB}/trio/_core/tests/test_multierror_scripts/ipython_custom_exc.pyo
@@ -139,9 +136,6 @@
 ${PYSITELIB}/trio/_core/tests/test_multierror_scripts/simple_excepthook_IPython.py
 ${PYSITELIB}/trio/_core/tests/test_multierror_scripts/simple_excepthook_IPython.pyc
 ${PYSITELIB}/trio/_core/tests/test_multierror_scripts/simple_excepthook_IPython.pyo
-${PYSITELIB}/trio/_core/tests/test_multierror_scripts/simple_excepthook_partial.py
-${PYSITELIB}/trio/_core/tests/test_multierror_scripts/simple_excepthook_partial.pyc
-${PYSITELIB}/trio/_core/tests/test_multierror_scripts/simple_excepthook_partial.pyo
 ${PYSITELIB}/trio/_core/tests/test_parking_lot.py
 ${PYSITELIB}/trio/_core/tests/test_parking_lot.pyc
 ${PYSITELIB}/trio/_core/tests/test_parking_lot.pyo
@@ -169,6 +163,9 @@
 ${PYSITELIB}/trio/_deprecate.py
 ${PYSITELIB}/trio/_deprecate.pyc
 ${PYSITELIB}/trio/_deprecate.pyo
+${PYSITELIB}/trio/_dtls.py
+${PYSITELIB}/trio/_dtls.pyc
+${PYSITELIB}/trio/_dtls.pyo
 ${PYSITELIB}/trio/_file_io.py
 ${PYSITELIB}/trio/_file_io.pyc
 ${PYSITELIB}/trio/_file_io.pyo
@@ -271,6 +268,9 @@
 ${PYSITELIB}/trio/testing/_checkpoints.py
 ${PYSITELIB}/trio/testing/_checkpoints.pyc
 ${PYSITELIB}/trio/testing/_checkpoints.pyo
+${PYSITELIB}/trio/testing/_fake_net.py
+${PYSITELIB}/trio/testing/_fake_net.pyc
+${PYSITELIB}/trio/testing/_fake_net.pyo
 ${PYSITELIB}/trio/testing/_memory_streams.py
 ${PYSITELIB}/trio/testing/_memory_streams.pyc
 ${PYSITELIB}/trio/testing/_memory_streams.pyo
@@ -304,9 +304,15 @@
 ${PYSITELIB}/trio/tests/test_deprecate.py
 ${PYSITELIB}/trio/tests/test_deprecate.pyc
 ${PYSITELIB}/trio/tests/test_deprecate.pyo
+${PYSITELIB}/trio/tests/test_dtls.py
+${PYSITELIB}/trio/tests/test_dtls.pyc
+${PYSITELIB}/trio/tests/test_dtls.pyo
 ${PYSITELIB}/trio/tests/test_exports.py
 ${PYSITELIB}/trio/tests/test_exports.pyc
 ${PYSITELIB}/trio/tests/test_exports.pyo
+${PYSITELIB}/trio/tests/test_fakenet.py
+${PYSITELIB}/trio/tests/test_fakenet.pyc
+${PYSITELIB}/trio/tests/test_fakenet.pyo
 ${PYSITELIB}/trio/tests/test_file_io.py
 ${PYSITELIB}/trio/tests/test_file_io.pyc
 ${PYSITELIB}/trio/tests/test_file_io.pyo
diff -r 41e0891a7dbb -r 9b3766ffe801 devel/py-trio/distinfo
--- a/devel/py-trio/distinfo    Tue Nov 15 09:30:59 2022 +0000
+++ b/devel/py-trio/distinfo    Tue Nov 15 09:49:38 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2022/06/09 15:53:27 adam Exp $
+$NetBSD: distinfo,v 1.4 2022/11/15 09:49:38 adam Exp $
 
-BLAKE2s (trio-0.21.0.tar.gz) = 98b8695ff8e22678d36de810e899dde0b84e9e9f6f23b411e224415ef5b9c25d
-SHA512 (trio-0.21.0.tar.gz) = 146b18886c9a1483c35c2469017201c4ce5e74bcd1be670150ab9ec7c4ad51dd416ca201f911cf18a27391280a00580718a05b17b6470a646c477e4c626c8da4
-Size (trio-0.21.0.tar.gz) = 446500 bytes
+BLAKE2s (trio-0.22.0.tar.gz) = 0aef473b7cd2cf1fddd353e0a48f9638f5edc2a1dd5e6dd3440d40755a524f81
+SHA512 (trio-0.22.0.tar.gz) = c0952aeeeb4a635fc1e34052060cfb59fa2339687fe3bfe131eec9c72ca6da1b206eebd36d8a91c5df8a6951e075c5781e55565f4a9a18944b02727a57d9c222
+Size (trio-0.22.0.tar.gz) = 472205 bytes



Home | Main Index | Thread Index | Old Index