* bug#26818: Certbot with Python 3
@ 2017-05-07 18:46 Leo Famulari
2017-05-08 8:05 ` Marius Bakke
2017-06-18 11:10 ` [bug#26818] " Ricardo Wurmus
0 siblings, 2 replies; 5+ messages in thread
From: Leo Famulari @ 2017-05-07 18:46 UTC (permalink / raw)
To: 26818
[-- Attachment #1.1: Type: text/plain, Size: 349 bytes --]
The latest release of Certbot and the acme library can use Python 3 [0].
These patches create a new python-mock@2 variable, and then upgrade
certbot and python-acme to use Python 3 by default. I did some light
testing by renewing some certificates.
[0]
https://github.com/certbot/certbot/pull/4568/commits/48b47274e7e6b11b7748b72a8e87add3f218e8b7
[-- Attachment #1.2: 0001-gnu-Add-python-mock-2.patch --]
[-- Type: text/plain, Size: 1435 bytes --]
From 89835ec0ed5d9e1b89e70ab73af4bc27be8daf94 Mon Sep 17 00:00:00 2001
From: Leo Famulari <leo@famulari.name>
Date: Sun, 7 May 2017 14:31:44 -0400
Subject: [PATCH 1/2] gnu: Add python-mock-2.
* gnu/packages/python.scm (python-mock-2): New variable.
---
gnu/packages/python.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4c7aee20c..3f2a5b842 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -920,6 +920,24 @@ have been used.")
(define-public python2-mock
(package-with-python2 python-mock))
+;;; Some packages (notably, certbot and python-acme) rely on this newer version
+;;; of python-mock. However, a large number of packages fail to build with
+;;; mock@2, so we add a new variable for now. Also, there may be a dependency
+;;; cycle between mock and six, so we avoid creating python2-mock@2 for now.
+(define-public python-mock-2
+ (package
+ (inherit python-mock)
+ (version "2.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "mock" version))
+ (sha256
+ (base32
+ "1flbpksir5sqrvq2z0dp8sl4bzbadg21sj4d42w3klpdfvgvcn5i"))))
+ (propagated-inputs
+ `(("python-pbr" ,python-pbr-minimal)
+ ,@(package-propagated-inputs python-mock)))))
(define-public python-setuptools
(package
--
2.12.2
[-- Attachment #1.3: 0002-gnu-certbot-Build-with-Python-3.patch --]
[-- Type: text/plain, Size: 4271 bytes --]
From 8eb108f21146ec9c02c5e276d8b7ad6a990c8cd1 Mon Sep 17 00:00:00 2001
From: Leo Famulari <leo@famulari.name>
Date: Sat, 6 May 2017 15:58:16 -0400
Subject: [PATCH 2/2] gnu: certbot: Build with Python 3.
* gnu/packages/tls.scm (certbot): Use python-3 to build.
[native-inputs, propagated-inputs]: Use Python 3 variants of dependencies. Use
python-mock-2.
---
gnu/packages/tls.scm | 42 ++++++++++++++++++++----------------------
1 file changed, 20 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 1516fb852..6790e1797 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -482,7 +482,6 @@ security, and applying best practice development processes.")
(base32
"0hrmh28rrc0fsiw6nqfwbkwb1s4nkl54x50c0g0xlnp86752nzff"))))
(build-system python-build-system)
-
(arguments
`(#:phases
(modify-phases %standard-phases
@@ -507,7 +506,7 @@ security, and applying best practice development processes.")
#t))))))
;; TODO: Add optional inputs for testing.
(native-inputs
- `(("python-mock" ,python-mock)
+ `(("python-mock" ,python-mock-2)
;; For documentation
("python-sphinx" ,python-sphinx)
("python-sphinxcontrib-programoutput" ,python-sphinxcontrib-programoutput)
@@ -543,8 +542,7 @@ security, and applying best practice development processes.")
"0hbp3njss01a0d3brvcfzja0w0j9plwrv6l70jsfvnhy3rrd7bcq"))))
(build-system python-build-system)
(arguments
- `(#:python ,python-2
- ,@(substitute-keyword-arguments (package-arguments python-acme)
+ `(,@(substitute-keyword-arguments (package-arguments python-acme)
((#:phases phases)
`(modify-phases ,phases
(replace 'install-documentation
@@ -559,27 +557,27 @@ security, and applying best practice development processes.")
#t))))))))
;; TODO: Add optional inputs for testing.
(native-inputs
- `(("python2-nose" ,python2-nose)
- ("python2-mock" ,python2-mock)
+ `(("python-nose" ,python-nose)
+ ("python-mock" ,python-mock-2)
;; For documentation
- ("python2-sphinx" ,python2-sphinx)
- ("python2-sphinx-rtd-theme" ,python2-sphinx-rtd-theme)
- ("python2-sphinx-repoze-autointerface" ,python2-sphinx-repoze-autointerface)
- ("python2-sphinxcontrib-programoutput" ,python2-sphinxcontrib-programoutput)
+ ("python-sphinx" ,python-sphinx)
+ ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
+ ("python-sphinx-repoze-autointerface" ,python-sphinx-repoze-autointerface)
+ ("python-sphinxcontrib-programoutput" ,python-sphinxcontrib-programoutput)
("texinfo" ,texinfo)))
(propagated-inputs
- `(("python2-acme" ,python2-acme)
- ("python2-zope-interface" ,python2-zope-interface)
- ("python2-pyrfc3339" ,python2-pyrfc3339)
- ("python2-pyopenssl" ,python2-pyopenssl)
- ("python2-configobj" ,python2-configobj)
- ("python2-configargparse" ,python2-configargparse)
- ("python2-zope-component" ,python2-zope-component)
- ("python2-parsedatetime" ,python2-parsedatetime)
- ("python2-six" ,python2-six)
- ("python2-psutil" ,python2-psutil)
- ("python2-requests" ,python2-requests)
- ("python2-pytz" ,python2-pytz)))
+ `(("python-acme" ,python-acme)
+ ("python-zope-interface" ,python-zope-interface)
+ ("python-pyrfc3339" ,python-pyrfc3339)
+ ("python-pyopenssl" ,python-pyopenssl)
+ ("python-configobj" ,python-configobj)
+ ("python-configargparse" ,python-configargparse)
+ ("python-zope-component" ,python-zope-component)
+ ("python-parsedatetime" ,python-parsedatetime)
+ ("python-six" ,python-six)
+ ("python-psutil" ,python-psutil)
+ ("python-requests" ,python-requests)
+ ("python-pytz" ,python-pytz)))
(synopsis "Let's Encrypt client by the Electronic Frontier Foundation")
(description "Certbot automatically receives and installs X.509 certificates
to enable Transport Layer Security (TLS) on servers. It interoperates with the
--
2.12.2
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#26818: Certbot with Python 3
2017-05-07 18:46 bug#26818: Certbot with Python 3 Leo Famulari
@ 2017-05-08 8:05 ` Marius Bakke
2017-05-08 18:00 ` Leo Famulari
2017-06-18 11:10 ` [bug#26818] " Ricardo Wurmus
1 sibling, 1 reply; 5+ messages in thread
From: Marius Bakke @ 2017-05-08 8:05 UTC (permalink / raw)
To: Leo Famulari, 26818
[-- Attachment #1: Type: text/plain, Size: 487 bytes --]
Leo Famulari <leo@famulari.name> writes:
> * gnu/packages/python.scm (python-mock-2): New variable.
[...]
> +;;; Some packages (notably, certbot and python-acme) rely on this newer version
> +;;; of python-mock. However, a large number of packages fail to build with
> +;;; mock@2, so we add a new variable for now. Also, there may be a dependency
> +;;; cycle between mock and six, so we avoid creating python2-mock@2 for now.
^^^^
Only two semicolons. The patches LGTM otherwise.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#26818: Certbot with Python 3
2017-05-08 8:05 ` Marius Bakke
@ 2017-05-08 18:00 ` Leo Famulari
0 siblings, 0 replies; 5+ messages in thread
From: Leo Famulari @ 2017-05-08 18:00 UTC (permalink / raw)
To: Marius Bakke; +Cc: 26818
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
On Mon, May 08, 2017 at 10:05:29AM +0200, Marius Bakke wrote:
> Leo Famulari <leo@famulari.name> writes:
>
> > * gnu/packages/python.scm (python-mock-2): New variable.
>
> [...]
>
> > +;;; Some packages (notably, certbot and python-acme) rely on this newer version
> > +;;; of python-mock. However, a large number of packages fail to build with
> > +;;; mock@2, so we add a new variable for now. Also, there may be a dependency
> > +;;; cycle between mock and six, so we avoid creating python2-mock@2 for now.
> ^^^^
> Only two semicolons. The patches LGTM otherwise.
The convention is to use 3 when the comment starts at the beginning of
the line:
https://www.gnu.org/software/guile/manual/html_node/Comments.html
Thank you for reviewing my patches!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#26818] Certbot with Python 3
2017-05-07 18:46 bug#26818: Certbot with Python 3 Leo Famulari
2017-05-08 8:05 ` Marius Bakke
@ 2017-06-18 11:10 ` Ricardo Wurmus
2017-06-19 17:08 ` bug#26818: " Leo Famulari
1 sibling, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2017-06-18 11:10 UTC (permalink / raw)
To: Leo Famulari; +Cc: 26818
Hi Leo,
> The latest release of Certbot and the acme library can use Python 3 [0].
>
> These patches create a new python-mock@2 variable, and then upgrade
> certbot and python-acme to use Python 3 by default. I did some light
> testing by renewing some certificates.
>
[…]
> Subject: [PATCH 1/2] gnu: Add python-mock-2.
> Subject: [PATCH 2/2] gnu: certbot: Build with Python 3.
[…]
Is there something holding up merging these patches? I haven’t seen
them in master nor in core-updates.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#26818: Certbot with Python 3
2017-06-18 11:10 ` [bug#26818] " Ricardo Wurmus
@ 2017-06-19 17:08 ` Leo Famulari
0 siblings, 0 replies; 5+ messages in thread
From: Leo Famulari @ 2017-06-19 17:08 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 26818-done
[-- Attachment #1: Type: text/plain, Size: 800 bytes --]
On Sun, Jun 18, 2017 at 01:10:38PM +0200, Ricardo Wurmus wrote:
>
> Hi Leo,
>
> > The latest release of Certbot and the acme library can use Python 3 [0].
> >
> > These patches create a new python-mock@2 variable, and then upgrade
> > certbot and python-acme to use Python 3 by default. I did some light
> > testing by renewing some certificates.
> >
> […]
> > Subject: [PATCH 1/2] gnu: Add python-mock-2.
> > Subject: [PATCH 2/2] gnu: certbot: Build with Python 3.
> […]
>
> Is there something holding up merging these patches? I haven’t seen
> them in master nor in core-updates.
I'd hoped to hear about some other people testing this Python-3 certbot,
but since it's working for me, I pushed as
fed1898d4e7855de03a276eb4d370ca1d32a789e.
Thanks for the reminder!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-19 17:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-07 18:46 bug#26818: Certbot with Python 3 Leo Famulari
2017-05-08 8:05 ` Marius Bakke
2017-05-08 18:00 ` Leo Famulari
2017-06-18 11:10 ` [bug#26818] " Ricardo Wurmus
2017-06-19 17:08 ` bug#26818: " Leo Famulari
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.