all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steve George <steve@futurile.net>
To: 73070@debbugs.gnu.org
Cc: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com,
	sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de
Subject: [bug#73070] [PATCH v2 2/4] gnu: python-readme-renderer: Update to 41.0.
Date: Sat, 21 Sep 2024 23:47:58 +0100	[thread overview]
Message-ID: <17b3c3519e3ac639a55743378f2ce44fd993c652.1726958372.git.steve@futurile.net> (raw)
In-Reply-To: <cover.1726958372.git.steve@futurile.net>

From: Ricardo Wurmus <rekado@elephly.net>

* gnu/packages/python-xyz.scm (python-readme-renderer): Update to 41.0.
[build-system]: Use pyproject-build-system.
[arguments]: Delete 'loosen-cmarkgfm-dependency phase; replace custom 'check
phase with #:test-flags.
[native-inputs]: Add python-wheel; remove python-mock.

Reviewed-by: Steve George <steve@futurile.net>
Change-Id: I47cef84089384d2cf760c166fed9147863d1a415
---
 gnu/packages/python-xyz.scm | 42 ++++++++++++++++++-------------------
 1 file changed, 20 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f79821e86d..503d8f510f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -32015,38 +32015,36 @@ (define-public python-blessed
 (define-public python-readme-renderer
   (package
     (name "python-readme-renderer")
-    (version "34.0")
+    (version "41.0")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "readme_renderer" version))
         (sha256
          (base32
-          "1c75h9znffc2lh4j56yg23l5ifj5l8fbdq3kfigi8vbh45zx3d6z"))))
-    (build-system python-build-system)
+            "1xvkf2i075rdqkwdrcrw4xglziqd7qs5lb2rbxr5snizi7ji2jsg"))))
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases (modify-phases %standard-phases
-                  (add-after 'unpack 'loosen-cmarkgfm-dependency
-                    (lambda _
-                      ;; Permit newer versions of cmarkgfm.
-                      (substitute* "setup.py"
-                        (("cmarkgfm>=0\\.5\\.0,<0\\.7\\.0")
-                         "cmarkgfm>=0.5.0"))))
-                  (replace 'check
-                    (lambda* (#:key tests? #:allow-other-keys)
-                      (when tests?
-                        ;; The GFM tests fail due to slight differences in the
-                        ;; generated vs expected HTML due to using a more
-                        ;; recent bleach version (see:
-                        ;; https://github.com/pypa/readme_renderer/issues/234).
-                        (invoke "pytest" "-vv" "-k" "not GFM")))))))
-    (propagated-inputs
-     (list python-bleach python-docutils python-pygments
-
+     (list
+      #:test-flags
+      '(list "-k"
+             (string-append
+              ;; These tests fail due to slight differences in the generated
+              ;; vs expected HTML, e.g. because of difference in whitespace or
+              ;; line breaks. (See also
+              ;; https://github.com/pypa/readme_renderer/issues/234).
+              "not test_md_fixtures[test_CommonMark_008.md]"
+              " and not test_rst_fixtures[test_rst_008.rst]"
+              " and not GFM"))))
+    (propagated-inputs
+     (list python-bleach
+           python-docutils
+           python-pygments
            ;; Optional dependencies.
            python-cmarkgfm))           ;required by postorius
     (native-inputs
-     (list python-mock python-pytest))
+     (list python-pytest
+           python-wheel))
     (home-page "https://github.com/pypa/readme_renderer")
     (synopsis "Render README files in Warehouse")
     (description
-- 
2.46.0





  parent reply	other threads:[~2024-09-21 22:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-06 14:20 [bug#73070] [PATCH 0/3] Fix python development environment Nicolas Graves via Guix-patches via
2024-09-06 15:25 ` [bug#73070] [PATCH 1/3] gnu: python-pkginfo: Update to 1.10.0 Nicolas Graves via Guix-patches via
2024-09-06 15:25   ` [bug#73070] [PATCH 2/3] gnu: python-twine: Update to 5.1.1 Nicolas Graves via Guix-patches via
2024-09-06 15:25   ` [bug#73070] [PATCH 3/3] gnu: python-altair: Update to 5.3.0 Nicolas Graves via Guix-patches via
2024-09-21 22:47 ` [bug#73070] [PATCH v2 0/4] Series updating python-twine & python-altair Steve George
2024-09-21 22:47   ` [bug#73070] [PATCH v2 1/4] gnu: python-pkginfo: Update to 1.10.0 Steve George
2024-09-21 22:47   ` Steve George [this message]
2024-09-21 22:47   ` [bug#73070] [PATCH v2 3/4] gnu: python-twine: Update to 5.1.1 Steve George
2024-09-21 22:48   ` [bug#73070] [PATCH v2 4/4] gnu: python-altair: Update to 5.3.0 Steve George
2024-09-25 14:16   ` [bug#73070] [PATCH v2 0/4] Series updating python-twine & python-altair Ludovic Courtès
2024-09-25 17:07     ` jgart via Guix-patches via
2024-09-25 23:03 ` [bug#73070] [PATCH 0/3] Fix python development environment Sharlatan Hellseher
2024-09-26  6:57   ` Nicolas Graves via Guix-patches via
2024-09-26  7:23 ` Sharlatan Hellseher
2024-09-26  7:41 ` [bug#73070] Apply patches Andreas Enge
2024-09-26  9:32 ` bug#73070: [PATCH 0/3] Fix python development environment Sharlatan Hellseher

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=17b3c3519e3ac639a55743378f2ce44fd993c652.1726958372.git.steve@futurile.net \
    --to=steve@futurile.net \
    --cc=73070@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    --cc=lars@6xq.net \
    --cc=marius@gnu.org \
    --cc=me@bonfacemunyoki.com \
    --cc=sharlatanus@gmail.com \
    --cc=tanguy@bioneland.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.