[Python-modules-commits] [pyopenssl] 05/07: merge patched into master

Sandro Tosi morph at moszumanska.debian.org
Wed Nov 9 19:24:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository pyopenssl.

commit a1690115ff9485c35f7df3f30ae8a01516804721
Merge: 1ccf409 c88b82c
Author: Sandro Tosi <morph at debian.org>
Date:   Wed Nov 9 14:13:03 2016 -0500

    merge patched into master

 CHANGELOG.rst                                      |  31 +-
 CONTRIBUTING.rst                                   |   4 +-
 PKG-INFO                                           |  14 +-
 debian/.git-dpm                                    |   6 +-
 ...t_set_default_verify_paths-since-it-tries.patch |   8 +-
 ...02-pass-PYTHONPATH-when-building-HTML-doc.patch |   2 +-
 doc/api/crypto.rst                                 |   6 +-
 doc/api/rand.rst                                   |   2 +-
 doc/api/ssl.rst                                    |   2 +-
 src/OpenSSL/SSL.py                                 |  22 +-
 src/OpenSSL/crypto.py                              |  24 +-
 src/OpenSSL/rand.py                                |   2 +-
 src/OpenSSL/version.py                             |   2 +-
 src/pyOpenSSL.egg-info/PKG-INFO                    |  14 +-
 tests/test_crypto.py                               | 360 +++++++++++----------
 tests/test_rand.py                                 |  12 +-
 tests/test_ssl.py                                  | 182 ++++++-----
 tests/util.py                                      |   4 +-
 18 files changed, 381 insertions(+), 316 deletions(-)

diff --cc debian/.git-dpm
index 887be31,0000000..e6fab9e
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,11 -1,0 +1,11 @@@
 +# see git-dpm(1) from git-dpm package
- 70b30a3cb248b4435553ff3be547c2ca7a92d707
- 70b30a3cb248b4435553ff3be547c2ca7a92d707
- dbefbd4ee7b71855ac350dcdb98bd582f0c6529a
++c88b82c90e031c8c94633b30864c46f65bf7fc82
++c88b82c90e031c8c94633b30864c46f65bf7fc82
++d4eb534a46ebf3546919bfd415a97288e71ab4a1
 +d4eb534a46ebf3546919bfd415a97288e71ab4a1
 +pyopenssl_16.2.0.orig.tar.gz
 +ee0beabb001369d5fbb91ef71276cad73b3df21d
 +167305
 +debianTag="debian/%e%v"
 +patchedTag="patched/%e%v"
 +upstreamTag="upstream/%e%u"
diff --cc debian/patches/0001-disable-test_set_default_verify_paths-since-it-tries.patch
index 82e6c48,0000000..a6c0dd2
mode 100644,000000..100644
--- a/debian/patches/0001-disable-test_set_default_verify_paths-since-it-tries.patch
+++ b/debian/patches/0001-disable-test_set_default_verify_paths-since-it-tries.patch
@@@ -1,58 -1,0 +1,58 @@@
- From 2fdf36ad41dc89a7edf95f21413bd3d7a19635c7 Mon Sep 17 00:00:00 2001
++From b9227a312f9d70853fa42af49d920a9099df68aa Mon Sep 17 00:00:00 2001
 +From: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
 +Date: Thu, 8 Oct 2015 10:47:52 -0700
 +Subject: disable test_set_default_verify_paths since it tries to access the
 + web
 +
 +---
 + tests/test_ssl.py | 28 +++++++++++++++-------------
 + 1 file changed, 15 insertions(+), 13 deletions(-)
 +
 +diff --git a/tests/test_ssl.py b/tests/test_ssl.py
- index eb000aa..b8a499d 100644
++index 2b7e276..31738d9 100644
 +--- a/tests/test_ssl.py
 ++++ b/tests/test_ssl.py
- @@ -1175,6 +1175,7 @@ class ContextTests(TestCase, _LoopbackMixin):
++@@ -1182,6 +1182,7 @@ class ContextTests(TestCase, _LoopbackMixin):
 +         platform == "win32",
 +         reason="set_default_verify_paths appears not to work on Windows.  "
 +         "See LP#404343 and LP#404344."
 ++
 +     )
 +     def test_set_default_verify_paths(self):
 +         """
- @@ -1189,21 +1190,22 @@ class ContextTests(TestCase, _LoopbackMixin):
++@@ -1196,21 +1197,22 @@ class ContextTests(TestCase, _LoopbackMixin):
 +         # internet which has such a certificate.  Connecting to the network
 +         # in a unit test is bad, but it's the only way I can think of to
 +         # really test this. -exarkun
 ++        pass
 + 
 +         # Arg, verisign.com doesn't speak anything newer than TLS 1.0
 +-        context = Context(SSLv23_METHOD)
 +-        context.set_default_verify_paths()
 +-        context.set_verify(
 +-            VERIFY_PEER,
 +-            lambda conn, cert, errno, depth, preverify_ok: preverify_ok)
 +-
 +-        client = socket()
 +-        client.connect(("encrypted.google.com", 443))
 +-        clientSSL = Connection(context, client)
 +-        clientSSL.set_connect_state()
 +-        clientSSL.do_handshake()
 +-        clientSSL.send(b"GET / HTTP/1.0\r\n\r\n")
 +-        self.assertTrue(clientSSL.recv(1024))
 ++        #context = Context(SSLv23_METHOD)
 ++        #context.set_default_verify_paths()
 ++        #context.set_verify(
 ++        #    VERIFY_PEER,
 ++        #    lambda conn, cert, errno, depth, preverify_ok: preverify_ok)
 ++
 ++        #client = socket()
 ++        #client.connect(("encrypted.google.com", 443))
 ++        #clientSSL = Connection(context, client)
 ++        #clientSSL.set_connect_state()
 ++        #clientSSL.do_handshake()
 ++        #clientSSL.send(b"GET / HTTP/1.0\r\n\r\n")
 ++        #self.assertTrue(clientSSL.recv(1024))
 + 
 +     def test_set_default_verify_paths_signature(self):
 +         """
diff --cc debian/patches/0002-pass-PYTHONPATH-when-building-HTML-doc.patch
index 218e492,0000000..771f596
mode 100644,000000..100644
--- a/debian/patches/0002-pass-PYTHONPATH-when-building-HTML-doc.patch
+++ b/debian/patches/0002-pass-PYTHONPATH-when-building-HTML-doc.patch
@@@ -1,30 -1,0 +1,30 @@@
- From 70b30a3cb248b4435553ff3be547c2ca7a92d707 Mon Sep 17 00:00:00 2001
++From c88b82c90e031c8c94633b30864c46f65bf7fc82 Mon Sep 17 00:00:00 2001
 +From: Sandro Tosi <morph at debian.org>
 +Date: Wed, 13 Apr 2016 21:03:53 +0100
 +Subject: pass PYTHONPATH when building HTML doc
 +
 +---
 + doc/Makefile | 3 ++-
 + 1 file changed, 2 insertions(+), 1 deletion(-)
 +
 +diff --git a/doc/Makefile b/doc/Makefile
 +index 4202bee..5fec498 100644
 +--- a/doc/Makefile
 ++++ b/doc/Makefile
 +@@ -6,6 +6,7 @@ SPHINXOPTS    =
 + SPHINXBUILD   = sphinx-build
 + PAPER         =
 + BUILDDIR      = _build
 ++PYTHONPATH    = .
 + 
 + # Internal variables.
 + PAPEROPT_a4     = -D latex_paper_size=a4
 +@@ -37,7 +38,7 @@ clean:
 + 	-rm -rf $(BUILDDIR)/*
 + 
 + html:
 +-	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
 ++	PYTHONPATH=$(PYTHONPATH) $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
 + 	@echo
 + 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 + 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyopenssl.git



More information about the Python-modules-commits mailing list