From patchwork Thu Jan 3 21:34:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 652 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 C60AB16A0B; Thu, 3 Jan 2019 21:35:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mira.cbaines.net (Postfix) with ESMTP id 42D1416A07 for ; Thu, 3 Jan 2019 21:35:16 +0000 (GMT) Received: from localhost ([127.0.0.1]:58003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAe0-0005kn-CX for patchwork@mira.cbaines.net; Thu, 03 Jan 2019 16:35:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAdw-0005fF-G9 for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfAdq-00048z-Ue for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51593) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfAdq-00048r-Rd for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gfAdq-0000ux-NQ for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33759] [PATCH v2 1/5] gnu: linkchecker: Fix build. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jan 2019 21:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33759@debbugs.gnu.org Received: via spool by 33759-submit@debbugs.gnu.org id=B33759.15465512963486 (code B ref 33759); Thu, 03 Jan 2019 21:35:02 +0000 Received: (at 33759) by debbugs.gnu.org; 3 Jan 2019 21:34:56 +0000 Received: from localhost ([127.0.0.1]:46016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdk-0000u5-2Z for submit@debbugs.gnu.org; Thu, 03 Jan 2019 16:34:56 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:56804 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdh-0000tU-TY for 33759@debbugs.gnu.org; Thu, 03 Jan 2019 16:34:54 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id B0F0516A07 for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:52 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id d2031e58 for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:52 +0000 (UTC) From: Christopher Baines Date: Thu, 3 Jan 2019 21:34:48 +0000 Message-Id: <20190103213452.1829-1-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181215121700.11320-1-mail@cbaines.net> References: <20181215121700.11320-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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 For some reason, the tests fail due to the lack of pytest. But when that's added as an input, then some tests fail in other ways. * gnu/packages/web.scm (linkchecker)[native-inputs]: Add python2-pytest. [arguments]: Set #:tests? to #f. --- gnu/packages/web.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 84bd795a85..607f8efe69 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -5814,8 +5814,13 @@ Instagram and YouTube.") `(("python2-dnspython" ,python2-dnspython) ("python2-pyxdg" ,python2-pyxdg) ("python2-requests" ,python2-requests))) + (native-inputs + `(("python2-pytest" ,python2-pytest))) (arguments - `(#:python ,python-2)) + `(#:python ,python-2 + ;; TODO: Tests currently fail. Looks to be a mixture of trying to use + ;; /homeless-shelter and maybe the network. + #:tests? #f)) (home-page "https://linkcheck.github.io/linkchecker") (synopsis "Check websites for broken links") (description "LinkChecker is a website validator. It checks for broken From patchwork Thu Jan 3 21:34:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 656 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 A21B516A01; Thu, 3 Jan 2019 21:37:54 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from listsout.gnu.org (listsout.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 61026169FC for ; Thu, 3 Jan 2019 21:37:54 +0000 (GMT) Received: from localhost ([127.0.0.1]:58037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAgc-0007w7-0X for patchwork@mira.cbaines.net; Thu, 03 Jan 2019 16:37:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAdw-0005fH-GY for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfAdq-00048Z-E7 for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:37640) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfAdq-000481-Ah for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gfAdq-0000up-4L for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33759] [PATCH v2 2/5] gnu: Add python-miniboa. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jan 2019 21:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33759@debbugs.gnu.org Received: via spool by 33759-submit@debbugs.gnu.org id=B33759.15465512963479 (code B ref 33759); Thu, 03 Jan 2019 21:35:02 +0000 Received: (at 33759) by debbugs.gnu.org; 3 Jan 2019 21:34:56 +0000 Received: from localhost ([127.0.0.1]:46014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdj-0000u1-QK for submit@debbugs.gnu.org; Thu, 03 Jan 2019 16:34:56 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:56806 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdh-0000tV-Tf for 33759@debbugs.gnu.org; Thu, 03 Jan 2019 16:34:54 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id E05F816A0A for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:52 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id e5d401c7 for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:52 +0000 (UTC) From: Christopher Baines Date: Thu, 3 Jan 2019 21:34:49 +0000 Message-Id: <20190103213452.1829-2-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190103213452.1829-1-mail@cbaines.net> References: <20181215121700.11320-1-mail@cbaines.net> <20190103213452.1829-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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 python2-miniboa is required for the linkchecker testsuite. * gnu/packages/python.scm (python-miniboa, python2-miniboa): New variable. --- gnu/packages/python.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 00d60333a4..852beb73da 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1755,6 +1755,28 @@ matching them against a list of media-ranges.") (define-public python2-mimeparse (package-with-python2 python-mimeparse)) +(define-public python-miniboa + (package + (name "python-miniboa") + (version "1.0.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "miniboa" version)) + (sha256 + (base32 + "09jh3pn4rh7kh7jayanf8jzy6gp03791b5a193w6148cf3i6k9m3")))) + (build-system python-build-system) + (home-page "https://github.com/shmup/miniboa") + (synopsis "Simple, single-threaded Telnet server") + (description + "Miniboa is a simple, asynchronous, single-threaded, poll-based Telnet +server.") + (license license:asl2.0))) + +(define-public python2-miniboa + (package-with-python2 python-miniboa)) + (define-public python-pafy (package (name "python-pafy") From patchwork Thu Jan 3 21:34:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 654 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 5C9CD16A01; Thu, 3 Jan 2019 21:36:18 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mira.cbaines.net (Postfix) with ESMTP id 173C9169FC for ; Thu, 3 Jan 2019 21:36:18 +0000 (GMT) Received: from localhost ([127.0.0.1]:58017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAf3-0006fo-I6 for patchwork@mira.cbaines.net; Thu, 03 Jan 2019 16:36:17 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAdw-0005fE-G8 for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfAds-00049c-Pq for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfAdr-00049A-GM for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gfAdr-0000v5-Bq for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33759] [PATCH v2 3/5] gnu: python-2.7: Include /lib/python.../test/support. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jan 2019 21:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33759@debbugs.gnu.org Received: via spool by 33759-submit@debbugs.gnu.org id=B33759.15465512963493 (code B ref 33759); Thu, 03 Jan 2019 21:35:03 +0000 Received: (at 33759) by debbugs.gnu.org; 3 Jan 2019 21:34:56 +0000 Received: from localhost ([127.0.0.1]:46018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdk-0000uB-Bl for submit@debbugs.gnu.org; Thu, 03 Jan 2019 16:34:56 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:56808 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdh-0000tW-Tf for 33759@debbugs.gnu.org; Thu, 03 Jan 2019 16:34:55 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 1A9A616A0B for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:53 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 71742858 for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:52 +0000 (UTC) From: Christopher Baines Date: Thu, 3 Jan 2019 21:34:50 +0000 Message-Id: <20190103213452.1829-3-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190103213452.1829-1-mail@cbaines.net> References: <20181215121700.11320-1-mail@cbaines.net> <20190103213452.1829-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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 Don't remove the support directory from the /lib/python.../test/ directory, as this is used from the test_support module. /gnu/store/...-python2-2.7.15/lib/python2.7/test/test_support.py:2: in import test.support E ImportError: No module named support * gnu/packages/python.scm (python-2.7)[arguments]: Change the 'remove-tests phase to not remove the support directory. --- gnu/packages/python.scm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 852beb73da..550643adb8 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -260,12 +260,9 @@ (scandir testdir (match-lambda ((or "." "..") #f) + ("support" #f) (file (not - ;; FIXME: Add the 'support' directory - ;; in the next rebuild cycle, since it - ;; moved in 2.7.14. See also - ;; python2-futures below. (string-prefix? "test_support." file)))))) (call-with-output-file "__init__.py" (const #t)) From patchwork Thu Jan 3 21:34:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 653 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 BB71316A0B; Thu, 3 Jan 2019 21:35:30 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mira.cbaines.net (Postfix) with ESMTP id 70AFD16A07 for ; Thu, 3 Jan 2019 21:35:30 +0000 (GMT) Received: from localhost ([127.0.0.1]:58009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAeH-0005yZ-Uu for patchwork@mira.cbaines.net; Thu, 03 Jan 2019 16:35:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAdw-0005fG-GG for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfAds-00049Y-Po for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:46031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfAds-00049I-87 for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gfAds-0000vF-3C for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33759] [PATCH v2 4/5] gnu: python-futures: Enable tests. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jan 2019 21:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33759@debbugs.gnu.org Received: via spool by 33759-submit@debbugs.gnu.org id=B33759.15465512973499 (code B ref 33759); Thu, 03 Jan 2019 21:35:04 +0000 Received: (at 33759) by debbugs.gnu.org; 3 Jan 2019 21:34:57 +0000 Received: from localhost ([127.0.0.1]:46020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdk-0000uI-Kk for submit@debbugs.gnu.org; Thu, 03 Jan 2019 16:34:56 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:56810 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdh-0000tX-TX for 33759@debbugs.gnu.org; Thu, 03 Jan 2019 16:34:55 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 411CF16A0D for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:53 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 8beda8c9 for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:52 +0000 (UTC) From: Christopher Baines Date: Thu, 3 Jan 2019 21:34:51 +0000 Message-Id: <20190103213452.1829-4-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190103213452.1829-1-mail@cbaines.net> References: <20181215121700.11320-1-mail@cbaines.net> <20190103213452.1829-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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 Re-enable the tests, as the python-2 package now has the support directory. Also, switch to running the tests via the test_futures.py script to avoid errors like: AttributeError: 'AsCompletedTests' object has no attribute 'executor' * gnu/packages/python.scm (python2-futures)[arguments]: Run the test_futures.py script to run the tests. --- gnu/packages/python.scm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 550643adb8..54bc1d4d02 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7918,11 +7918,14 @@ otherwise matches 3.2’s API.") (base32 "0rdjmmsab550kxsssdq49jcniz77zlkpw4pvi9hvib3lsskjmh4y")))) (build-system python-build-system) - (arguments `(#:python ,python-2 - ;; FIXME: Python 2.7.14 moved the test.support library, - ;; but our package has not yet been adjusted. Enable - ;; tests when the python2 package has been fixed. - #:tests? #f)) + (arguments + `(#:python ,python-2 + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "python" "test_futures.py") + #t))))) (home-page "https://github.com/agronholm/pythonfutures") (synopsis "Backport of the concurrent.futures package from Python 3.2") From patchwork Thu Jan 3 21:34:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 655 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 5F1F916A01; Thu, 3 Jan 2019 21:36:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mira.cbaines.net (Postfix) with ESMTP id 93F9B169FC for ; Thu, 3 Jan 2019 21:36:18 +0000 (GMT) Received: from localhost ([127.0.0.1]:58019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAf4-0006gL-3q for patchwork@mira.cbaines.net; Thu, 03 Jan 2019 16:36:18 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAes-0006d7-6w for guix-patches@gnu.org; Thu, 03 Jan 2019 16:36:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfAen-0004yv-V1 for guix-patches@gnu.org; Thu, 03 Jan 2019 16:36:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:39525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfAen-0004yl-QU for guix-patches@gnu.org; Thu, 03 Jan 2019 16:36:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gfAen-0000wn-MB for guix-patches@gnu.org; Thu, 03 Jan 2019 16:36:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33759] [PATCH v2 5/5] gnu: linkchecker: Fix the package building. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jan 2019 21:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33759@debbugs.gnu.org Received: via spool by 33759-submit@debbugs.gnu.org id=B33759.15465513113581 (code B ref 33759); Thu, 03 Jan 2019 21:36:01 +0000 Received: (at 33759) by debbugs.gnu.org; 3 Jan 2019 21:35:11 +0000 Received: from localhost ([127.0.0.1]:46022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdq-0000v3-VH for submit@debbugs.gnu.org; Thu, 03 Jan 2019 16:35:10 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:56812 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdh-0000tY-US for 33759@debbugs.gnu.org; Thu, 03 Jan 2019 16:35:01 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 65A2216A0E for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:53 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 22159e2d for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:52 +0000 (UTC) From: Christopher Baines Date: Thu, 3 Jan 2019 21:34:52 +0000 Message-Id: <20190103213452.1829-5-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190103213452.1829-1-mail@cbaines.net> References: <20181215121700.11320-1-mail@cbaines.net> <20190103213452.1829-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.scm (linkchecker)[source]: Add patch. [native-inputs]: Add more inputs required for the tests. [arguments]: Enable the tests, move the 'check phase after 'install. Test using the installed software, and use py.test. --- gnu/local.mk | 1 + ...-more-tests-that-require-the-network.patch | 182 ++++++++++++++++++ gnu/packages/web.scm | 30 ++- 3 files changed, 209 insertions(+), 4 deletions(-) create mode 100644 gnu/packages/patches/linkchecker-mark-more-tests-that-require-the-network.patch diff --git a/gnu/local.mk b/gnu/local.mk index 0bb0203354..e0a5fa60ae 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -935,6 +935,7 @@ dist_patch_DATA = \ %D%/packages/patches/lierolibre-newer-libconfig.patch \ %D%/packages/patches/lierolibre-remove-arch-warning.patch \ %D%/packages/patches/lierolibre-try-building-other-arch.patch \ + %D%/packages/patches/linkchecker-mark-more-tests-that-require-the-network.patch.patch \ %D%/packages/patches/linux-pam-no-setfsuid.patch \ %D%/packages/patches/lirc-localstatedir.patch \ %D%/packages/patches/lirc-reproducible-build.patch \ diff --git a/gnu/packages/patches/linkchecker-mark-more-tests-that-require-the-network.patch b/gnu/packages/patches/linkchecker-mark-more-tests-that-require-the-network.patch new file mode 100644 index 0000000000..f3e488cec2 --- /dev/null +++ b/gnu/packages/patches/linkchecker-mark-more-tests-that-require-the-network.patch @@ -0,0 +1,182 @@ +From f24c88a0732024028fffe0372039a847e91722ea Mon Sep 17 00:00:00 2001 +From: Christopher Baines +Date: Tue, 1 Jan 2019 22:36:29 +0000 +Subject: [PATCH] Mark more tests that require the network + +I believe all these tests require the network, at least they seem to +fail if it's I run them without connecting my computer to the web. + +I'm looking at this as part of packaging linkchecker for GNU Guix, +where the package is build and the tests are run in a isolated +environment, intentionally without network access, to avoid issues +with non-reproducible package builds. +--- + tests/checker/test_http.py | 2 ++ + tests/checker/test_http_misc.py | 2 ++ + tests/checker/test_http_redirect.py | 2 ++ + tests/checker/test_httpbin.py | 5 +++++ + tests/checker/test_misc.py | 4 ++++ + tests/checker/test_whitespace.py | 3 +++ + 6 files changed, 18 insertions(+) + +diff --git a/tests/checker/test_http.py b/tests/checker/test_http.py +index e4c1e097..8a8af567 100644 +--- a/tests/checker/test_http.py ++++ b/tests/checker/test_http.py +@@ -20,6 +20,7 @@ + + import pytest + ++from tests import need_network + from .httpserver import HttpServerTest, CookieRedirectHttpRequestHandler + + class TestHttp (HttpServerTest): +@@ -29,6 +30,7 @@ def __init__(self, methodName='runTest'): + super(TestHttp, self).__init__(methodName=methodName) + self.handler = CookieRedirectHttpRequestHandler + ++ @need_network + def test_html (self): + confargs = dict(recursionlevel=1) + self.file_test("http.html", confargs=confargs) +diff --git a/tests/checker/test_http_misc.py b/tests/checker/test_http_misc.py +index 9922d85f..c6b6afdb 100644 +--- a/tests/checker/test_http_misc.py ++++ b/tests/checker/test_http_misc.py +@@ -20,11 +20,13 @@ + import os + import sys + from .httpserver import HttpServerTest ++from tests import need_network + from linkcheck.network import iputil + + class TestHttpMisc (HttpServerTest): + """Test http:// misc link checking.""" + ++ @need_network + def test_html (self): + self.swf_test() + self.obfuscate_test() +diff --git a/tests/checker/test_http_redirect.py b/tests/checker/test_http_redirect.py +index f212d98e..2253a70d 100644 +--- a/tests/checker/test_http_redirect.py ++++ b/tests/checker/test_http_redirect.py +@@ -17,6 +17,7 @@ + """ + Test http checking. + """ ++from tests import need_network + from .httpserver import HttpServerTest, CookieRedirectHttpRequestHandler + + class TestHttpRedirect (HttpServerTest): +@@ -26,6 +27,7 @@ def __init__(self, methodName='runTest'): + super(TestHttpRedirect, self).__init__(methodName=methodName) + self.handler = CookieRedirectHttpRequestHandler + ++ @need_network + def test_redirect (self): + self.redirect1() + self.redirect2() +diff --git a/tests/checker/test_httpbin.py b/tests/checker/test_httpbin.py +index 0319c2f6..4c8fa846 100644 +--- a/tests/checker/test_httpbin.py ++++ b/tests/checker/test_httpbin.py +@@ -18,6 +18,7 @@ + Test http stuff with httpbin.org. + """ + import re ++from tests import need_network + from . import LinkCheckTest + + +@@ -30,6 +31,7 @@ def get_httpbin_url(path): + class TestHttpbin(LinkCheckTest): + """Test http:// link redirection checking.""" + ++ @need_network + def test_http_link(self): + linkurl = u"http://www.example.com" + nlinkurl = self.norm(linkurl) +@@ -48,6 +50,7 @@ def test_http_link(self): + ] + self.direct(url, resultlines, recursionlevel=1) + ++ @need_network + def test_basic_auth(self): + user = u"testuser" + password = u"testpassword" +@@ -67,6 +70,7 @@ def test_basic_auth(self): + ] + self.direct(url, resultlines, confargs=confargs) + ++ @need_network + def test_http_refresh_header(self): + linkurl = u"http://www.example.com" + nlinkurl = self.norm(linkurl) +@@ -85,6 +89,7 @@ def test_http_refresh_header(self): + ] + self.direct(url, resultlines, recursionlevel=1) + ++ @need_network + def test_http_content_location_header(self): + linkurl = u"http://www.example.com" + nlinkurl = self.norm(linkurl) +diff --git a/tests/checker/test_misc.py b/tests/checker/test_misc.py +index 2e4cfd07..f9591f9d 100644 +--- a/tests/checker/test_misc.py ++++ b/tests/checker/test_misc.py +@@ -17,6 +17,7 @@ + """ + Test miscellaneous html tag parsing and URL types + """ ++from tests import need_network + from . import LinkCheckTest + + +@@ -25,15 +26,18 @@ class TestMisc (LinkCheckTest): + Test misc link types. + """ + ++ @need_network + def test_misc (self): + self.file_test("misc.html") + + def test_html5 (self): + self.file_test("html5.html") + ++ @need_network + def test_archive (self): + self.file_test("archive.html") + ++ @need_network + def test_itms_services(self): + url = u"itms-services:?action=download-manifest&url=http://www.example.com/" + resultlines = [ +diff --git a/tests/checker/test_whitespace.py b/tests/checker/test_whitespace.py +index 609c108a..fc2727d6 100644 +--- a/tests/checker/test_whitespace.py ++++ b/tests/checker/test_whitespace.py +@@ -17,6 +17,7 @@ + """ + Test whitespace handling. + """ ++from tests import need_network + from . import LinkCheckTest + + +@@ -25,6 +26,7 @@ class TestWhitespace (LinkCheckTest): + Test whitespace in URLs. + """ + ++ @need_network + def test_leading_whitespace (self): + # Leading whitespace + url = u" http://www.example.org/" +@@ -50,6 +52,7 @@ def test_leading_whitespace (self): + ] + self.direct(url, resultlines) + ++ @need_network + def test_trailing_whitespace (self): + # Trailing whitespace + url = u"http://www.example.org/ " diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 607f8efe69..65901a5aeb 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -5805,6 +5805,9 @@ Instagram and YouTube.") (uri (git-reference (url "https://github.com/linkchecker/linkchecker") (commit (string-append "v" version)))) + (patches + (search-patches + "linkchecker-mark-more-tests-that-require-the-network.patch")) (file-name (git-file-name name version)) (sha256 (base32 @@ -5815,12 +5818,31 @@ Instagram and YouTube.") ("python2-pyxdg" ,python2-pyxdg) ("python2-requests" ,python2-requests))) (native-inputs - `(("python2-pytest" ,python2-pytest))) + `(("gettext" ,gettext-minimal) + ("python2-pytest" ,python2-pytest) + ("python2-miniboa" ,python2-miniboa) + ("python2-parameterized" ,python2-parameterized))) (arguments `(#:python ,python-2 - ;; TODO: Tests currently fail. Looks to be a mixture of trying to use - ;; /homeless-shelter and maybe the network. - #:tests? #f)) + #:phases + (modify-phases %standard-phases + ;; Move the 'check phase to after 'install, so that the installed + ;; library can be used + (delete 'check) + (add-after 'install 'check + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; Set PYTHONPATH so that the installed linkchecker is used + (setenv "PYTHONPATH" + (string-append out "/lib/python2.7/site-packages" + ":" + (getenv "PYTHONPATH"))) + ;; Remove this directory to avoid it being used when running + ;; the tests + (delete-file-recursively "linkcheck") + + (invoke "py.test" "tests")) + #t))))) (home-page "https://linkcheck.github.io/linkchecker") (synopsis "Check websites for broken links") (description "LinkChecker is a website validator. It checks for broken