diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2025-11-10 09:33:04 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-11-19 09:42:13 +0900 |
| commit | 411a383b63cee1a72cfc1c02978fc006770d05cd (patch) | |
| tree | e0c4b16a727a5d34105014458d19a70614b75ad3 | |
| parent | d00335824929ae0b7a52023a533c3254c933bc90 (diff) | |
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
| -rw-r--r-- | gnu/packages/python-web.scm | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 73af236e26f..7e8b08f9126 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | ;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org> | 28 | ;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org> |
| 29 | ;;; Copyright © 2018, 2019, 2021, 2024 Nicolas Goaziou <mail@nicolasgoaziou.fr> | 29 | ;;; Copyright © 2018, 2019, 2021, 2024 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
| 30 | ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com> | 30 | ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com> |
| 31 | ;;; Copyright © 2018, 2020, 2021, 2022, 2023 Maxim Cournoyer <maxim@guixotic.coop> | 31 | ;;; Copyright © 2018, 2020-2023, 2025 Maxim Cournoyer <maxim@guixotic.coop> |
| 32 | ;;; Copyright © 2018 swedebugia <swedebugia@riseup.net> | 32 | ;;; Copyright © 2018 swedebugia <swedebugia@riseup.net> |
| 33 | ;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org> | 33 | ;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org> |
| 34 | ;;; Copyright © 2019, 2023 Brendan Tildesley <mail@brendan.scot> | 34 | ;;; Copyright © 2019, 2023 Brendan Tildesley <mail@brendan.scot> |
| @@ -9395,7 +9395,7 @@ cython_always = true")))))))) | |||
| 9395 | (define-public python-uvicorn | 9395 | (define-public python-uvicorn |
| 9396 | (package | 9396 | (package |
| 9397 | (name "python-uvicorn") | 9397 | (name "python-uvicorn") |
| 9398 | (version "0.34.0") | 9398 | (version "0.38.0") |
| 9399 | (source | 9399 | (source |
| 9400 | (origin | 9400 | (origin |
| 9401 | ;; PyPI tarball has no tests. | 9401 | ;; PyPI tarball has no tests. |
| @@ -9405,24 +9405,33 @@ cython_always = true")))))))) | |||
| 9405 | (commit version))) | 9405 | (commit version))) |
| 9406 | (file-name (git-file-name name version)) | 9406 | (file-name (git-file-name name version)) |
| 9407 | (sha256 | 9407 | (sha256 |
| 9408 | (base32 "05lkxnpzmr0kik81kdcvavjvvc4d1lgmw88mr4vbwsqk147wgqbc")))) | 9408 | (base32 "0bfib7wsbg0h48y5wipk93gn3sgv7jkxvdxzvxd0xfnf1wa2jih3")))) |
| 9409 | (build-system pyproject-build-system) | 9409 | (build-system pyproject-build-system) |
| 9410 | (arguments | 9410 | (arguments |
| 9411 | (list | 9411 | (list |
| 9412 | #:test-flags | 9412 | #:test-flags |
| 9413 | #~(list "-o" "asyncio_mode=auto" | 9413 | #~(list |
| 9414 | ;; For some reason tests stacked in infinity re-invocation loop: | 9414 | "-o" "asyncio_mode=auto" |
| 9415 | ;; AssertionError where is_alive = | 9415 | ;; For some reason tests stacked in infinity re-invocation loop: |
| 9416 | ;; <uvicorn.supervisors.multiprocess.Process object at | 9416 | ;; AssertionError where is_alive = |
| 9417 | ;; 0x7ffff39b6110>.is_alive. | 9417 | ;; <uvicorn.supervisors.multiprocess.Process object at |
| 9418 | ;; Maybe this <https://github.com/encode/uvicorn/issues/2466>. | 9418 | ;; 0x7ffff39b6110>.is_alive. |
| 9419 | "--ignore=tests/supervisors/test_multiprocess.py" | 9419 | ;; Maybe this <https://github.com/encode/uvicorn/issues/2466>. |
| 9420 | 9420 | "--ignore=tests/supervisors/test_multiprocess.py" | |
| 9421 | #$@(cond | 9421 | |
| 9422 | ((or (target-aarch64?) | 9422 | ;; There are websockets related deprecation warnings breaking |
| 9423 | (target-riscv64?)) | 9423 | ;; the test suite (see: |
| 9424 | '("-k not test_send_binary_data_to_server_bigger_than_default_on_websockets")) | 9424 | ;; <https://github.com/Kludex/uvicorn/discussions/2755>). |
| 9425 | (#t '()))))) | 9425 | "-W" "ignore::DeprecationWarning" |
| 9426 | ;; The test_ssl_config test fails due to the following warning: | ||
| 9427 | ;; "ResourceWarning: unclosed <socket.socket fd=13, family=1, type=1, | ||
| 9428 | ;; proto=0>". | ||
| 9429 | "-W" "ignore::ResourceWarning" | ||
| 9430 | |||
| 9431 | ;; This test does not raise a ConnectionClosedError exception as | ||
| 9432 | ;; expected (see: | ||
| 9433 | ;; <https://github.com/Kludex/uvicorn/discussions/2755#discussioncomment-14918784>). | ||
| 9434 | "-k not test_send_binary_data_to_server_bigger_than_default_on_websockets"))) | ||
| 9426 | (native-inputs | 9435 | (native-inputs |
| 9427 | (list nss-certs-for-test | 9436 | (list nss-certs-for-test |
| 9428 | python-a2wsgi | 9437 | python-a2wsgi |
| @@ -9431,6 +9440,7 @@ cython_always = true")))))))) | |||
| 9431 | python-pytest | 9440 | python-pytest |
| 9432 | python-pytest-asyncio-0.26 | 9441 | python-pytest-asyncio-0.26 |
| 9433 | python-pytest-mock | 9442 | python-pytest-mock |
| 9443 | python-pytest-xdist | ||
| 9434 | python-requests | 9444 | python-requests |
| 9435 | python-trustme | 9445 | python-trustme |
| 9436 | python-wsproto)) | 9446 | python-wsproto)) |
