From patchwork Sun Aug 6 15:33:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 52575 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 03FF927BBEA; Sun, 6 Aug 2023 16:34:15 +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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 389A727BBE2 for ; Sun, 6 Aug 2023 16:34:14 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSfle-0007b8-HE; Sun, 06 Aug 2023 11:34:06 -0400 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 1qSflc-0007Zl-D7 for guix-patches@gnu.org; Sun, 06 Aug 2023 11:34:04 -0400 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 1qSflc-0006k4-5A for guix-patches@gnu.org; Sun, 06 Aug 2023 11:34:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSflc-0005L7-1E for guix-patches@gnu.org; Sun, 06 Aug 2023 11:34:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65114] [PATCH 6/6] gnu: python-scrapy: Update to 2.10.0. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Aug 2023 15:34:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65114 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65114@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 65114-submit@debbugs.gnu.org id=B65114.169133603920478 (code B ref 65114); Sun, 06 Aug 2023 15:34:04 +0000 Received: (at 65114) by debbugs.gnu.org; 6 Aug 2023 15:33:59 +0000 Received: from localhost ([127.0.0.1]:59919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSflX-0005KD-2K for submit@debbugs.gnu.org; Sun, 06 Aug 2023 11:33:59 -0400 Received: from mout01.posteo.de ([185.67.36.65]:43757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSflV-0005Ji-DH for 65114@debbugs.gnu.org; Sun, 06 Aug 2023 11:33:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D286624002A for <65114@debbugs.gnu.org>; Sun, 6 Aug 2023 17:33:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1691336031; bh=4EeortS+yhw/WxSWSO/PNxuGUNKt4HjBFewnYiM6WDk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=SDXwyy1MibnathVCKeRbL4BUUWGBFJzXoFlKO4pKafl7GB19RFC6bXvAb5H0QDRz6 UqWt2kRPQtIEyjEpSEBGdgiJg6cs95xWbrcJNtHt+zEqHYuE2AQD+dPlBrMxaVkBvj dK+7r8sYMMMS5NrAqPRghO02azz39zob6iLh+08UPz6f64VDOmelRG9XFF0RTnmxQL iITh5ylbqhEOjKVsTknCj0bnh3Oj1G5cgm6QXClnp5Y0CWh216FYfhfE27F3Pjpku1 jsL7JY88j0EVvjjHhJ6mj/8s0WDbFt99rrqs3crVOAuFX9JjIrAb6XqFi40yQ87j0t SXB8JcvK0XkBg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RJk4t5w2dz9rxF; Sun, 6 Aug 2023 17:33:50 +0200 (CEST) From: Vinicius Monego Date: Sun, 6 Aug 2023 15:33:17 +0000 Message-Id: <20230806153317.285639-6-monego@posteo.net> In-Reply-To: <20230806153317.285639-1-monego@posteo.net> References: <20230806153317.285639-1-monego@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-scrapy): Update to 2.10.0. [build-system]: Use pyproject-build-system. [arguments]: Use G-Expressions. Do not override the check phase, skip tests in #:test-flags instead. Run tests sequentially and skip fewer tests. --- gnu/packages/python-web.scm | 42 ++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 70a1ab082f..c12740b587 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -8065,36 +8065,30 @@ (define-public python-parsel (define-public python-scrapy (package (name "python-scrapy") - (version "2.7.1") + (version "2.10.0") (source (origin (method url-fetch) (uri (pypi-uri "Scrapy" version)) (sha256 - (base32 "0kpi3hg2ycs6s8cg41r2zc1axd0rpnps8bnzg7wisjyjaf1l1yih")))) - (build-system python-build-system) + (base32 "0fdf1kx39zy7b0v5gkwwqvm58ww63z5bvm78yjymhfn0r0zs65jf")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" - "-n" (number->string (parallel-job-count)) - ;; These tests fail when run in parallel (see: - ;; https://github.com/scrapy/scrapy/issues/5502). - "--ignore" "tests/test_engine.py" - "--ignore" "tests/test_engine_stop_download_bytes.py" - "--ignore" "tests/test_engine_stop_download_headers.py" - ;; This test require network access. - "--ignore" "tests/test_command_check.py" - "-k" - (string-append - ;; The followin tests fail for unknown reasons. - "not test_server_set_cookie_domain_suffix_public_private" - " and not test_user_set_cookie_domain_suffix_public_private" - " and not test_pformat") - "tests"))))))) + (list #:test-flags + ;; Tests fail with DNS lookup or need a display. + #~(list "-k" (string-append + "not test_SCRAPY_CHECK_set" + " and not " + (string-join + (list "test_check_all_default_contracts" + "test_check_cb_kwargs_contract" + "test_check_returns_items_contract" + "test_check_returns_requests_contract" + "test_check_scrapes_contract" + "test_pformat" + "test_pformat_old_windows" + "test_pformat_windows") + " and not "))))) (propagated-inputs (list python-botocore ; Optional: For S3FeedStorage class. python-cryptography