From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2FZcEGDoTWeP0wAAe85BDQ:P1 (envelope-from ) for ; Mon, 02 Dec 2024 17:03:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2FZcEGDoTWeP0wAAe85BDQ (envelope-from ) for ; Mon, 02 Dec 2024 18:03:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=ClJ0fynn; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=PQJbiv6p; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733159008; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bKREZHEbCRM0JPEc5cJ5b0o21HFzKNGMpN9Lj1dBc+s=; b=OXPRjAVvSRO9BCOuF4Hkqm5xITzV+8XxqAVsE9mbNXqQDg/8pb6wH7tft7kEGXgM0OiEkb mC+i3oWePnyENrEUOyLUBJi21//Pe9gBpAPHSv8ZNq1JkA3p60GAN7BkI7KGTfmWOYpy5s io/TeKi+M9a5N93gbMyrbe6b/pX93qzTpQps28ZQg07kIlW9ql87qejnqULUjbSxTIW0vd uo1KFA2bq7vSXT9Kz5ZcwMzczCMyWwCVbBTgu0RCoyra9Y/wu6weQdHeTswOnTSKWyEgDQ CHfrWJhse5YtDA7PUFjh4vz7WWsbcuiNQU7Icg+aUiu+tqhYsWwVzY0BUDfXzg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=ClJ0fynn; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=PQJbiv6p; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1733159008; a=rsa-sha256; cv=fail; b=u+8LnJuMjv2Hj6LHMihBvfA0oFucoWEv5vpqIP2zyQPuTvWLxiOMWKh9KYH8JACHA+6Y5k fqGizmq7/oefQgkjKsQ6hDzHr058VXHkErqKDo1rLpw2kXUC+9TpUSKx8AFEnOzHGyZOMv q5BhnBoP7eTSRF4sR753fMwXduYO4uMfY8ZEqkqe1jw/X+oKoMO5p6FNgOMewO1ozBhlNF lBibaZqyeDINMxlhTRQTHoWki7scr+HLfr0sXy2x111cK5mpfop0lSbVdBYKqpJo7r7Jld V4ilxAGmXCgypddI15UGokFf4mndnuzEMvzwaCj7Po1Hp6/gCSt0JRwz1fuz2Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3256F798D7 for ; Mon, 02 Dec 2024 18:03:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tI9pP-00087o-A7; Mon, 02 Dec 2024 12:03:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tI9pJ-00081H-4t for guix-patches@gnu.org; Mon, 02 Dec 2024 12:03:13 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tI9pI-0001p1-PF; Mon, 02 Dec 2024 12:03:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=bKREZHEbCRM0JPEc5cJ5b0o21HFzKNGMpN9Lj1dBc+s=; b=ClJ0fynna5QpS6xkYI8im5CXmqR3Bn2UfLUMorVNFYwmSf5AOBWjlRN43jwrqMKVE+PZEzUkq42yacWbhADc8SHvUa8nK25rClxWZzgNMscMFAEjU7OQcL8TdUvoMdXNuCcMracDzJjFXPKLyrjphP+4tvx8tWhisoMcKkBiI114+NsmfUeig4RIoiZ+UAZh8J9Xk2k5IulzYxj4OSwoeROrNCG9X6pBUlWKsWi2kqW8jbjiirZwWaxqllW761Sa4Wk+Xg2fGEAZWRqLHI3mia+4rr2aGeZRjlnIDtxmPTTS+Mfq2OSz0gdTl3B41FTroFeG+MDloP4w2HLRBruaIA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tI9pA-0003bm-Gu; Mon, 02 Dec 2024 12:03:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74652] [PATCH v2 3/3] gnu: python-falcon: Fix tests. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Mon, 02 Dec 2024 17:03:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74652 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74652@debbugs.gnu.org Cc: Ricardo Wurmus , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 74652-submit@debbugs.gnu.org id=B74652.173315892513735 (code B ref 74652); Mon, 02 Dec 2024 17:03:04 +0000 Received: (at 74652) by debbugs.gnu.org; 2 Dec 2024 17:02:05 +0000 Received: from localhost ([127.0.0.1]:56394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI9oC-0003ZR-Pp for submit@debbugs.gnu.org; Mon, 02 Dec 2024 12:02:05 -0500 Received: from sender4-of-o52.zoho.com ([136.143.188.52]:21216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI9o8-0003Yh-Pn for 74652@debbugs.gnu.org; Mon, 02 Dec 2024 12:02:01 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1733158917; cv=none; d=zohomail.com; s=zohoarc; b=SasXkZTgswdfDaZunzXmiIAIf2Jp+/IVOnVIoyvFWOKxm6saAWFBG0eVN3AinauvKAzgfniwHXwXmIf/jOW5JKPBQRIJRpfBb2WLxNuW+g6YkY/v+xWe7ogoyNjp9QBh2igxOem3MlFU5f0Ko5yF5o+MnxzfN2vY/D1rtLgE8ig= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1733158917; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=bKREZHEbCRM0JPEc5cJ5b0o21HFzKNGMpN9Lj1dBc+s=; b=KUrEWqFaxI+oPuw9q0Q1QJntE62KMxpNddsArIo++p80/eMC4x0f/Qtvhwi51OB2MaCcHX0Ab3MQTRXK2A7FiOxW0xb52toiCMwhXmbXcbddZrkihb6+19nwi3p0RFYr/K9bA9W7+f/prrDXPZGcsr0axSXnX1niuw2IjFhkT2Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1733158917; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=bKREZHEbCRM0JPEc5cJ5b0o21HFzKNGMpN9Lj1dBc+s=; b=PQJbiv6pfeutkRpeDk3zozGSlNH5hHsEPt+0vKM7yfm5UxWtVYUV0rY6IhK/GjGs H+IMHuAwGYNilSIWav/alU8rpHimA+l2Ptdf5U99eLhsdbGZ9C90x0VZ0byr0ia9T4M 6e0MGGxXT4pXq/kBIJME5XObRJgD6ni3rMvuLcQE= Received: by mx.zohomail.com with SMTPS id 1733158914513154.51465672110828; Mon, 2 Dec 2024 09:01:54 -0800 (PST) From: Ricardo Wurmus Date: Mon, 2 Dec 2024 18:01:42 +0100 Message-ID: <5aed467adf35fa2211edd82f044cdf9ebd75453a.1733158902.git.rekado@elephly.net> X-Mailer: git-send-email 2.46.0 In-Reply-To: <08be2c7ed2588b659ad2fa43eddd99c57e10b3f2.1733158902.git.rekado@elephly.net> References: <08be2c7ed2588b659ad2fa43eddd99c57e10b3f2.1733158902.git.rekado@elephly.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -1.71 X-Spam-Score: -1.71 X-Migadu-Queue-Id: 3256F798D7 X-TUID: mjLnbmK9zBq4 * gnu/packages/python-web.scm (python-falcon)[native-inputs]: Add python-orjson. [arguments]: Do not patch test file; respect test-flags in custom 'check phase; provide test-flags to ignore examples and benchmarks. [build-system]: Use pyproject-build-system. Change-Id: Ic173e2d940a2bb9c7f81ea3e70475f8bfff36dfb --- gnu/packages/python-web.scm | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 2137cc42536..fb43c9b0a06 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1176,17 +1176,19 @@ (define-public python-falcon (sha256 (base32 "17k31d8avl63xsr6fzvmkxcsm7gnz5dqpgsz65psm1lpc38c79k3")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases + (list + #:test-flags + '(list "--ignore-glob=examples/*" "--ignore-glob=bench/*" "tests") + #:phases + '(modify-phases %standard-phases + (add-before 'check 'set-HOME + (lambda _ (setenv "HOME" "/tmp"))) (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - ;; Skip orjson, which requires rust to build. - (substitute* "tests/test_media_handlers.py" - (("== 'CPython") "!= 'CPython")) - (setenv "HOME" "/tmp") - (invoke "pytest" "-vv" "tests")))))) + (lambda* (#:key tests? test-flags #:allow-other-keys) + (when tests? + (apply invoke "pytest" "-vv" test-flags))))))) (propagated-inputs (list python-mimeparse)) (native-inputs @@ -1197,6 +1199,7 @@ (define-public python-falcon python-httpx python-mujson python-msgpack + python-orjson python-pecan python-pillow python-pytest -- 2.46.0