From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iOjBDqggZmLHkwAAbAwnHQ (envelope-from ) for ; Mon, 25 Apr 2022 06:16:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8OSjDqggZmJRWQAAauVa8A (envelope-from ) for ; Mon, 25 Apr 2022 06:16:40 +0200 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 D985F2FE62 for ; Mon, 25 Apr 2022 06:16:39 +0200 (CEST) Received: from localhost ([::1]:38068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niq9O-0004xH-Tp for larch@yhetil.org; Mon, 25 Apr 2022 00:16:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nipvL-0007w0-Vr for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nipvK-0001cy-2M for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nipvJ-0008AU-Vh for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55104] [PATCH 059/232] gnu: Add python-pytest-perf. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Apr 2022 04:02:05 +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.165085930331173 (code B ref 55104); Mon, 25 Apr 2022 04:02:05 +0000 Received: (at 55104) by debbugs.gnu.org; 25 Apr 2022 04:01:43 +0000 Received: from localhost ([127.0.0.1]:60824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipuw-00086c-Hh for submit@debbugs.gnu.org; Mon, 25 Apr 2022 00:01:42 -0400 Received: from mail-qv1-f48.google.com ([209.85.219.48]:47037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niptm-0007pi-Bd for 55104@debbugs.gnu.org; Mon, 25 Apr 2022 00:00:31 -0400 Received: by mail-qv1-f48.google.com with SMTP id jt15so4941408qvb.13 for <55104@debbugs.gnu.org>; Sun, 24 Apr 2022 21:00:30 -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=TNzmlBWn3akDIMVBj3wYvdjUYSSbv8B2Gsd6ap6Dp2g=; b=iMBdKaXhoIWnxdl7gt+MxZlt4XvSO4HMrdxVdnZI2QQOzN6THddqZZXjUGSkozKTpn POXuouGAhxKXwaJ/YgdJbAgVgT21JXNEgRXPkl8gBaeaH8JR82gW7RwQf0RhUaDb/0SJ Cyj9mHmJzJDnkscOVQSu4+9Mh+hLZh1sm0EsZYA3HnSBRXdbU/T4KWnRF8KyLYpAgRi0 KHLbNZ4/cptF+Q1Pv8bNHQtJDqOLcQyG1Sj1Im1gAFnzS36kk5PEdVnqq79N7lqQKBIT 6z5q4SSVZRTzgrjDmCsjYUempMZX00eGItxqQkL4A3gqW4F72GWIyDYPpOcjpZaXE/Fb GX2w== 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=TNzmlBWn3akDIMVBj3wYvdjUYSSbv8B2Gsd6ap6Dp2g=; b=LU3xJ8lLoMUP+g0gcxAdgWI14Ip/DG8tCYodS8zk18G3NWuBA2kDmVQOUcou00EXhX shM4mAMXan3GBOgGA2av+7WssLivRwENWt+taS/kHm1tO6BbvDMaZQoowB9QHn4JB/u7 Ez5CkInnKzW0W+Fz6KCAr/SI2Re0f2+iz+NTxx8/wrxyjLUXPiqDai9ZxXAJXIMv0fYR K6RVNNeRla9jAM9ixCLJpoCPlYh3LEbfmqF0HuDIRaMZ4lV5KuCmxNUP1cBwWGM6iDmS FUC4f3FgtcDbDwHGFsiO1pdGwlF8reo9V9NccO7JGnE3bCzUbKCNTPBVDuImX0u9VwCU VwRA== X-Gm-Message-State: AOAM531lEYjF2X12x9j+pgevZSnwTrpTp+1oGm+tq4hxt9XVh1J0gSNB DOPvM5V7AhcFRfOC6Ijq08NC1NSAQxcNdQ== X-Google-Smtp-Source: ABdhPJxS443dRqWMZLDCHEZqqib0VPVQDSekbRXkWU7fjXK3JInCxIRjGXk7RUZgFrQmFZmPLTFPgw== X-Received: by 2002:ad4:5bc1:0:b0:42d:758c:f694 with SMTP id t1-20020ad45bc1000000b0042d758cf694mr10916571qvt.99.1650859224784; Sun, 24 Apr 2022 21:00:24 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 21:00:24 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 24 Apr 2022 23:56:25 -0400 Message-Id: <20220425035918.25683-59-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 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650860200; 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=TNzmlBWn3akDIMVBj3wYvdjUYSSbv8B2Gsd6ap6Dp2g=; b=ZNdtHCkW3ySYFjSipTACw9pPRSwZJCZuzRop92CHmDNUiekiWdHZRrpM2V+eBtokdLZbRb 6fWANyxgXhvQpuHEVOi8z8UZHg11ukwB2HvLOlSnutl2u3LXciCG0I8Y/hj8OBPTRCPJeA x72ERmW0IP04lOk83GeWnJL5Y8oarqqQsfYnvl25EAZBWGYF/uyBZShvzDopHQM8pS2pQO OVpvLbsbB1/piD9ktdeFmxMFCUBpySWr+EUZjMYgCBH3Cb6t1vxiBmVKBSLLiWyv8Nx3CE mTkc1qvx5IPg7I6Sw6nyP/c8G0EZDMQoR4un6pf0VTr7UZheDIkdKbo2FxAzug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650860200; a=rsa-sha256; cv=none; b=WsvqvYaU5d4t2U4+FfY8h1IhbDkkRCKW1zwEwYqb1Er0/MhwLE8LNVUwbHqcKDYm+LuyBE FC8LfT0HSOpxyjFTF1g+UTxjQp2JWWE5wZLWk8M9X7far5mO472cxgggO/BzF9al3/GyrT VWqgP5Jhlv7xFtBl8it7JKrMi4wWApwISsFdYvoduudja4F21TfVYwDSduDacYaiy/cVl9 0qsTCvNL+7hdI3oBCPbbu3K1gIX73FE/4V9wJ/Wnilqx68GJoAXnxhZKkZGmh+6fVFGWT0 8ztJdMN6/WS8PpAV6s0uHguJCROH2Y28YV6Mb9eP0Nyl8dsewibpYTA8j4cC6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=iMBdKaXh; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 7.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=iMBdKaXh; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: D985F2FE62 X-Spam-Score: 7.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: iWYvScxI1WuI * gnu/packages/check.scm (python-pytest-perf): New variable. --- gnu/packages/check.scm | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 8ed53f7e27..e3523d77dc 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -2344,6 +2344,64 @@ (define-public python-pytest-pep8 (define-public python2-pytest-pep8 (package-with-python2 python-pytest-pep8)) +(define-public python-pytest-perf + (package + (name "python-pytest-perf") + (version "0.12.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jaraco/pytest-perf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "05mgknvrmyz1kmkgw8jzvisavc68wz1g2wxv69i6xvzgqxf17m9f")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-k" + (string-append + ;; Do not test the myproject.toml build as it tries to pull + ;; dependencies from the internet. + "not project " + ;; The benchmark test attempts to install the + ;; package, failing to pull its dependencies from the + ;; network. + "and not BenchmarkRunner " + ;; The upstream_url test requires networking. + "and not upstream_url")))))))) + (native-inputs + (list python-pytest + python-pytest-black + python-pytest-checkdocs + python-pytest-cov + python-pytest-enabler + python-pytest-flake8 + python-pytest-mypy)) + (propagated-inputs + (list python-jaraco-context + python-jaraco-functools + python-more-itertools + python-packaging + python-pip-run + python-tempora)) + (home-page "https://github.com/jaraco/pytest-perf") + (synopsis "Pytest plugin for performance testing") + (description "@code{pytest-perf} makes it easy to compare works by +creating two installs, the control and the experiment, and measuring the +performance of some Python code against each. Under the hood, it uses the +@command{pip-run} command to install from the upstream main +branch (e.g. https://github.com/jaraco/pytest-perf) for the control and from +@file{.} for the experiment. It then runs each of the experiments against +each of the environments.") + (license license:expat))) + (define-public python-pytest-flakes (package (name "python-pytest-flakes") -- 2.34.0