From patchwork Mon Apr 25 03:57:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 38869 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D207B27BBEA; Mon, 25 Apr 2022 05:24:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 674F827BBE9 for ; Mon, 25 Apr 2022 05:24:22 +0100 (BST) Received: from localhost ([::1]:47594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niqGr-0003Sa-Im for patchwork@mira.cbaines.net; Mon, 25 Apr 2022 00:24:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nipvh-00081h-Tb for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:31 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nipvg-0001pA-SW for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nipvg-0008Hz-Pm for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:28 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55104] [PATCH 095/232] gnu: python-trio: Update to 0.20.0. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Apr 2022 04:02:28 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55104 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55104@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 55104-submit@debbugs.gnu.org id=B55104.165085934531801 (code B ref 55104); Mon, 25 Apr 2022 04:02:28 +0000 Received: (at 55104) by debbugs.gnu.org; 25 Apr 2022 04:02:25 +0000 Received: from localhost ([127.0.0.1]:60947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipvc-0008Gg-W1 for submit@debbugs.gnu.org; Mon, 25 Apr 2022 00:02:25 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:46617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipuD-0007us-Dq for 55104@debbugs.gnu.org; Mon, 25 Apr 2022 00:00:58 -0400 Received: by mail-qt1-f171.google.com with SMTP id f22so9547084qtp.13 for <55104@debbugs.gnu.org>; Sun, 24 Apr 2022 21:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aBBIEkGgfppy2lp8hRO8fCTr7TtxQPffA4U4sTG5qho=; b=TorPnilbny5LjqcLsjunBbtxPwFVbMuR+Cz42nfQ6sOWpLyWv/G+FseXQQKqwKK9Nm h88/FHpucgVypIoFMIlZOMEx+OFTV3H789kHxPe9OnRo8asMc66bliJujyp6K7P1/rAx VoVocuzVFtrtMP99/+JuwnYsk86XPM1prdeam87eHxgu5reQHPB0ozzOUfJaIpeITUM4 6ruSW5Fl+sl2mQz0DZBLbMdOFFDI9AMyn21ifP1V1eAHFubgrmwYh1aYi6loestl3Yii eo/si4pEiX+66iKgtoLBfSR3mE3tmX8OUNkqgt1fBBG4KuMbo9e4UqTNycNoTPe0DAyb DQ3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aBBIEkGgfppy2lp8hRO8fCTr7TtxQPffA4U4sTG5qho=; b=7XQkxU/ekDZXlGHMX6vNFnnOBtnrk4HEtVT2En1sEA+qDwu0XcnmMEMPW73h8PiNDU VG3dj9HxNB/+ExGecd78vzi8VRmPZFxFxF68AiHrbDNPoS9ckb/usInJRI5C9g0i2635 SWELVzonl/3oN10o8Ft0dGmYSPK0kJUF6z5mK225meAYE3ZtZsRKXlpQAB8vhp4Ioobc NiuS8kS+UPZ2KbhdrTRhkWLC4QBwq99EUAowSQIfREg7DHfr6DXmBugXkxvOyb8oYKhU ow8ZRThMwX1m1LUOkp5MrGK48hO7+yUJKQn/4nUMpC5FKcndwRNudMblkiAOfXAqC8cQ RHwA== X-Gm-Message-State: AOAM53345FZh+s2xWT87xS9Ag6wsJ72Fwq1HdfAyC9rAKWmUHwKO0pxb sUF5JpJAF0DL3DmMTBwnmP+IyQF8cxuzYA== X-Google-Smtp-Source: ABdhPJxfvBF8bXlDj4eH1PNLt0YkzW/Il7ZcsaeYOHcNUM/oerc9LaFCYiHTVdv1MA139d7uC/W1Qg== X-Received: by 2002:a05:622a:138f:b0:2f3:4477:980b with SMTP id o15-20020a05622a138f00b002f34477980bmr10571846qtk.475.1650859251753; Sun, 24 Apr 2022 21:00:51 -0700 (PDT) Received: from localhost.localdomain (dsl-150-232.b2b2c.ca. [66.158.150.232]) by smtp.gmail.com with ESMTPSA id w82-20020a376255000000b0069ee3f0ae63sm4478142qkb.45.2022.04.24.21.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 21:00:51 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 24 Apr 2022 23:57:01 -0400 Message-Id: <20220425035918.25683-95-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220425035918.25683-1-maxim.cournoyer@gmail.com> References: <20220425035918.25683-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-trio): Update to 0.20.0. [phases]{patch-sleep}: New phase. [change-home]: Delete trailing #t. {check}: Run tests in parallel. Disable the test_cancel_scope_exit_doesnt_create_cyclic_garbage, test_ipython_exc_handler, test_for_leaking_fds and test_static_tool_sees_all_symbols tests. [native-inputs]: Add python-pytest-xdist. --- gnu/packages/python-xyz.scm | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 96a04009bc..d987c9cbcd 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -24380,26 +24380,32 @@ (define-public python-outcome (define-public python-trio (package (name "python-trio") - (version "0.19.0") + (version "0.20.0") (source (origin (method url-fetch) (uri (pypi-uri "trio" version)) (sha256 - (base32 "1qgg4zhca81dxc1nlmcr5pl1bclmvdp3niqbyslwxs65bs732pl9")))) + (base32 "0w30cwmdwfa8zq2agqv3h62jzwwsk7ms8f683ag8f3jx279m42k7")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-sleep + (lambda _ + (substitute* "trio/tests/test_subprocess.py" + (("/bin/sleep") + (which "sleep"))))) (add-before 'check 'change-home (lambda _ ;; Tests require a writable home. - (setenv "HOME" "/tmp") - #t)) + (setenv "HOME" "/tmp"))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke "pytest" "-vv" "-k" + (invoke "pytest" "-vv" + "-n" (number->string (parallel-job-count)) + "-k" (string-append ;; This test times out. "not test_ki_protection_works" @@ -24408,7 +24414,10 @@ (define-public python-trio " and not test_run_in_trio_thread_ki" " and not test_simple_cancel_scope_usage_doesnt_create_cyclic_garbage" " and not test_nursery_cancel_doesnt_create_cyclic_garbage" + " and not test_cancel_scope_exit_doesnt_create_cyclic_garbage" " and not test_locals_destroyed_promptly_on_cancel" + " and not test_ipython_exc_handler" + " and not test_for_leaking_fds" ;; These try to raise KeyboardInterrupt which does not work ;; in the build environment. " and not test_ki_self" @@ -24417,7 +24426,9 @@ (define-public python-trio " and not test_getnameinfo" " and not test_SocketType_resolve" ;; OSError: protocol not found. - " and not test_getprotobyname")))))))) + " and not test_getprotobyname" + ;; EOFError: Ran out of input. + " and not test_static_tool_sees_all_symbols")))))))) (native-inputs (list python-astor python-ipython @@ -24425,6 +24436,7 @@ (define-public python-trio python-pylint python-pyopenssl python-pytest + python-pytest-xdist python-pytest-cov python-trustme)) (propagated-inputs