all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: 66690@debbugs.gnu.org
Cc: "Arun Isaac" <arunisaac@systemreboot.net>,
	"Arun Isaac" <arunisaac@systemreboot.net>,
	"Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#66690] [PATCH v2 8/8] gnu: cwltool: Update to 3.1.20240112164112.
Date: Thu, 15 Feb 2024 20:46:25 +0000	[thread overview]
Message-ID: <e37d08319f0b7608fc2ac47e9281cba0918fe77e.1708029746.git.arunisaac@systemreboot.net> (raw)
In-Reply-To: <cover.1708029746.git.arunisaac@systemreboot.net>

* gnu/packages/bioinformatics.scm (cwltool): Update to 3.1.20240112164112.
[arguments]: Use G-expressions. Set version in setup.py. Do not attempt to
substitute files cwltool/schemas/v1.1/tests/env-tool1.cwl,
cwltool/schemas/v1.1/tests/env-tool2.cwl and
cwltool/schemas/v1.1/tests/imported-hint.cwl that have been removed in this
release. Do not remove "-n auto" from pytest flags.
[inputs]: Add python-cwl-utils and python-spython.
[native-inputs]: Add python-pytest-xdist.

Change-Id: If1be7cdf39b767c5ef2a1dbddfdc95f59ea98cb6

Change-Id: I2ba81e8569abcf43cd0fad33daab1e4f8689e77f
---
 gnu/packages/bioinformatics.scm | 89 ++++++++++++++++-----------------
 1 file changed, 43 insertions(+), 46 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 35c4d7d993..cc1a966b41 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -5235,7 +5235,7 @@ (define-public python-cwl-utils
 (define-public cwltool
   (package
     (name "cwltool")
-    (version "3.1.20220119140128")
+    (version "3.1.20240112164112")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -5244,56 +5244,51 @@ (define-public cwltool
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1jmrm0qrqgka79avc1kq63fgh20gx6g07fc8p3iih4k85vhdyl3f"))))
+                "1fpc5kqgpbn48g5vlvy64p297x2wm3gfz8casgpk15ap593wwh33"))))
     (build-system pyproject-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'loosen-version-restrictions
-           (lambda _
-             (substitute* "setup.py"
-               (("== 1.5.1") ">=1.5.1")))) ; prov
-         (add-after 'unpack 'dont-use-git
-           (lambda _
-             (substitute* "gittaggers.py"
-               (("self.git_timestamp_tag\\(\\)")
-                (string-append "time.strftime('.%Y%m%d%H%M%S', time.gmtime(int("
-                               (string-drop ,version 4) ")))")))))
-         (add-after 'unpack 'modify-tests
-           (lambda _
-             ;; Tries to connect to the internet.
-             (delete-file "tests/test_content_type.py")
-             (delete-file "tests/test_udocker.py")
-             (delete-file "tests/test_http_input.py")
-             (substitute* "tests/test_load_tool.py"
-               (("def test_load_graph_fragment_from_packed")
-                (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
-                               "def test_load_graph_fragment_from_packed")))
-             (substitute* "tests/test_examples.py"
-               (("def test_env_filtering")
-                (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
-                               "def test_env_filtering")))
-             ;; Tries to use cwl-runners.
-             (substitute* "tests/test_examples.py"
-               (("def test_v1_0_arg_empty_prefix_separate_false")
-                (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
-                               "def test_v1_0_arg_empty_prefix_separate_false")))
-
-             (substitute* '("cwltool/schemas/v1.1/tests/env-tool1.cwl"
-                            "cwltool/schemas/v1.1/tests/env-tool2.cwl"
-                            "cwltool/schemas/v1.1/tests/imported-hint.cwl"
-                            "tests/subgraph/env-tool2.cwl"
-                            "tests/subgraph/env-tool2_req.cwl"
-                            "tests/subgraph/env-wf2_subwf-packed.cwl"
-                            "tests/subgraph/env-tool2_no_env.cwl")
-               (("\"/bin/sh\"") (string-append "\"" (which "sh") "\"")))
-             ;; Pytest doesn't know what to do with "-n auto"
-             (substitute* "tox.ini"
-               (("-n auto") "")))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'loosen-version-restrictions
+            (lambda _
+              (substitute* "setup.py"
+                (("== 1.5.1") "> 1.5.1")))) ; prov
+          (add-after 'unpack 'set-version
+            (lambda _
+              ;; Set exact version.
+              (substitute* "setup.py"
+                (("use_scm_version=True")
+                 (string-append "version=\"" #$version "\"")))))
+          (add-after 'unpack 'modify-tests
+            (lambda _
+              ;; Tries to connect to the internet.
+              (delete-file "tests/test_content_type.py")
+              (delete-file "tests/test_udocker.py")
+              (delete-file "tests/test_http_input.py")
+              (substitute* "tests/test_load_tool.py"
+                (("def test_load_graph_fragment_from_packed")
+                 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
+                                "def test_load_graph_fragment_from_packed")))
+              (substitute* "tests/test_examples.py"
+                (("def test_env_filtering")
+                 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
+                                "def test_env_filtering")))
+              ;; Tries to use cwl-runners.
+              (substitute* "tests/test_examples.py"
+                (("def test_v1_0_arg_empty_prefix_separate_false")
+                 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
+                                "def test_v1_0_arg_empty_prefix_separate_false")))
+              (substitute* '("tests/subgraph/env-tool2.cwl"
+                             "tests/subgraph/env-tool2_req.cwl"
+                             "tests/subgraph/env-wf2_subwf-packed.cwl"
+                             "tests/subgraph/env-tool2_no_env.cwl")
+                (("\"/bin/sh\"") (string-append "\"" (which "sh") "\""))))))))
     (inputs
      (list python-argcomplete
            python-bagit
            python-coloredlogs
+           python-cwl-utils
            python-mypy-extensions
            python-prov
            python-pydot
@@ -5303,6 +5298,7 @@ (define-public cwltool
            python-ruamel.yaml
            python-schema-salad
            python-shellescape
+           python-spython
            python-typing-extensions
            ;; Not listed as needed but still necessary:
            node))
@@ -5313,7 +5309,8 @@ (define-public cwltool
            python-pytest
            python-pytest-cov
            python-pytest-mock
-           python-pytest-runner))
+           python-pytest-runner
+           python-pytest-xdist))
     (home-page
      "https://github.com/common-workflow-language/common-workflow-language")
     (synopsis "Common Workflow Language reference implementation")
-- 
2.41.0





  parent reply	other threads:[~2024-02-15 20:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-22 22:27 [bug#66690] [PATCH 0/7] Upgrade cwltool Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 1/7] gnu: python-ruamel.yaml.clib: Update to 0.2.7 Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 2/7] gnu: python-ruamel.yaml: Update to 0.17.40 Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 3/7] gnu: python-schema-salad: Update to 8.4.20230927144413 Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 4/7] gnu: Add python-cwlformat Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 5/7] gnu: Add python-cwl-upgrader Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 6/7] gnu: Add python-cwl-utils Arun Isaac
2023-10-23  8:09 ` [bug#66690] [PATCH 7/7] gnu: cwltool: Update to 3.1.20230601100705 Arun Isaac
2023-11-22 14:37 ` [bug#66690] [PATCH 0/7] Upgrade cwltool Ludovic Courtès
2023-11-23  0:35   ` Arun Isaac
2024-02-15 20:46 ` [bug#66690] [PATCH v2 0/8] " Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 1/8] gnu: python-ruamel.yaml.clib: Update to 0.2.8 Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 2/8] gnu: python-ruamel-yaml: Update to 0.18.6 Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 3/8] gnu: python-schema-salad: Update to 8.5.20240102191335 Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 4/8] gnu: Add python-cwlformat Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 5/8] gnu: Add python-cwl-upgrader Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 6/8] gnu: Add python-cwl-utils Arun Isaac
2024-02-15 20:46   ` [bug#66690] [PATCH v2 7/8] gnu: Add python-spython Arun Isaac
2024-02-15 20:46   ` Arun Isaac [this message]
2024-02-18 22:39   ` [bug#66690] [PATCH v2 0/8] Upgrade cwltool Ludovic Courtès
2024-02-22 13:16     ` bug#66690: " Arun Isaac

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

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

  git send-email \
    --in-reply-to=e37d08319f0b7608fc2ac47e9281cba0918fe77e.1708029746.git.arunisaac@systemreboot.net \
    --to=arunisaac@systemreboot.net \
    --cc=66690@debbugs.gnu.org \
    --cc=ludo@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.