GNU bug report logs - #39110
[PATCH 1/2] gnu: Add python-asynctest

Previous Next

Package: guix-patches;

Reported by: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>

Date: Mon, 13 Jan 2020 09:27:02 UTC

Severity: normal

Tags: patch

Done: iyzsong <at> member.fsf.org (宋文武)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39110 in the body.
You can then email your comments to 39110 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#39110; Package guix-patches. (Mon, 13 Jan 2020 09:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars-Dominik Braun <ldb <at> leibniz-psychology.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 13 Jan 2020 09:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: guix-patches <at> gnu.org
Cc: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Subject: [PATCH 1/2] gnu: Add python-asynctest
Date: Mon, 13 Jan 2020 10:26:34 +0100
* gnu/packages/python-xyz.scm (python-asynctest): New variable
---
 gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9736bfa3fa..21d7b21132 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17280,3 +17280,36 @@ server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio
 framework")
     (license license:epl2.0)))
 
+(define-public python-asynctest
+  (package
+    (name "python-asynctest")
+    (version "0.13.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "asynctest" version))
+        (sha256
+          (base32
+            "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "python" "-X" "dev" "-m" "unittest" "test")))
+         (add-after 'unpack 'disable-tests
+           (lambda* _
+            (substitute* "test/test_selector.py"
+              ;; Test fails for unknown reason
+              (("def test_events_watched_outside_test_are_ignored")
+                "@unittest.skip('disabled by guix')\n    def test_events_watched_outside_test_are_ignored")))))))
+    (home-page
+      "https://github.com/Martiusweb/asynctest")
+    (synopsis
+      "Enhance the standard unittest package with features for testing asyncio
+libraries")
+    (description
+      "The package asynctest is built on top of the standard unittest module
+and cuts down boilerplate code when testing libraries for asyncio")
+    (license license:asl2.0)))
-- 
2.20.1





Information forwarded to guix-patches <at> gnu.org:
bug#39110; Package guix-patches. (Mon, 13 Jan 2020 09:28:02 GMT) Full text and rfc822 format available.

Message #8 received at 39110 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: 39110 <at> debbugs.gnu.org
Cc: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Subject: [PATCH 2/2] gnu: Add python-aionotify
Date: Mon, 13 Jan 2020 10:27:39 +0100
* gnu/packages/python-xyz.scm (python-aionotify): New variable
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 21d7b21132..890bec328f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17313,3 +17313,26 @@ libraries")
       "The package asynctest is built on top of the standard unittest module
 and cuts down boilerplate code when testing libraries for asyncio")
     (license license:asl2.0)))
+
+(define-public python-aionotify
+  (package
+    (name "python-aionotify")
+    (version "0.2.0")
+    (source
+     (origin
+       ;; Source tarball on PyPi lacks tests
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rbarrois/aionotify")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"))))
+    (build-system python-build-system)
+    (native-inputs `(("python-asynctest" ,python-asynctest)))
+    (home-page
+      "https://github.com/rbarrois/aionotify")
+    (synopsis "Asyncio-powered inotify library")
+    (description "aionotify is a simple, asyncio-based inotify library")
+    (license license:bsd-3)))
+
-- 
2.20.1





Information forwarded to guix-patches <at> gnu.org:
bug#39110; Package guix-patches. (Mon, 13 Jan 2020 11:10:02 GMT) Full text and rfc822 format available.

Message #11 received at 39110 <at> debbugs.gnu.org (full text, mbox):

From: iyzsong <at> member.fsf.org (宋文武)
To: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Cc: 39110 <at> debbugs.gnu.org
Subject: Re: [bug#39110] [PATCH 1/2] gnu: Add python-asynctest
Date: Mon, 13 Jan 2020 19:08:41 +0800
Lars-Dominik Braun <ldb <at> leibniz-psychology.org> writes:

> * gnu/packages/python-xyz.scm (python-asynctest): New variable
> ---
>  gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 9736bfa3fa..21d7b21132 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -17280,3 +17280,36 @@ server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio
>  framework")
>      (license license:epl2.0)))
>  
> +(define-public python-asynctest
> +  (package
> +    (name "python-asynctest")
> ...

Hello, this patch doesn't apply by "git am" for master, is the previous
package asyncssh?  Then you should send it first, thanks!




Information forwarded to guix-patches <at> gnu.org:
bug#39110; Package guix-patches. (Tue, 14 Jan 2020 11:00:02 GMT) Full text and rfc822 format available.

Message #14 received at 39110 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: 39110 <at> debbugs.gnu.org
Subject: Re: [bug#39110] [PATCH 1/2] gnu: Add python-asynctest
Date: Tue, 14 Jan 2020 11:59:29 +0100
Hi,

sorry, this was unintentional. python-asyncssh is added in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39028, but this one should be
independent. I’ll rebase on top of master and resend the patch series.

Lars





Information forwarded to guix-patches <at> gnu.org:
bug#39110; Package guix-patches. (Tue, 14 Jan 2020 11:43:02 GMT) Full text and rfc822 format available.

Message #17 received at 39110 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: 39110 <at> debbugs.gnu.org
Cc: iyzsong <at> member.fsf.org, Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Subject: [PATCH 1/2] gnu: Add python-asynctest
Date: Tue, 14 Jan 2020 12:41:22 +0100
* gnu/packages/python-xyz.scm (python-asynctest): New variable
---
 gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2c308796e7..eb74f1e91b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17098,3 +17098,37 @@ scripts to load entry points more quickly.")
 functional combinators.  Parser combinators are just higher-order functions
 that take parsers as their arguments and return them as result values.")
     (license license:expat)))
+
+(define-public python-asynctest
+  (package
+    (name "python-asynctest")
+    (version "0.13.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "asynctest" version))
+        (sha256
+          (base32
+            "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "python" "-X" "dev" "-m" "unittest" "test")))
+         (add-after 'unpack 'disable-tests
+           (lambda* _
+            (substitute* "test/test_selector.py"
+              ;; Test fails for unknown reason
+              (("def test_events_watched_outside_test_are_ignored")
+                "@unittest.skip('disabled by guix')\n    def test_events_watched_outside_test_are_ignored")))))))
+    (home-page
+      "https://github.com/Martiusweb/asynctest")
+    (synopsis
+      "Enhance the standard unittest package with features for testing asyncio
+libraries")
+    (description
+      "The package asynctest is built on top of the standard unittest module
+and cuts down boilerplate code when testing libraries for asyncio")
+    (license license:asl2.0)))
-- 
2.20.1





Information forwarded to guix-patches <at> gnu.org:
bug#39110; Package guix-patches. (Tue, 14 Jan 2020 11:43:02 GMT) Full text and rfc822 format available.

Message #20 received at 39110 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: 39110 <at> debbugs.gnu.org
Cc: iyzsong <at> member.fsf.org, Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Subject: [PATCH 2/2] gnu: Add python-aionotify
Date: Tue, 14 Jan 2020 12:41:23 +0100
* gnu/packages/python-xyz.scm (python-aionotify): New variable
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index eb74f1e91b..b2b6d1d807 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17132,3 +17132,26 @@ libraries")
       "The package asynctest is built on top of the standard unittest module
 and cuts down boilerplate code when testing libraries for asyncio")
     (license license:asl2.0)))
+
+(define-public python-aionotify
+  (package
+    (name "python-aionotify")
+    (version "0.2.0")
+    (source
+     (origin
+       ;; Source tarball on PyPi lacks tests
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rbarrois/aionotify")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"))))
+    (build-system python-build-system)
+    (native-inputs `(("python-asynctest" ,python-asynctest)))
+    (home-page
+      "https://github.com/rbarrois/aionotify")
+    (synopsis "Asyncio-powered inotify library")
+    (description "aionotify is a simple, asyncio-based inotify library")
+    (license license:bsd-3)))
+
-- 
2.20.1





Reply sent to iyzsong <at> member.fsf.org (宋文武):
You have taken responsibility. (Sat, 18 Jan 2020 09:47:01 GMT) Full text and rfc822 format available.

Notification sent to Lars-Dominik Braun <ldb <at> leibniz-psychology.org>:
bug acknowledged by developer. (Sat, 18 Jan 2020 09:47:02 GMT) Full text and rfc822 format available.

Message #25 received at 39110-done <at> debbugs.gnu.org (full text, mbox):

From: iyzsong <at> member.fsf.org (宋文武)
To: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Cc: 39110-done <at> debbugs.gnu.org
Subject: Re: [bug#39110] [PATCH 1/2] gnu: Add python-asynctest
Date: Sat, 18 Jan 2020 17:45:43 +0800
Lars-Dominik Braun <ldb <at> leibniz-psychology.org> writes:

> Hi,
>
> sorry, this was unintentional. python-asyncssh is added in
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39028, but this one should be
> independent. I’ll rebase on top of master and resend the patch series.

Pushed to master now, thank you!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 15 Feb 2020 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 43 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.