all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 47910@debbugs.gnu.org
Cc: Tobias Geerinckx-Rice <me@tobias.gr>, ben@sturm.com.au
Subject: [bug#47910] [PATCH] gnu: python-wtforms: Update to 2.3.3.
Date: Tue, 20 Apr 2021 17:28:47 +0000	[thread overview]
Message-ID: <432e457285cdabe78e9db89f760a387c@dismail.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]

Hi Guix,

This is related to 47260.

Attached is a patch for an upgrade to python-wtforms 2.3.3.

Tests are currently disabled in the attached patch. 

I added a when form in the code for when we are ready to enable the tests.

I'm getting the following error when I try to run the tests with tox:

error: [Errno 13] Permission denied: 'WTForms-2.3.3/setup.cfg'

Should I be using make-file-writable on the above or is this a different issue?

I have not been able to successfully run all the tests without using tox manually. 

See the comment I placed in the patch with a link to the github issue that I opened upstream.

Help and/or advice with testing this is much appreciated. 

What is the consensus for using tox with guix?

I see only one other package in the guix source tree that is currently invoking tox and that package is broken: python-funcparserlib.

python-hy is also broken (it depends on python-funcparserlib and fails because of it)

I think Tobias is currently working on those.

all the best,

jgart

[-- Attachment #2: 0001-gnu-python-wtforms-Update-to-2.3.3.patch --]
[-- Type: application/octet-stream, Size: 3086 bytes --]

From 7104474743af0575e68293384612458abe866917 Mon Sep 17 00:00:00 2001
From: jgart <jgart@dismail.de>
Date: Mon, 19 Apr 2021 03:09:57 -0400
Subject: [PATCH] gnu: python-wtforms: Update to 2.3.3.

    * gnu/packages/python-xyz.scm (python-wtforms): Update to 2.3.3.

    Co-authored-by: Ben Sturmfels <ben@sturm.com.au>
---
 gnu/packages/python-web.scm | 39 ++++++++++++++++++++++---------------
 1 file changed, 23 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 4f34502e86..533086d8f9 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3000,7 +3000,7 @@ presume or force a developer to use a particular tool or library.")
        ("python-babel" ,python-babel)
        ("python-wtforms" ,python-wtforms)))
     (native-inputs
-     `(("python-pytest" ,python-pytest)))
+     `(("python-tox" ,python-tox)))
     (home-page "https://github.com/lepture/flask-wtf")
     (synopsis "Simple integration of Flask and WTForms")
     (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
@@ -4122,29 +4122,36 @@ addon modules.")
 (define-public python-wtforms
   (package
     (name "python-wtforms")
-    (version "2.1")
+    (version "2.3.3")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "WTForms" version ".zip"))
+       (method git-fetch)
+       (uri (git-reference 
+            (url "https://github.com/wtforms/wtforms")
+            (commit version)))
+       (file-name (git-file-name name version))
        (sha256
         (base32
-         "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
+         "0aix0655k8cbylpxi6lgyakigg51iy6bhj248g7d26d0mcpwl6mi"))))
     (build-system python-build-system)
     (arguments
-     '(#:phases
+     `(#:tests? #f
+       #:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'remove-django-test
-           ;; Don't fail the tests when the inputs for the optional tests cannot be found.
-           (lambda _
-             (substitute*
-               "tests/runtests.py"
-               (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
-               (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
-             #t)))))
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               ;; see https://github.com/wtforms/wtforms/issues/687
+               (invoke "tox"))))))) 
     (native-inputs
-     `(("unzip" ,unzip)))
-    (home-page "http://wtforms.simplecodes.com/")
+     `(("python-tox" ,python-tox)
+       ("python-babel" ,python-babel)
+       ("python-pytest" ,python-pytest)
+       ("python-coverage" ,python-coverage)))
+    (propagated-inputs
+     `(("python-markupsafe" ,python-markupsafe)
+       ("python-email-validator" ,python-email-validator)))
+    (home-page "http://wtforms.readthedocs.io")
     (synopsis
      "Form validation and rendering library for Python web development")
     (description
-- 
2.29.3


             reply	other threads:[~2021-04-20 17:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-20 17:28 jgart via Guix-patches via [this message]
2021-07-07 23:29 ` [bug#47910] [PATCH] gnu: python-wtforms: Update to 2.3.3 Vinicius Monego
2021-08-25  0:57   ` Ben Sturmfels via Guix-patches via
2021-09-11 23:37 ` [bug#47910] [PATCH] gnu: python-wtforms: Update to 2.3.3 and adjust arguments+inputs Raghav Gururajan via Guix-patches via
2021-09-11 23:46 ` Raghav Gururajan via Guix-patches via
2021-09-11 23:48 ` bug#47910: python-wtforms Raghav Gururajan via Guix-patches via

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=432e457285cdabe78e9db89f760a387c@dismail.de \
    --to=guix-patches@gnu.org \
    --cc=47910@debbugs.gnu.org \
    --cc=ben@sturm.com.au \
    --cc=jgart@dismail.de \
    --cc=me@tobias.gr \
    /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.