all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#42741] [PATCH 1/4] gnu: Add python-outcome.
@ 2020-08-07 13:24 Vinicius Monego
  2020-08-07 13:24 ` [bug#42742] [PATCH 2/4] gnu: Add python-trustme Vinicius Monego
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Vinicius Monego @ 2020-08-07 13:24 UTC (permalink / raw)
  To: 42741; +Cc: Vinicius Monego

* gnu/packages/python-xyz.scm (python-outcome): 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 e4a83a2f37..e15f1a495e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18929,6 +18929,39 @@ easy-to-extend subclass system, and lots of primitive constructs to
 make your work easier.")
     (license license:expat)))
 
+(define-public python-outcome
+  (package
+    (name "python-outcome")
+    (version "1.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "outcome" version))
+       (sha256
+        (base32 "0vxn04vspmlkkyijjkjnsc46f93ki8g62hr7ag10zpd7ic324y7w"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (invoke "pytest" "-vv"))))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-pytest-asyncio" ,python-pytest-asyncio)))
+    (propagated-inputs
+     `(("python-async-generator" ,python-async-generator)
+       ("python-attrs" ,python-attrs)))
+    (home-page "https://github.com/python-trio/outcome")
+    (synopsis "Capture the outcome of Python function calls")
+    (description
+     "Capture the outcome of Python function calls.  Extracted from the Trio
+project.")
+    ;; Either license applies.
+    (license (list license:expat license:asl2.0))))
+
 (define-public python-humanize
   (package
     (name "python-humanize")
-- 
2.20.1





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

* [bug#42742] [PATCH 2/4] gnu: Add python-trustme.
  2020-08-07 13:24 [bug#42741] [PATCH 1/4] gnu: Add python-outcome Vinicius Monego
@ 2020-08-07 13:24 ` Vinicius Monego
  2020-08-09 11:55   ` bug#42742: " Efraim Flashner
  2020-08-07 13:24 ` [bug#42743] [PATCH 3/4] gnu: Add python-trio Vinicius Monego
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: Vinicius Monego @ 2020-08-07 13:24 UTC (permalink / raw)
  To: 42742; +Cc: Vinicius Monego

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

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index ecf82f2078..f3349b505d 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -23,6 +23,7 @@
 ;;; Copyright © 2019 Clément Lassieur <clement@lassieur.org>
 ;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
 ;;; Copyright © 2020 Justus Winter <justus@sequoia-pgp.org>
+;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -54,6 +55,7 @@
   #:use-module (gnu packages protobuf)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-check)
+  #:use-module (gnu packages python-compression)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages time)
@@ -1347,7 +1349,42 @@ items and collections, editing items, locking and unlocking collections
 (asynchronous unlocking is also supported).")
     (license license:bsd-3)))
 
+(define-public python-trustme
+  (package
+    (name "python-trustme")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "trustme" version))
+       (sha256
+        (base32 "0v3vr5z6apnfmklf07m45kv5kaqvm6hxrkaqywch57bjd2siiywx"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (invoke "pytest" "-vv"))))))
+    (native-inputs
+     `(("python-more-itertools" ,python-more-itertools)
+       ("python-pyopenssl" ,python-pyopenssl)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-service-identity" ,python-service-identity)
+       ("python-zipp" ,python-zipp)))
+    (propagated-inputs
+     `(("python-cryptography" ,python-cryptography)))
+    (home-page "https://github.com/python-trio/trustme")
+    (synopsis "Fake a certificate authority for tests")
+    (description
+     "@code{trustme} is a tiny Python package that does one thing: it gives you
+a fake certificate authority (CA) that you can use to generate fake TLS certs to
+use in your tests.")
+    ;; Either license applies.
+    (license (list license:expat license:asl2.0))))
+
 (define-public python-jeepney
   (package
     (name "python-jeepney")
-- 
2.20.1





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

* [bug#42743] [PATCH 3/4] gnu: Add python-trio.
  2020-08-07 13:24 [bug#42741] [PATCH 1/4] gnu: Add python-outcome Vinicius Monego
  2020-08-07 13:24 ` [bug#42742] [PATCH 2/4] gnu: Add python-trustme Vinicius Monego
@ 2020-08-07 13:24 ` Vinicius Monego
  2020-08-09 11:56   ` bug#42743: " Efraim Flashner
  2020-08-07 13:24 ` [bug#42744] [PATCH 4/4] gnu: Add python-pytest-trio Vinicius Monego
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: Vinicius Monego @ 2020-08-07 13:24 UTC (permalink / raw)
  To: 42743; +Cc: Vinicius Monego

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e15f1a495e..302366411a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18962,7 +18962,68 @@ project.")
     ;; Either license applies.
     (license (list license:expat license:asl2.0))))
 
+(define-public python-trio
+  (package
+    (name "python-trio")
+    (version "0.16.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "trio" version))
+       (sha256
+        (base32 "0g6gkwz6i05rm9ym4l4imxakzld7qcgxhb21kprilchcav87s1nz"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'change-home
+           (lambda _
+             ;; Tests require a writable home.
+             (setenv "HOME" "/tmp")
+             #t))
+         (replace 'check
+           (lambda _
+             (invoke "pytest" "-vv" "-k"
+                     (string-append
+                     ;; This test times out.
+                     "not test_ki_protection_works"
+                     ;; Assertion errors.
+                     " and not test_guest_mode_ki"
+                     " and not test_run_in_trio_thread_ki"
+                     ;; These try to raise KeyboardInterrupt which does not work
+                     ;; in the build environment.
+                     " and not test_ki_self"
+                     " and not test_ki_wakes_us_up"
+                     ;; Failure in name resolution.
+                     " and not test_getnameinfo"
+                     " and not test_SocketType_resolve"
+                     ;; OSError: protocol not found.
+                     " and not test_getprotobyname")))))))
+    (native-inputs
+     `(("python-astor" ,python-astor)
+       ("python-ipython" ,python-ipython)
+       ("python-jedi" ,python-jedi)
+       ("python-pylint" ,python-pylint)
+       ("python-pyopenssl" ,python-pyopenssl)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-trustme" ,python-trustme)))
+    (propagated-inputs
+     `(("python-attrs" ,python-attrs)
+       ("python-idna" ,python-idna)
+       ("python-outcome" ,python-outcome)
+       ("python-sniffio" ,python-sniffio)
+       ("python-sortedcontainers"
+        ,python-sortedcontainers)))
+    (home-page "https://github.com/python-trio/trio")
+    (synopsis "Friendly Python library for async concurrency and I/O")
+    (description
+     "Trio strives to be a production-quality, async/await-native I/O library
+for Python.  Like all async libraries, its main purpose is to help you write
+programs that do multiple things at the same time with parallelized I/O.")
+    ;; Either license applies.
+    (license (list license:expat license:asl2.0))))
+
 (define-public python-humanize
   (package
     (name "python-humanize")
-- 
2.20.1





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

* [bug#42744] [PATCH 4/4] gnu: Add python-pytest-trio.
  2020-08-07 13:24 [bug#42741] [PATCH 1/4] gnu: Add python-outcome Vinicius Monego
  2020-08-07 13:24 ` [bug#42742] [PATCH 2/4] gnu: Add python-trustme Vinicius Monego
  2020-08-07 13:24 ` [bug#42743] [PATCH 3/4] gnu: Add python-trio Vinicius Monego
@ 2020-08-07 13:24 ` Vinicius Monego
  2020-08-09 11:56   ` bug#42744: " Efraim Flashner
  2020-08-07 18:45 ` [bug#42741] [PATCH 1/4] gnu: Add python-outcome Brett Gilio
  2020-08-09 11:55 ` bug#42741: " Efraim Flashner
  4 siblings, 1 reply; 11+ messages in thread
From: Vinicius Monego @ 2020-08-07 13:24 UTC (permalink / raw)
  To: 42744; +Cc: Vinicius Monego

* gnu/packages/python-check.scm (python-pytest-trio): New variable.
---
This pytest line was taken from pytest.ini the source code. Tests were failing
with simpler commands.

 gnu/packages/python-check.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 7a84fe39f9..d0bde27e13 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -436,6 +436,39 @@ in Pytest.")
 of the project to ensure it renders properly.")
     (license license:expat)))
 
+(define-public python-pytest-trio
+  (package
+    (name "python-pytest-trio")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pytest-trio" version))
+       (sha256
+        (base32 "1zm8didm9h5jkqhghl9bvqs7kr7sjci282c7grhk6yhpzn8a9w4v"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (invoke "pytest" "-W" "error" "-ra" "-v" "--pyargs"
+                     "pytest_trio" "--verbose" "--cov"))))))
+    (native-inputs
+     `(("python-hypothesis" ,python-hypothesis)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)))
+    (propagated-inputs
+     `(("python-trio" ,python-trio)))
+    (home-page "https://github.com/python-trio/pytest-trio")
+    (synopsis "Pytest plugin for trio")
+    (description
+     "This is a pytest plugin to help you test projects that use Trio, a
+friendly library for concurrency and async I/O in Python.")
+    ;; Either license applies.
+    (license (list license:expat license:asl2.0))))
+
 (define-public python-pytest-flake8
   (package
     (name "python-pytest-flake8")
-- 
2.20.1





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

* [bug#42741] [PATCH 1/4] gnu: Add python-outcome.
  2020-08-07 13:24 [bug#42741] [PATCH 1/4] gnu: Add python-outcome Vinicius Monego
                   ` (2 preceding siblings ...)
  2020-08-07 13:24 ` [bug#42744] [PATCH 4/4] gnu: Add python-pytest-trio Vinicius Monego
@ 2020-08-07 18:45 ` Brett Gilio
  2020-08-07 19:30   ` Vinicius Monego
  2020-08-09 11:55 ` bug#42741: " Efraim Flashner
  4 siblings, 1 reply; 11+ messages in thread
From: Brett Gilio @ 2020-08-07 18:45 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 42741

Hi Vinicius!

Thanks for your patch series. I just wanted to let you know that best
practice is to send patch series all to the same bug number instead of
opening a new bug number for each patch in the series. Thanks! :)




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

* [bug#42741] [PATCH 1/4] gnu: Add python-outcome.
  2020-08-07 18:45 ` [bug#42741] [PATCH 1/4] gnu: Add python-outcome Brett Gilio
@ 2020-08-07 19:30   ` Vinicius Monego
  2020-08-08 13:35     ` Vinicius Monego
  0 siblings, 1 reply; 11+ messages in thread
From: Vinicius Monego @ 2020-08-07 19:30 UTC (permalink / raw)
  To: Brett Gilio; +Cc: 42741


Brett Gilio writes:

> Hi Vinicius!
>
> Thanks for your patch series. I just wanted to let you know that best
> practice is to send patch series all to the same bug number instead of
> opening a new bug number for each patch in the series. Thanks! :)

Hello Brett.

Sure, but that's a problem I'm having with git. I use `git format-patch
[branch] -o folder/` and `git send-email --to="[this list]"
folder/`. Sometimes it sends to one number, sometimes it sends to
different numbers.

I sent two different series for python-h2 and python-sniffio two days
ago using the very same procedure for both. The latter was sent correctly while
the former was sent to different numbers.

Am I missing something?




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

* [bug#42741] [PATCH 1/4] gnu: Add python-outcome.
  2020-08-07 19:30   ` Vinicius Monego
@ 2020-08-08 13:35     ` Vinicius Monego
  0 siblings, 0 replies; 11+ messages in thread
From: Vinicius Monego @ 2020-08-08 13:35 UTC (permalink / raw)
  To: Brett Gilio; +Cc: 42741


Vinicius Monego writes:

> Am I missing something?

I double checked the documentation for submitting a patch series. I
thought that Git would have tools to automate this (I saw a --thread
flag in the git manpage, but it still didn't group the thread as
expected).

Anyways, I will follow the documentation more closely from now on. Apologies
for the inconvenience :-)




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

* bug#42741: [PATCH 1/4] gnu: Add python-outcome.
  2020-08-07 13:24 [bug#42741] [PATCH 1/4] gnu: Add python-outcome Vinicius Monego
                   ` (3 preceding siblings ...)
  2020-08-07 18:45 ` [bug#42741] [PATCH 1/4] gnu: Add python-outcome Brett Gilio
@ 2020-08-09 11:55 ` Efraim Flashner
  4 siblings, 0 replies; 11+ messages in thread
From: Efraim Flashner @ 2020-08-09 11:55 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 42741-done

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

Thanks! Pushed as 7d7ad3c946897014cc1ccb7094382b21a8f7b45c


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* bug#42742: [PATCH 2/4] gnu: Add python-trustme.
  2020-08-07 13:24 ` [bug#42742] [PATCH 2/4] gnu: Add python-trustme Vinicius Monego
@ 2020-08-09 11:55   ` Efraim Flashner
  0 siblings, 0 replies; 11+ messages in thread
From: Efraim Flashner @ 2020-08-09 11:55 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 42742-done

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

Thanks! Pushed as 960dafce5cede173b83a47d6b65233eb87230aaf


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* bug#42743: [PATCH 3/4] gnu: Add python-trio.
  2020-08-07 13:24 ` [bug#42743] [PATCH 3/4] gnu: Add python-trio Vinicius Monego
@ 2020-08-09 11:56   ` Efraim Flashner
  0 siblings, 0 replies; 11+ messages in thread
From: Efraim Flashner @ 2020-08-09 11:56 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 42743-done

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

Thanks! Pushed as deca924aa5dafc84a5da1693a0bf494bdbae44c7


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* bug#42744: [PATCH 4/4] gnu: Add python-pytest-trio.
  2020-08-07 13:24 ` [bug#42744] [PATCH 4/4] gnu: Add python-pytest-trio Vinicius Monego
@ 2020-08-09 11:56   ` Efraim Flashner
  0 siblings, 0 replies; 11+ messages in thread
From: Efraim Flashner @ 2020-08-09 11:56 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 42744-done

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

Thanks! Pushed as 51431f0b9fe7a2b2aba12287fc9ec9a31cc1a36f


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2020-08-09 11:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-07 13:24 [bug#42741] [PATCH 1/4] gnu: Add python-outcome Vinicius Monego
2020-08-07 13:24 ` [bug#42742] [PATCH 2/4] gnu: Add python-trustme Vinicius Monego
2020-08-09 11:55   ` bug#42742: " Efraim Flashner
2020-08-07 13:24 ` [bug#42743] [PATCH 3/4] gnu: Add python-trio Vinicius Monego
2020-08-09 11:56   ` bug#42743: " Efraim Flashner
2020-08-07 13:24 ` [bug#42744] [PATCH 4/4] gnu: Add python-pytest-trio Vinicius Monego
2020-08-09 11:56   ` bug#42744: " Efraim Flashner
2020-08-07 18:45 ` [bug#42741] [PATCH 1/4] gnu: Add python-outcome Brett Gilio
2020-08-07 19:30   ` Vinicius Monego
2020-08-08 13:35     ` Vinicius Monego
2020-08-09 11:55 ` bug#42741: " Efraim Flashner

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.