Download raw body.
[patch] net/py-anyio - try to make more compatible with trio version in ports
[patch] net/py-anyio - try to make more compatible with trio version in ports
[patch] net/py-anyio - try to make more compatible with trio version in ports
On 8/24/24 8:42 PM, aisha wrote:
> On 24/08/24 07:35PM, Daniel Dickman wrote:
>>
>> On Sat, 24 Aug 2024, A Tammy wrote:
>>
>>> Hi,
>>> Our net/py-anyio port is quite behind and can't be updated due to
>>> jupyter revdeps.
>> Out of curiosity, what issue do you see with newer versions of anyio and
>> jupyter?
>>
>> The jupyter_server 1.x series did have a constraint on anyio<4, but the
>> recent update to jupyter_server 2.x does not specify that constraint.
>>
>> Did you see some failure in jupyter after doing an update to newer anyio?
>>
>
> Here's the patch to update to 4.4.0, it's looking pretty good with the latest uvloop port having been merged in.
>
>> ===== 2 failed, 1445 passed, 20 skipped, 6 deselected, 6 xfailed in 54.42s =====
>
> I'll test it out with jupyter stuff as well, but am attaching the patch here in case someone wants to play with it as well.
>
The test output for jupyer server looks pretty good, only 10 failed tests
FAILED
tests/base/test_websocket.py::test_websocket_auth_required[jp_server_config0]
- Failed: DID NOT RAISE <class 'tornado.httpclient.HTTPClientError'>
FAILED
tests/base/test_websocket.py::test_websocket_auth_respsects_identity_provider[jp_server_config0]
- Failed: DID NOT RAISE <class 'tornado.httpclient.HTTPClientError'>
FAILED
tests/services/contents/test_api.py::test_delete_dirs[FileContentsManager]
- tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED
tests/services/contents/test_api.py::test_delete_dirs[AsyncFileContentsManager]
- tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED
tests/services/contents/test_api.py::test_delete_non_empty_dir[FileContentsManager]
- tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED
tests/services/contents/test_api.py::test_delete_non_empty_dir[AsyncFileContentsManager]
- tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED
tests/services/contents/test_manager.py::test_copy_big_dir[jp_contents_manager0]
- Failed: DID NOT RAISE <class 'tornado.web.HTTPError'>
FAILED
tests/services/contents/test_manager.py::test_copy_big_dir[jp_contents_manager1]
- Failed: DID NOT RAISE <class 'tornado.web.HTTPError'>
FAILED
tests/services/contents/test_manager.py::test_copy_big_dir[jp_contents_manager2]
- Failed: DID NOT RAISE <class 'tornado.web.HTTPError'>
FAILED
tests/services/contents/test_manager.py::test_copy_big_dir[jp_contents_manager3]
- Failed: DID NOT RAISE <class 'tornado.web.HTTPError'>
====== 10 failed, 976 passed, 15 skipped, 1 warning in 339.26s (0:05:39)
=======
I don't use jupyter, so I can't do any real world tests. But I think it
should be possible to get this in.
>
> diff --git a/net/py-anyio/Makefile b/net/py-anyio/Makefile
> index 91187f55937..f1918fd36b6 100644
> --- a/net/py-anyio/Makefile
> +++ b/net/py-anyio/Makefile
> @@ -1,9 +1,8 @@
> COMMENT = async library on top of asyncio or trio
>
> -MODPY_EGG_VERSION = 3.7.1
> +MODPY_EGG_VERSION = 4.4.0
> DISTNAME = anyio-${MODPY_EGG_VERSION}
> PKGNAME = py-${DISTNAME}
> -REVISION = 0
>
> CATEGORIES = net
>
> @@ -32,4 +31,10 @@ TEST_DEPENDS = devel/py-hypothesis${MODPY_FLAVOR} \
> security/py-trustme${MODPY_FLAVOR} \
> sysutils/py-psutil${MODPY_FLAVOR}
>
> +# the group is not always the same due to PORTS_PRIVSEP and we might not have
> +# a link local ipv6 address always present on an interface
> +MODPY_PYTEST_ARGS = --deselect "tests/test_fileio.py::TestPath::test_group" \
> + --deselect "tests/test_sockets.py::TestTCPListener::test_bind_link_local"
> +
> +
> .include <bsd.port.mk>
> diff --git a/net/py-anyio/distinfo b/net/py-anyio/distinfo
> index 93a877f1e75..6df5baed39a 100644
> --- a/net/py-anyio/distinfo
> +++ b/net/py-anyio/distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (anyio-3.7.1.tar.gz) = RKPJq6D13vpDJhqLPvuXiR8r19gE4OH1ZBm++hrfx4A=
> -SIZE (anyio-3.7.1.tar.gz) = 142927
> +SHA256 (anyio-4.4.0.tar.gz) = Wq3Gobu3zbC+3jhsrF4pQPXi/zqiAnfpkc8CjgWFzpQ=
> +SIZE (anyio-4.4.0.tar.gz) = 163930
> diff --git a/net/py-anyio/pkg/PLIST b/net/py-anyio/pkg/PLIST
> index 6047a0bffbd..fc7d0e28bac 100644
> --- a/net/py-anyio/pkg/PLIST
> +++ b/net/py-anyio/pkg/PLIST
> @@ -36,8 +36,6 @@ lib/python${MODPY_VERSION}/site-packages/anyio/_core/__init__.py
> ${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}/
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
> -lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}_compat.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> -lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}_compat.${MODPY_PYC_MAGIC_TAG}pyc
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}_eventloop.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}_eventloop.${MODPY_PYC_MAGIC_TAG}pyc
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}_exceptions.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> @@ -62,7 +60,6 @@ lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}_testing.${
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}_testing.${MODPY_PYC_MAGIC_TAG}pyc
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}_typedattr.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/${MODPY_PYCACHE}_typedattr.${MODPY_PYC_MAGIC_TAG}pyc
> -lib/python${MODPY_VERSION}/site-packages/anyio/_core/_compat.py
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/_eventloop.py
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/_exceptions.py
> lib/python${MODPY_VERSION}/site-packages/anyio/_core/_fileio.py
> @@ -80,6 +77,8 @@ lib/python${MODPY_VERSION}/site-packages/anyio/abc/__init__.py
> ${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}/
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}_eventloop.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> +lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}_eventloop.${MODPY_PYC_MAGIC_TAG}pyc
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}_resources.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}_resources.${MODPY_PYC_MAGIC_TAG}pyc
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}_sockets.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> @@ -92,6 +91,7 @@ lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}_tasks.${MODP
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}_tasks.${MODPY_PYC_MAGIC_TAG}pyc
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}_testing.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/${MODPY_PYCACHE}_testing.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/anyio/abc/_eventloop.py
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/_resources.py
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/_sockets.py
> lib/python${MODPY_VERSION}/site-packages/anyio/abc/_streams.py
>
[patch] net/py-anyio - try to make more compatible with trio version in ports
[patch] net/py-anyio - try to make more compatible with trio version in ports
[patch] net/py-anyio - try to make more compatible with trio version in ports