unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Paul A. Patience" <paul@apatience.com>
To: 66468@debbugs.gnu.org
Cc: "Paul A. Patience" <paul@apatience.com>
Subject: [bug#66468] [PATCH] gnu: python-versioneer: Update to 0.29.
Date: Wed, 11 Oct 2023 17:58:34 +0000	[thread overview]
Message-ID: <a38a0f698d0ddb6f807a39158829949d5ac9e243.1697047087.git.paul@apatience.com> (raw)

* 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(-)

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

base-commit: f4e8baf3806e79d7111d2943859865ae4ee0b59d
-- 
2.41.0






             reply	other threads:[~2023-10-11 18:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-11 17:58 Paul A. Patience [this message]
2023-10-25  9:55 ` bug#66468: [PATCH] gnu: python-versioneer: Update to 0.29 Mathieu Othacehe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a38a0f698d0ddb6f807a39158829949d5ac9e243.1697047087.git.paul@apatience.com \
    --to=paul@apatience.com \
    --cc=66468@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).