all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#33436] [PATCH] gnu: Add python-warcio.
@ 2018-11-19 20:41 swedebugia
  2018-11-21 10:21 ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: swedebugia @ 2018-11-19 20:41 UTC (permalink / raw)
  To: 33436

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


-- 
Cheers
Swedebugia

[-- Attachment #2: 0001-gnu-Add-python-warcio.patch --]
[-- Type: text/x-patch, Size: 1618 bytes --]

From 537b2b111a464956bdec640ea5f84c4598ea66f9 Mon Sep 17 00:00:00 2001
From: swedebugia <swedebugia@riseup.net>
Date: Mon, 19 Nov 2018 21:37:46 +0100
Subject: [PATCH] gnu: Add python-warcio.

* gnu/packages/python.scm: New variable.
---
 gnu/packages/python.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 2b7482a3e..24e8c409f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14630,3 +14630,29 @@ on regular expressions.")
      "This module implements the PRECIS Framework as described in RFC 8264,
 RFC 8265 and RFC 8266.")
     (license license:expat)))
+
+(define-public python-warcio
+  (package
+   (name "python-warcio")
+   (version "1.6.3")
+   (source
+    (origin
+      (method url-fetch)
+      (uri (pypi-uri "warcio" version))
+      (sha256
+       (base32
+        "1nyhghbag1chh5fml848x799mwgkgmz3l3ipv7lr6p0lj1jq8i1r"))))
+   (build-system python-build-system)
+   (inputs `(("python-six" ,python-six)
+             ("python-requests" ,python-requests)
+             ("python-httpbin" ,python-httpbin)
+             ("python-pytest-cov" ,python-pytest-cov)))
+   (arguments
+    ;; FIXME: Some tests require network access. 150 out of 1354 fail
+    '(#:tests? #f))
+   (home-page "https://github.com/webrecorder/warcio")
+   (synopsis "Streaming web archival archive (WARC) library")
+   (description
+    "warcio is designed for fast, low-level access to web archival
+content, oriented around a stream of WARC records rather than files.")
+   (license license:asl2.0)))
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#33436] [PATCH] gnu: Add python-warcio.
  2018-11-19 20:41 [bug#33436] [PATCH] gnu: Add python-warcio swedebugia
@ 2018-11-21 10:21 ` Ludovic Courtès
  2019-01-11  8:29   ` Ludovic Courtès
  2021-07-13 15:23   ` bug#33436: " Maxim Cournoyer
  0 siblings, 2 replies; 6+ messages in thread
From: Ludovic Courtès @ 2018-11-21 10:21 UTC (permalink / raw)
  To: swedebugia; +Cc: 33436

Hello!

swedebugia <swedebugia@riseup.net> skribis:

>>From 537b2b111a464956bdec640ea5f84c4598ea66f9 Mon Sep 17 00:00:00 2001
> From: swedebugia <swedebugia@riseup.net>
> Date: Mon, 19 Nov 2018 21:37:46 +0100
> Subject: [PATCH] gnu: Add python-warcio.
>
> * gnu/packages/python.scm: New variable.
                           ^
Nitpick: You forgot the variable name here.  :-)

> +   (arguments
> +    ;; FIXME: Some tests require network access. 150 out of 1354 fail
> +    '(#:tests? #f))

Could you investigate a bit further?  What do the test logs show?

It would be good to see if these tests can be easily fixed, if they
should definitely be skipped (for instance because they rely on some
external service), or if it’s something else.

> +   (home-page "https://github.com/webrecorder/warcio")
> +   (synopsis "Streaming web archival archive (WARC) library")
> +   (description
> +    "warcio is designed for fast, low-level access to web archival
                 ^^
What about: “warcio is a Python library to read and write the WARC format
commonly used in Web archives.  It is designed for…”?

Thank you,
Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#33436] [PATCH] gnu: Add python-warcio.
  2018-11-21 10:21 ` Ludovic Courtès
@ 2019-01-11  8:29   ` Ludovic Courtès
  2019-02-24  2:01     ` swedebugia
  2021-07-13 15:23   ` bug#33436: " Maxim Cournoyer
  1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2019-01-11  8:29 UTC (permalink / raw)
  To: swedebugia; +Cc: 33436

Ping!

ludo@gnu.org (Ludovic Courtès) skribis:

> Hello!
>
> swedebugia <swedebugia@riseup.net> skribis:
>
>>>>From 537b2b111a464956bdec640ea5f84c4598ea66f9 Mon Sep 17 00:00:00 2001
>> From: swedebugia <swedebugia@riseup.net>
>> Date: Mon, 19 Nov 2018 21:37:46 +0100
>> Subject: [PATCH] gnu: Add python-warcio.
>>
>> * gnu/packages/python.scm: New variable.
>                            ^
> Nitpick: You forgot the variable name here.  :-)
>
>> +   (arguments
>> +    ;; FIXME: Some tests require network access. 150 out of 1354 fail
>> +    '(#:tests? #f))
>
> Could you investigate a bit further?  What do the test logs show?
>
> It would be good to see if these tests can be easily fixed, if they
> should definitely be skipped (for instance because they rely on some
> external service), or if it’s something else.
>
>> +   (home-page "https://github.com/webrecorder/warcio")
>> +   (synopsis "Streaming web archival archive (WARC) library")
>> +   (description
>> +    "warcio is designed for fast, low-level access to web archival
>                  ^^
> What about: “warcio is a Python library to read and write the WARC format
> commonly used in Web archives.  It is designed for…”?
>
> Thank you,
> Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#33436] [PATCH] gnu: Add python-warcio.
  2019-01-11  8:29   ` Ludovic Courtès
@ 2019-02-24  2:01     ` swedebugia
  2019-03-04 13:43       ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: swedebugia @ 2019-02-24  2:01 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 33436@debbugs.gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 1532 bytes --]

On 2019-01-11 09:29, Ludovic Courtès wrote:
> Ping!
> 
> ludo@gnu.org (Ludovic Courtès) skribis:
> 
>> Hello!
>>
>> swedebugia <swedebugia@riseup.net> skribis:
>>
>>>> >From 537b2b111a464956bdec640ea5f84c4598ea66f9 Mon Sep 17 00:00:00 2001
>>> From: swedebugia <swedebugia@riseup.net>
>>> Date: Mon, 19 Nov 2018 21:37:46 +0100
>>> Subject: [PATCH] gnu: Add python-warcio.
>>>
>>> * gnu/packages/python.scm: New variable.
>>                            ^
>> Nitpick: You forgot the variable name here.  :-)
>>
>>> +   (arguments
>>> +    ;; FIXME: Some tests require network access. 150 out of 1354 fail
>>> +    '(#:tests? #f))
>>
>> Could you investigate a bit further?  What do the test logs show?
>>
>> It would be good to see if these tests can be easily fixed, if they
>> should definitely be skipped (for instance because they rely on some
>> external service), or if it’s something else.
>>
>>> +   (home-page "https://github.com/webrecorder/warcio")
>>> +   (synopsis "Streaming web archival archive (WARC) library")
>>> +   (description
>>> +    "warcio is designed for fast, low-level access to web archival
>>                  ^^
>> What about: “warcio is a Python library to read and write the WARC format
>> commonly used in Web archives.  It is designed for…”?
>>
>> Thank you,
>> Ludo’.
Here comes the log from the build.

I see a lot of "OSError: [Errno 9] Bad file descriptor" and a few
"FileNotFoundError"

Should I report upstream?

-- 
Cheers Swedebugia

[-- Attachment #1.1.2: gwkz0zj2bqbw83nhh1ba1iq7lndryg-python-warcio-1.6.3.drv.bz2 --]
[-- Type: application/x-bzip, Size: 20899 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#33436] [PATCH] gnu: Add python-warcio.
  2019-02-24  2:01     ` swedebugia
@ 2019-03-04 13:43       ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2019-03-04 13:43 UTC (permalink / raw)
  To: swedebugia; +Cc: 33436@debbugs.gnu.org

Hello swedebugia,

swedebugia <swedebugia@riseup.net> skribis:

> On 2019-01-11 09:29, Ludovic Courtès wrote:

[...]

>>>> +   (arguments
>>>> +    ;; FIXME: Some tests require network access. 150 out of 1354 fail
>>>> +    '(#:tests? #f))
>>>
>>> Could you investigate a bit further?  What do the test logs show?

[...]

> Here comes the log from the build.
>
> I see a lot of "OSError: [Errno 9] Bad file descriptor" and a few
> "FileNotFoundError"
>
> Should I report upstream?

Yes, please.  Perhaps you need to investigate a little bit beforehand
(see <https://gnu.org/s/guix/manual/en/html_node/Debugging-Build-Failures.html>)
so you can provide them with just the information they need to reproduce
and understand the problem.

Thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#33436: [PATCH] gnu: Add python-warcio.
  2018-11-21 10:21 ` Ludovic Courtès
  2019-01-11  8:29   ` Ludovic Courtès
@ 2021-07-13 15:23   ` Maxim Cournoyer
  1 sibling, 0 replies; 6+ messages in thread
From: Maxim Cournoyer @ 2021-07-13 15:23 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: swedebugia, 33436-done

Hello,

I've added the 'python-wsgiprox' and 'python-certauth' missing
dependencies as of warcio 1.7.4, managed to get the test suite to run
with only 2 disabled tests (due to networking requirements), and pushed
as 89bd7565e8.

Thanks to both of you!

Closing.

Maxim




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-13 15:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-19 20:41 [bug#33436] [PATCH] gnu: Add python-warcio swedebugia
2018-11-21 10:21 ` Ludovic Courtès
2019-01-11  8:29   ` Ludovic Courtès
2019-02-24  2:01     ` swedebugia
2019-03-04 13:43       ` Ludovic Courtès
2021-07-13 15:23   ` bug#33436: " Maxim Cournoyer

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.