From: Pierre Langlois <pierre.langlois@gmx.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 34931@debbugs.gnu.org
Subject: [bug#34931] [PATCH 0/5] Add gPodder.
Date: Sun, 24 Mar 2019 13:27:01 +0000 [thread overview]
Message-ID: <87tvfs8kt6.fsf@gmx.com> (raw)
In-Reply-To: <87mullv7bx.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 3242 bytes --]
Hi Ludo!
Thanks for taking a look!
Ludovic Courtès writes:
> Hello Pierre!
>
> Pierre Langlois <pierre.langlois@gmx.com> skribis:
>
>> Here is a patch series to add gPodder [0] and its dependencies. Since
>> we have a few packages from the same project I thought we'd add a new
>> gpodder.scm file for them.
>>
>> What do you think?
>
> I think it’s a good idea. All 5 patches LGTM.
>
> Unfortunately, python-mygpoclient fails its tests for me:
>
> --8<---------------cut here---------------start------------->8---
> ======================================================================
> FAIL: test_BadRequest (mygpoclient.http_test.Test_HttpClient)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/tmp/guix-build-python-mygpoclient-1.8.drv-0/mygpoclient-1.8/mygpoclient/http_test.py", line 158, in test_BadRequest
> self.assertRaises(BadRequest, client.GET, path)
> AssertionError: BadRequest not raised by GET
>
> ======================================================================
> FAIL: test_GET (mygpoclient.http_test.Test_HttpClient)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/tmp/guix-build-python-mygpoclient-1.8.drv-0/mygpoclient-1.8/mygpoclient/http_test.py", line 163, in test_GET
> self.assertEquals(client.GET(path), self.RESPONSE)
> AssertionError: b'' != b'Test_GET-HTTP-Response-Content'
>
> ======================================================================
> FAIL: test_GET_after_PUT (mygpoclient.http_test.Test_HttpClient)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/tmp/guix-build-python-mygpoclient-1.8.drv-0/mygpoclient-1.8/mygpoclient/http_test.py", line 200, in test_GET_after_PUT
> self.assertEquals(client.GET(path), self.RESPONSE + str(i).encode('utf-8'))
> AssertionError: b'' != b'Test_GET-HTTP-Response-Content0'
>
> ======================================================================
> FAIL: test_NotFound (mygpoclient.http_test.Test_HttpClient)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/tmp/guix-build-python-mygpoclient-1.8.drv-0/mygpoclient-1.8/mygpoclient/http_test.py", line 148, in test_NotFound
> self.assertRaises(NotFound, client.GET, path)
> AssertionError: NotFound not raised by GET
>
> […]
> --8<---------------cut here---------------end--------------->8---
>
> Could you take a look?
mmmm that's strange, I can't reproduce those failures, was it on master?
In the meantime, I noticed there was a makefile with a `test` target
which uses the `python-nose` and `python-coverage` packages to run the
tests instead. We can try this, I'm not sure I understand how the python
build system discovered the tests before.
Does the attached patch fix the problem for you? It's a bit of a shot in
the dark.
Also, I fixed the ChangeLog entry, the patch doesn't include a python2
version of the package since I don't expect packages other than gPodder
to depend on this.
Thanks,
Pierre
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-mygpoclient.patch --]
[-- Type: text/x-patch, Size: 1823 bytes --]
From 25a1f5a1543274988983cec8bb7e5b9363f382ef Mon Sep 17 00:00:00 2001
From: Pierre Langlois <pierre.langlois@gmx.com>
Date: Wed, 20 Mar 2019 23:55:31 +0000
Subject: [PATCH] gnu: Add python-mygpoclient.
* gnu/packages/podcast.scm (python-mygpoclient): New variable.
---
gnu/packages/gpodder.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/gpodder.scm b/gnu/packages/gpodder.scm
index 5b872908a5..4eda95e626 100644
--- a/gnu/packages/gpodder.scm
+++ b/gnu/packages/gpodder.scm
@@ -57,6 +57,36 @@
and track podcasts.")
(license license:lgpl2.1+)))
+(define-public python-mygpoclient
+ (package
+ (name "python-mygpoclient")
+ (version "1.8")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "mygpoclient" version))
+ (sha256
+ (base32
+ "1fi5x6k1mngr0iviw2s4n1f3y2x7pwqy5ivkcrjdprzvwr37f0mh"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-minimock" ,python-minimock)
+ ("python-nose" ,python-nose)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "make" "test"))))))
+ (home-page "https://mygpoclient.readthedocs.io")
+ (synopsis "Python library for the gPodder web service")
+ (description "@code{mygpoclient} provides an easy and structured way to
+access the @url{https://gpodder.net} web services. In addition to
+subscription list synchronization and storage, the API supports uploading and
+downloading episode status changes.")
+ (license license:gpl3)))
+
(define-public python-podcastparser
(package
(name "python-podcastparser")
--
2.21.0
next prev parent reply other threads:[~2019-03-24 13:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-21 0:11 [bug#34931] [PATCH 0/5] Add gPodder Pierre Langlois
2019-03-21 0:22 ` [bug#34931] [PATCH 1/5] gnu: libmygpo-qt: Move to new 'gpodder.scm' file Pierre Langlois
2019-03-21 0:22 ` [bug#34931] [PATCH 2/5] gnu: Add python-podcastparser Pierre Langlois
2019-03-21 0:22 ` [bug#34931] [PATCH 3/5] gnu: Add python-minimock Pierre Langlois
2019-03-21 0:22 ` [bug#34931] [PATCH 4/5] gnu: Add python-mygpoclient Pierre Langlois
2019-06-27 19:38 ` swedebugia
2019-06-27 22:33 ` Pierre Langlois
2019-06-28 6:11 ` Pierre Langlois
2019-03-21 0:22 ` [bug#34931] [PATCH 5/5] gnu: Add gPodder Pierre Langlois
2019-03-25 9:32 ` bug#34931: " Ludovic Courtès
2019-03-23 17:17 ` [bug#34931] [PATCH 0/5] " Ludovic Courtès
2019-03-24 13:27 ` Pierre Langlois [this message]
2019-03-24 14:24 ` Pierre Langlois
2019-03-24 16:29 ` Pierre Langlois
2019-03-25 9:26 ` Ludovic Courtès
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=87tvfs8kt6.fsf@gmx.com \
--to=pierre.langlois@gmx.com \
--cc=34931@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.