From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YAmYITzvI2KOEQAAgWs5BA (envelope-from ) for ; Sun, 06 Mar 2022 00:16:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uDzEGTzvI2KejwAAG6o9tA (envelope-from ) for ; Sun, 06 Mar 2022 00:16:12 +0100 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 EEF0C20173 for ; Sun, 6 Mar 2022 00:16:11 +0100 (CET) Received: from localhost ([::1]:44346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQddC-0000oK-Ii for larch@yhetil.org; Sat, 05 Mar 2022 18:16:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQdd4-0000nu-2q for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55515) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQdd3-0003Fh-QU for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQdd3-00018c-N6 for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53019] [PATCH 1/3] gnu: Add python-codeclimate-test-reporter. References: <877aca93-bd87-3314-dbf9-ae9b0c537eb9@autistici.org> In-Reply-To: <877aca93-bd87-3314-dbf9-ae9b0c537eb9@autistici.org> Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Mar 2022 23:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53019@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 53019-submit@debbugs.gnu.org id=B53019.16465221191388 (code B ref 53019); Sat, 05 Mar 2022 23:16:01 +0000 Received: (at 53019) by debbugs.gnu.org; 5 Mar 2022 23:15:19 +0000 Received: from localhost ([127.0.0.1]:49408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQdcH-0000G3-0L for submit@debbugs.gnu.org; Sat, 05 Mar 2022 18:15:18 -0500 Received: from confino.investici.org ([212.103.72.250]:28741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQdcE-0000DG-V5 for 53019@debbugs.gnu.org; Sat, 05 Mar 2022 18:15:11 -0500 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4KB0tk3ssYz10yR; Sat, 5 Mar 2022 23:15:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1646522110; bh=n7HqlxrNoh/g6M+umTfdw1uv+R51hVKx33OpakPF6+I=; h=From:To:Cc:Subject:Date:From; b=lBpMAKiM/eIEvGD6RJLWiowmiMJ4ZFG74HUbURXFUHuDJoQp22TBRSxOe8YQz7kBh CAvnsvu7SGqv0BOzZK2uZyIfTvybX15YQU0I4ih7PhakwrwYWUH/brOncuihvKXnxy UqeAZdHds/2F5wI5rsyI1l+Yzu8a9gIIjtKCpOH4= Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4KB0tk3Kx8z10xh; Sat, 5 Mar 2022 23:15:10 +0000 (UTC) Date: Sun, 6 Mar 2022 00:14:57 +0100 Message-Id: <20220305231459.22969-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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" Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches From: Giacomo Leidi via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646522172; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=n7HqlxrNoh/g6M+umTfdw1uv+R51hVKx33OpakPF6+I=; b=FplzQdGj3iAp8olw7Fso+IUhcPV2BhriL9IZgL49TarhDwh0XFUH6kUc4opuB13IxK1ldP 4hnCc1K2xEIrLFEs8BiBml931ISLE/HJ5XRPtIsyvW/xa86aGJAGyf3Ag97xl82QPzPOnu F9RgdNtn/0mCTzEIRTbAFv8LPRnnYvH2Hqd9MsaQnKY5+peVUZDz3F5d5G3C3KVNYenEvR 8nrb5CNBHNFmkajm29UOLne5W6ZCyDQfbs/sURn63Oz4+ORUFVFgBZXZiWD5YmB0+zaSqW VoEszE0cifea1hyVOK2pTdNkJ64rLYCF5Yx8M4g8bWh0nwfFl1akMOvrY15QOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646522172; a=rsa-sha256; cv=none; b=PU7FWsdAgTCTQko9p8RQEyqCuagYt5p1ba/VP336o9w8f1stW4WEjN8XHCiameBOxe9/yZ O+3byTMu4ptwyqB6HrQ+E1d5bjNjGz4IjKZf42xrtJtGm3tPnJgeF9zK+om4fvor1+14YY 3vsqiXj2l+ZexjUgPoU1vBRhBY1ixexX5kD/kehL1AOGgqOY7ctcSHXKugoXOLyT4qNwdW KSCrfax1njacX/kPY/6Ix+1Gj5c/go5PQjnluD38/CKgScBevgi8z7nT94xHRY/C0PnRZO F/AtBytoDJfYAd3TPS4CIzmNIITIXXIwPRJIWzZRIlkwTqqr0Qh7NayZ+9fIUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=lBpMAKiM; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -3.64 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=lBpMAKiM; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: EEF0C20173 X-Spam-Score: -3.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: wyk4X6yJh7im * gnu/packages/python-xyz.scm (python-codeclimate-test-reporter): New variable. --- gnu/packages/python-check.scm | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 05a378601f..2789d65a25 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2021 Brendan Tildesley ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Bonface Munyoki Kilyungi +;;; Copyright © 2022 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +39,7 @@ (define-module (gnu packages python-check) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) @@ -1508,6 +1510,49 @@ (define-public python-pytest-qt interaction, like key presses and mouse clicks.") (license license:expat))) +(define-public python-codeclimate-test-reporter + (package + (name "python-codeclimate-test-reporter") + (version "0.2.3") + (source + (origin + (method git-fetch) ;no tests in pypi archive + (uri (git-reference + (url "https://github.com/codeclimate/python-test-reporter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0mxph5l3k9ch4hs9l76k4wnmzhd94bylg92lvm2priyn24gkn9a1")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-fixtures-paths + (lambda _ + (substitute* "tests/test_formatter.py" + (("\\./tests/fixtures") + (string-append (getcwd) "/tests/fixtures"))) + ;; FIXME: These tests fail with + ;; obscure error messages. + (for-each + (lambda (test-file) + (delete-file test-file)) + '("tests/test_reporter.py" + "tests/test_runner.py"))))))) + (native-inputs + (list git + python-httpretty + python-pytest)) + (propagated-inputs + (list python-coverage + python-requests)) + (home-page "https://github.com/codeclimate/python-test-reporter") + (synopsis "Reports test coverage to Code Climate") + (description "This package provides @{codclimate-test-reporter}, a Python +library teport test coverage to Code Climate.") + (license license:expat))) + (define-public python-codacy-coverage (package (name "python-codacy-coverage") base-commit: 0c6bf910efd090f0aa0479ba727e5e68655e9b68 -- 2.34.0