From patchwork Wed Oct 11 17:58:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 54757 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 1C6D127BBE9; Wed, 11 Oct 2023 19:01:39 +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=unavailable 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 564FC27BBE2 for ; Wed, 11 Oct 2023 19:01:37 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqdUm-0001Q2-Fe; Wed, 11 Oct 2023 13:59:44 -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 1qqdUi-0001Ne-Q5 for guix-patches@gnu.org; Wed, 11 Oct 2023 13:59:40 -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 1qqdUi-0007j7-D0 for guix-patches@gnu.org; Wed, 11 Oct 2023 13:59:40 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqdV4-0004qX-8u for guix-patches@gnu.org; Wed, 11 Oct 2023 14:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66468] [PATCH] gnu: python-versioneer: Update to 0.29. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Oct 2023 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66468 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66468@debbugs.gnu.org Cc: "Paul A. Patience" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169704717118556 (code B ref -1); Wed, 11 Oct 2023 18:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Oct 2023 17:59:31 +0000 Received: from localhost ([127.0.0.1]:40026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqdUY-0004pE-Lk for submit@debbugs.gnu.org; Wed, 11 Oct 2023 13:59:31 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqdUV-0004ow-Pb for submit@debbugs.gnu.org; Wed, 11 Oct 2023 13:59:29 -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 1qqdU1-0007EL-Vc for guix-patches@gnu.org; Wed, 11 Oct 2023 13:58:58 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqdTz-0007Un-Bo for guix-patches@gnu.org; Wed, 11 Oct 2023 13:58:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1697047132; x=1697306332; bh=znafgczm7oDIvweiMgbdyKglbLKD8Sz/UniTVAGfQJ4=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=ccs7IMUX/+S+vr4++egY7MF888STK1b2angAAi62saSdz1q+wKnqQGx8njSpARlwR 1hhfBoUzjqsvgeqpEL2Gr8EKZqx4gM7vGEcz2xEfzc7Ax4+M0azCt2/7pPD4vpi5yI g8zX1D3mukMejey5+2JHhONOLGvbvCNj0UWRgv803N6Vg4cWmOz4T0nUI1ddHTjvN3 +77OqjVAxatx6YKMH/PUIWhPOl1sofbl6jsBF8S87ygFkeRBYQykTUN3J92kyR4JBO F1Tu/Xro2gdmj3Z82iJ6RCaIAtervHYq96ty3Ont5tKvHKfMOkCZZH3smS7PH96FH3 q6wA8HrfMibjA== Date: Wed, 11 Oct 2023 17:58:34 +0000 From: "Paul A. Patience" Message-ID: Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.136; envelope-from=paul@apatience.com; helo=mail-40136.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-xyz.scm (python-versioneer): Update to 0.29. [build-system]: Switch to pyproject-build-system. [arguments, native-inputs, propagated-inputs]: New fields. [license]: Set to Unlicense. --- gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) base-commit: f4e8baf3806e79d7111d2943859865ae4ee0b59d diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 94e8db934f..95eca1cf01 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29879,26 +29879,48 @@ (define-public python-version (define-public python-versioneer (package (name "python-versioneer") - (version "0.21") + (version "0.29") (source (origin (method url-fetch) (uri (pypi-uri "versioneer" version)) (sha256 (base32 - "084fglxafbzvf1vbkzfajvs9qwnvjwwn8pxql9nrlpyipv5xpwk4")) + "0cap4cjckxp9mlkprqayfs77k3pn5iwpr2riacdxc4bjhnwq7cjs")) (patches (search-patches "python-versioneer-guix-support.patch")))) - (build-system python-build-system) - (home-page - "https://github.com/python-versioneer/python-versioneer") - (synopsis - "Version-string management for VCS-controlled trees") + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Taken from tox.ini. + (invoke "python" "setup.py" "make_versioneer") + (invoke "python" "-m" "unittest" "discover" "test") + (invoke "python" "test/git/test_git.py" "-v") + ;; Some invocation tests require the network. + ;;(invoke "python" "test/git/test_invocations.py" "-v") + (invoke "python" "setup.py" "make_long_version_py_git") + (invoke "pyflakes" "setup.py" "versioneer.py" "git_version.py") + (invoke "python" "test/run_pyflakes_src.py") + (invoke "pyflakes" "test") + (invoke "flake8" "git_version.py" "versioneer.py") + (invoke "pycodestyle" "--max-line-length=88" + "git_version.py" "versioneer.py"))))))) + (native-inputs + (list git python-flake8 python-pycodestyle python-pyflakes)) + (propagated-inputs + (list python-tomli)) + (home-page "https://github.com/python-versioneer/python-versioneer") + (synopsis "Version-string management for VCS-controlled trees") (description "@code{versioneer} is a tool for managing a recorded version number in distutils-based python projects. The goal is to remove the tedious and error-prone \"update the embedded version string\" step from your release process.") - (license license:public-domain))) + (license license:unlicense))) (define-public python-gamera (package