guix_mirror_bot pushed a commit to branch add-compress-debug-symbols-phase
in repository guix.

commit ab4172792dcc0b66e51e86e6a94683a1e3e99146
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Mon Nov 10 09:33:04 2025 +0900

    gnu: python-uvicorn: Update to 0.38.0.
    
    * gnu/packages/python-web.scm (python-uvicorn): Update to 0.38.0.
    [#:test-flags]: Add "-W" "ignore::DeprecationWarning" and "-W"
    "ignore::ResourceWarning". Always skip the
    `test_send_binary_data_to_server_bigger_than_default_on_websockets' test.
    [native-inputs]: Add python-pytest-xdist.
    
    Change-Id: I3de70d764311350866e1820d52dd20b3442738da
---
 gnu/packages/python-web.scm | 42 ++++++++++++++++++++++++++----------------
 1 file changed, 26 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 73af236e26..7e8b08f912 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -28,7 +28,7 @@
 ;;; Copyright © 2018 Tomáš Čech <[email protected]>
 ;;; Copyright © 2018, 2019, 2021, 2024 Nicolas Goaziou <[email protected]>
 ;;; Copyright © 2018 Mathieu Othacehe <[email protected]>
-;;; Copyright © 2018, 2020, 2021, 2022, 2023 Maxim Cournoyer 
<[email protected]>
+;;; Copyright © 2018, 2020-2023, 2025 Maxim Cournoyer <[email protected]>
 ;;; Copyright © 2018 swedebugia <[email protected]>
 ;;; Copyright © 2019 Vagrant Cascadian <[email protected]>
 ;;; Copyright © 2019, 2023 Brendan Tildesley <[email protected]>
@@ -9395,7 +9395,7 @@ cython_always = true"))))))))
 (define-public python-uvicorn
   (package
     (name "python-uvicorn")
-    (version "0.34.0")
+    (version "0.38.0")
     (source
      (origin
        ;; PyPI tarball has no tests.
@@ -9405,24 +9405,33 @@ cython_always = true"))))))))
               (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "05lkxnpzmr0kik81kdcvavjvvc4d1lgmw88mr4vbwsqk147wgqbc"))))
+        (base32 "0bfib7wsbg0h48y5wipk93gn3sgv7jkxvdxzvxd0xfnf1wa2jih3"))))
     (build-system pyproject-build-system)
     (arguments
      (list
       #:test-flags
-      #~(list "-o" "asyncio_mode=auto"
-              ;; For some reason tests stacked in infinity re-invocation loop:
-              ;; AssertionError where is_alive =
-              ;; <uvicorn.supervisors.multiprocess.Process object at
-              ;; 0x7ffff39b6110>.is_alive.
-              ;; Maybe this <https://github.com/encode/uvicorn/issues/2466>.
-              "--ignore=tests/supervisors/test_multiprocess.py"
-
-              #$@(cond
-                  ((or (target-aarch64?)
-                       (target-riscv64?))
-                   '("-k not 
test_send_binary_data_to_server_bigger_than_default_on_websockets"))
-                  (#t '())))))
+      #~(list
+         "-o" "asyncio_mode=auto"
+         ;; For some reason tests stacked in infinity re-invocation loop:
+         ;; AssertionError where is_alive =
+         ;; <uvicorn.supervisors.multiprocess.Process object at
+         ;; 0x7ffff39b6110>.is_alive.
+         ;; Maybe this <https://github.com/encode/uvicorn/issues/2466>.
+         "--ignore=tests/supervisors/test_multiprocess.py"
+
+         ;; There are websockets related deprecation warnings breaking
+         ;; the test suite (see:
+         ;; <https://github.com/Kludex/uvicorn/discussions/2755>).
+         "-W" "ignore::DeprecationWarning"
+         ;; The test_ssl_config test fails due to the following warning:
+         ;; "ResourceWarning: unclosed <socket.socket fd=13, family=1, type=1,
+         ;; proto=0>".
+         "-W" "ignore::ResourceWarning"
+
+         ;; This test does not raise a ConnectionClosedError exception as
+         ;; expected (see:
+         ;; 
<https://github.com/Kludex/uvicorn/discussions/2755#discussioncomment-14918784>).
+         "-k not 
test_send_binary_data_to_server_bigger_than_default_on_websockets")))
     (native-inputs
      (list nss-certs-for-test
            python-a2wsgi
@@ -9431,6 +9440,7 @@ cython_always = true"))))))))
            python-pytest
            python-pytest-asyncio-0.26
            python-pytest-mock
+           python-pytest-xdist
            python-requests
            python-trustme
            python-wsproto))

Reply via email to