[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/96: gnu: python-aiohttp: Update to 3.8.4.
From: |
guix-commits |
Subject: |
36/96: gnu: python-aiohttp: Update to 3.8.4. |
Date: |
Wed, 19 Apr 2023 21:41:09 -0400 (EDT) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit ba9551073b42471101f21b4b8b87d7683cda914f
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Apr 17 11:22:19 2023 -0400
gnu: python-aiohttp: Update to 3.8.4.
* gnu/packages/python-web.scm (python-aiohttp): Update to 3.8.4.
[arguments]: Adjust comments in fix-tests phase. Skip/ignore more tests in
check phase. Remove extraneous or (it wouldn't have worked with invoke
anyway).
[propagated-inputs]: Add python-asynctest. Remove python-typing-extensions.
---
gnu/packages/python-web.scm | 40 ++++++++++++++++++++++------------------
1 file changed, 22 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8afdf1a98c..40b0fa914d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -311,13 +311,13 @@ for adding, removing and dropping callbacks.")
(define-public python-aiohttp
(package
(name "python-aiohttp")
- (version "3.8.1")
+ (version "3.8.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aiohttp" version))
(sha256
- (base32 "0y3m1dzl4h6frg8vys0fc3m83ijd1plfpihv3kvmxqadlphp2m7w"))
+ (base32 "0p5bj6g7ca19gvwk8fz00k579ma9w9kd27ssh2zl3r61ca8ilbmz"))
(snippet
#~(begin
(use-modules ((guix build utils)))
@@ -333,12 +333,14 @@ for adding, removing and dropping callbacks.")
(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
(lambda _
- ;; disable brotli tests, because we’re not providing that
optional library
+ ;; Disable brotli tests, because we’re not providing that
+ ;; optional library.
(substitute* "tests/test_http_parser.py"
((" async def test_feed_eof_no_err_brotli")
" @pytest.mark.xfail\n async def
test_feed_eof_no_err_brotli"))
- ;; make sure the timestamp of this file is > 1990, because a few
- ;; tests like test_static_file_if_modified_since_past_date depend
on it
+ ;; Make sure the timestamp of this file is > 1990, because a few
+ ;; tests like test_static_file_if_modified_since_past_date depend
+ ;; on it.
(let ((late-90s (* 60 60 24 365 30)))
(utime "tests/data.unknown_mime_type" late-90s late-90s))
@@ -378,33 +380,35 @@ for adding, removing and dropping callbacks.")
"not test_client_session_timeout_zero and "
"not test_empty_body and "
"not test_mark_formdata_as_processed[pyloop] and "
- "not test_receive_runtime_err[pyloop]")))
+ "not test_receive_runtime_err[pyloop] "
+ ;; These tests fail for unknown reasons (see:
+ ;; https://github.com/aio-libs/aiohttp/issues/7130)
+ "and not test_no_warnings "
+ "and not test_default_loop "
+ "and not test_ctor_global_loop "
+ "and not test_set_loop_default_loop ")))
(when tests?
;; This tests requires the 'proxy.py' module, not yet
;; packaged.
(delete-file "tests/test_proxy_functional.py")
;; Sometimes tests fail when run in parallel.
- (or
- (invoke "pytest" "-vv"
- ;; Disable loading the aiohttp coverage plugin
- ;; to avoid a circular dependency (code coverage
- ;; is not very interesting to us anyway).
- "-o" "addopts=''" "--ignore=aiohttp"
- "-n" (number->string (parallel-job-count))
- "-k" skipped-tests)
- (invoke "pytest" "-vv"
- "-o" "addopts=''" "--ignore=aiohttp"
- "-k" skipped-tests)))))))))
+ (invoke "pytest" "-vv"
+ "-o" "addopts=''" "--ignore=aiohttp"
+ ;; These tests cause errors (see:
+ ;; https://github.com/aio-libs/aiohttp/issues/7130).
+ "--ignore" "tests/test_web_sendfile_functional.py"
+ "--ignore" "tests/test_web_urldispatcher.py"
+ "-k" skipped-tests))))))))
(propagated-inputs
(list python-aiodns
python-aiosignal
python-attrs
+ python-asynctest
python-async-timeout
python-charset-normalizer
python-frozenlist
python-idna-ssl
python-multidict
- python-typing-extensions
python-yarl))
(native-inputs
(list gunicorn-bootstrap
- 03/96: gnu: python-pathspec: Update to 0.11.1., (continued)
- 03/96: gnu: python-pathspec: Update to 0.11.1., guix-commits, 2023/04/19
- 07/96: gnu: python-setuptools: Update to 67.6.1., guix-commits, 2023/04/19
- 20/96: gnu: python-execnet: Update to 1.9.0-1.d6aa1a5., guix-commits, 2023/04/19
- 08/96: gnu: python-wheel: Update to 0.40.0., guix-commits, 2023/04/19
- 12/96: gnu: python-typing-extensions: Use pyproject-build-system., guix-commits, 2023/04/19
- 18/96: gnu: python-hatchling: Update to 1.14.0., guix-commits, 2023/04/19
- 21/96: gnu: python-pytest-benchmark: Update to 4.0.0., guix-commits, 2023/04/19
- 27/96: gnu: poetry: Update to 1.1.12., guix-commits, 2023/04/19
- 30/96: gnu: Add python-asynctest., guix-commits, 2023/04/19
- 33/96: gnu: python-pytest-asyncio: Update to 0.21.0., guix-commits, 2023/04/19
- 36/96: gnu: python-aiohttp: Update to 3.8.4.,
guix-commits <=
- 52/96: gnu: usbutils: Use G-Expressions., guix-commits, 2023/04/19
- 16/96: gnu: python-flit-scm: Update to 1.7.0., guix-commits, 2023/04/19
- 01/96: gnu: python-xyz: Move some packages to (gnu packages python-build)., guix-commits, 2023/04/19
- 05/96: gnu: python-tomli-w: Use pyproject-build-system., guix-commits, 2023/04/19
- 02/96: gnu: Add python-trove-classifiers., guix-commits, 2023/04/19
- 14/96: gnu: python-typing-extensions: Move to (gnu packages python-build)., guix-commits, 2023/04/19
- 17/96: gnu: python-hatchling: Move to (gnu packages python-build)., guix-commits, 2023/04/19
- 19/96: gnu: Add python-hatch-vcs., guix-commits, 2023/04/19
- 22/96: gnu: opendht: Fix build., guix-commits, 2023/04/19
- 24/96: gnu: python-packaging: Remove labels., guix-commits, 2023/04/19