From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 GNW5K7wZbmbNZAAAqHPOHw:P1 (envelope-from ) for ; Sat, 15 Jun 2024 22:46:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GNW5K7wZbmbNZAAAqHPOHw (envelope-from ) for ; Sun, 16 Jun 2024 00:46:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718491580; 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: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; bh=MmVBb1NlPGy0JwyN6MNdEF32LfWQwPQmGkunhmSURoA=; b=hz9eVeTYeMC1BvbcG6P+E9WU7Ba1rEpTPFc0Mdjm8itfVhQd+Vt+hHAEysmRW7e5jp6O8t Fahc5hoaCgYdbZsQwQESEPO6vJvzbKfu+pfPTLE3NVQIqHUUYR7s64vx55mRDYMvWVOoH7 /VnVK3wjKo9eC2l4K+Rzl/TYBk6mFsFH4qg+C/BcDA3JuC3luMoqgbWMoY/iS8jXSFY/+Z ZTQR3dbwonxGajbnwEqbj24OTaRpdIvuVX69gw0Ijs3wMQsWnTZbLMHaf1/hArNNRSVz55 UjbZ9gaUAjslfWlkdty5NwD6koQtzdvAmFRHliyIYyNbNKGCrB4yv7PIkYGvow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718491580; a=rsa-sha256; cv=none; b=A2ZZCNezYFxRbasx9ljRJS+TL1RB25GsSnaWhhz+clo0qqAPyp10ZLM+lB+bBlAxXN03l2 h4WQdm+frz+iSXHtwrVhBX8datVDOM3tTjwH6y3dJ/F0t7fmqXpQdqCxt0SLXAf0EJnJDw B0ic6qTdhGQTrfEG2yzikUnBHJzIWXg2OeZBNCzcuKGqvsDCvnSkThx8ER26t79j6PlKli H/IPs90mi3lM2kfn6Rp4jeQi2ngoJy+AEqLqmKH9rGfUYB4yC61feWEulQM+Sj6TaBRT23 W4KHvSo129hUJDbas6qwLvHMXaKWfEKRP4HbKigGR4bycwJdcjOUZiqvbIDwGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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" 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 49820A9A8 for ; Sun, 16 Jun 2024 00:46:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIc9r-000867-CD; Sat, 15 Jun 2024 18:46:03 -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 1sIc9p-00085e-HN for guix-patches@gnu.org; Sat, 15 Jun 2024 18:46:01 -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 1sIc9p-00067R-8r for guix-patches@gnu.org; Sat, 15 Jun 2024 18:46:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sIc9q-00079L-7t for guix-patches@gnu.org; Sat, 15 Jun 2024 18:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70400] [PATCH 2/7] gnu: Add python-pytoolconfig. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Jun 2024 22:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70400 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70400@debbugs.gnu.org Cc: Sharlatan Hellseher , Munyoki Kilyungi , Lars-Dominik Braun , jgart , Marius Bakke , Tanguy Le Carrour , Jonathan Pieper Received: via spool by 70400-submit@debbugs.gnu.org id=B70400.171849151427373 (code B ref 70400); Sat, 15 Jun 2024 22:46:02 +0000 Received: (at 70400) by debbugs.gnu.org; 15 Jun 2024 22:45:14 +0000 Received: from localhost ([127.0.0.1]:56385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIc93-00077O-Rb for submit@debbugs.gnu.org; Sat, 15 Jun 2024 18:45:14 -0400 Received: from 7.mo576.mail-out.ovh.net ([46.105.50.32]:56629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIc90-000777-PY for 70400@debbugs.gnu.org; Sat, 15 Jun 2024 18:45:12 -0400 Received: from director4.ghost.mail-out.ovh.net (unknown [10.108.25.4]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id 4W1rnc0cdJz1j9g for <70400@debbugs.gnu.org>; Sat, 15 Jun 2024 22:45:08 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-j76z4 (unknown [10.111.182.244]) by director4.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 6BA981FD61; Sat, 15 Jun 2024 22:45:07 +0000 (UTC) Received: from ngraves.fr ([37.59.142.99]) by ghost-submission-6684bf9d7b-j76z4 with ESMTPSA id frrBFHMZbmZP9wAA+csCJw (envelope-from ); Sat, 15 Jun 2024 22:45:07 +0000 X-OVh-ClientIp: 81.67.146.208 In-Reply-To: <06a250000a633c62b5d806c8849b94ed7b84fb3d.1713203110.git.jpieper@mailbox.org> References: <7d0ec10d21258d9f858f9c9fe2cde132d4a06106.1713203110.git.jpieper@mailbox.org> <06a250000a633c62b5d806c8849b94ed7b84fb3d.1713203110.git.jpieper@mailbox.org> Date: Sun, 16 Jun 2024 00:45:04 +0200 Message-ID: <87cyoh3jwv.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain X-Ovh-Tracer-Id: 1834090951515693581 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrfedvvddgudegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhephfegtdejveetvdegleeiuefgteevtdelieeguefhvdejteejjeffuedviefftdffnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddrleelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejtdegtddtseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehjeeipdhmohguvgepshhmthhpohhuth 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.85 X-Spam-Score: -3.85 X-Migadu-Queue-Id: 49820A9A8 X-Migadu-Scanner: mx11.migadu.com X-TUID: xiGYOtAFtYOD On 2024-04-15 19:45, Jonathan Pieper via Guix-patches via wrote: > * gnu/packages/python-xyz.scm (python-pytoolconfig): New variable. > --- > gnu/packages/python-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 52 insertions(+) > > diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm > index 9521119a84..27107c3d8f 100644 > --- a/gnu/packages/python-xyz.scm > +++ b/gnu/packages/python-xyz.scm > @@ -36309,6 +36309,58 @@ (define-public python-zeroc-ice-3.6 > (base32 > "0mikjfvq26kh8asnn9v55z41pap4c5ypymqnwwi4xkavc3mzyda2")))))) > > +(define-public python-pytoolconfig > + (package > + (name "python-pytoolconfig") > + (version "1.2.2") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "pytoolconfig" version)) > + (sha256 > + (base32 "18isxi4ijarl949d0zmf0b4606r6hihpi3p5yb7763m4c7ra24i5")))) > + (build-system pyproject-build-system) > + (arguments > + '(#:phases (modify-phases %standard-phases > + (add-after 'unpack 'update-license > + (lambda _ > + (substitute* "pyproject.toml" > + (("license-expression = (\"[^\"]*\")" all license) > + (string-append "license = {text = " license "}"))))) > + (add-after 'unpack 'remove-mypy > + (lambda _ > + (substitute* "pyproject.toml" > + (("^.*mypy.*") > + "") > + (("strict = true") > + "")))) > + (add-after 'unpack 'use-pdm-backend-instead-of-pep517 > + (lambda _ > + (substitute* "pyproject.toml" > + (("pdm-pep517") > + "pdm-backend") > + (("pdm\\.pep517\\.api") > + "pdm.backend")))) > + (replace 'check > + (lambda* (#:key tests? #:allow-other-keys) > + (when tests? > + ;; Disable failing test. > + (invoke "python" "-m" "pytest" "-k" > + "not test_documentation"))))))) Instead of replacing the 'check phase here, you can use the #:test-flags option with (list "-k" "not test_documentation). > + (native-inputs (list python-pdm-backend > + python-tomli > + python-pytest > + python-docutils > + python-sphinx > + python-tabulate)) > + (propagated-inputs (list python-appdirs)) > + (home-page "https://github.com/bagel897/pytoolconfig") > + (synopsis "Python Tool Configuration") I see that the name of the project, but it doesn't seem correct english. maybe "Configure Python tools" is a better alternative, WDYT? > + (description > + "This module manages configuration for python tools, "package" is much more used than "module" here > +such as rope and add support for a pyproject.toml configuration file.") > + (license license:lgpl3+))) Otherwise LGTM. > + > ;;; > ;;; Avoid adding new packages to the end of this file. To reduce the chances > ;;; of a merge conflict, place them above by existing packages with similar -- Best regards, Nicolas Graves