[Python-modules-commits] [twisted] 01/02: Update changelog for 17.1.0-1 release

Free Ekanayaka freee at moszumanska.debian.org
Tue May 16 08:22:41 UTC 2017


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

freee pushed a commit to tag debian/17.1.0-1
in repository twisted.

commit 49697b0f2471c40704b0a7dd9740cb6ca37d5582
Author: Free Ekanayaka <freee at debian.org>
Date:   Fri Feb 17 10:31:48 2017 +0000

    Update changelog for 17.1.0-1 release
---
 debian/changelog                                   |   6 +
 debian/control                                     |   2 +
 debian/patches/0002-combinedlog.patch              |   4 +-
 debian/patches/0003-sphinx-theme.patch             |   2 +-
 debian/patches/0004-localIntersphinx.patch         |   2 +-
 debian/patches/0006-fix-sphinx-import-path.patch   |   2 +-
 debian/patches/0007-openssl-1.1.0.patch            | 165 ++-------------------
 debian/patches/0008-sort-option-keys.patch         |   1 -
 .../patches/0009-no-stderr-in-test_ckeygen.patch   |   2 +-
 .../0010-handle-setlocale-test-failure.patch       |  27 ++++
 debian/patches/series                              |   3 +-
 debian/tests/unit-tests-2                          |   2 +-
 debian/tests/unit-tests-3                          |   2 +-
 13 files changed, 57 insertions(+), 163 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8a8c1f9..1ecb7ef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+twisted (17.1.0-1) experimental; urgency=medium
+
+  * New upstream version 17.1.0
+
+ -- Free Ekanayaka <freee at debian.org>  Fri, 17 Feb 2017 10:31:45 +0000
+
 twisted (16.6.0-2) unstable; urgency=medium
 
   * Make /usr/share/doc/python-twisted-runner-dbg a
diff --git a/debian/control b/debian/control
index ea9f152..9138bb9 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,7 @@ Build-Depends: debhelper (>=7.0.50~),
                python-setuptools,
                python-incremental,
                python-constantly,
+               python-automat,
                python-doc,
                python3-all-dev,
                python3-all-dbg,
@@ -20,6 +21,7 @@ Build-Depends: debhelper (>=7.0.50~),
                python3-setuptools,
                python3-incremental,
                python3-constantly,
+               python3-automat,
                python3-doc
 Build-Depends-Indep: python3-sphinx
 Standards-Version: 3.9.8
diff --git a/debian/patches/0002-combinedlog.patch b/debian/patches/0002-combinedlog.patch
index 9c43a08..fab6178 100644
--- a/debian/patches/0002-combinedlog.patch
+++ b/debian/patches/0002-combinedlog.patch
@@ -13,10 +13,10 @@ Bug-Debian https://bugs.debian.org/772629
  2 files changed, 9 insertions(+), 9 deletions(-)
 
 diff --git a/src/twisted/web/http.py b/src/twisted/web/http.py
-index 29370c1..24a31d8 100644
+index 2bb9756..75266ed 100644
 --- a/src/twisted/web/http.py
 +++ b/src/twisted/web/http.py
-@@ -2143,7 +2143,7 @@ def combinedLogFormatter(timestamp, request):
+@@ -2296,7 +2296,7 @@ def combinedLogFormatter(timestamp, request):
      referrer = _escape(request.getHeader(b"referer") or b"-")
      agent = _escape(request.getHeader(b"user-agent") or b"-")
      line = (
diff --git a/debian/patches/0003-sphinx-theme.patch b/debian/patches/0003-sphinx-theme.patch
index a676350..3950fef 100644
--- a/debian/patches/0003-sphinx-theme.patch
+++ b/debian/patches/0003-sphinx-theme.patch
@@ -8,7 +8,7 @@ Set the sphinx theme.
  1 file changed, 2 insertions(+)
 
 diff --git a/docs/conf.py b/docs/conf.py
-index 1679d0c..5f498b2 100644
+index 299b5b4..2d23d59 100644
 --- a/docs/conf.py
 +++ b/docs/conf.py
 @@ -120,6 +120,8 @@ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
diff --git a/debian/patches/0004-localIntersphinx.patch b/debian/patches/0004-localIntersphinx.patch
index f39d37a..ab68cc1 100644
--- a/debian/patches/0004-localIntersphinx.patch
+++ b/debian/patches/0004-localIntersphinx.patch
@@ -11,7 +11,7 @@ Bug-Debian: https://bugs.debian.org/836169
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/docs/conf.py b/docs/conf.py
-index 5f498b2..ab033a0 100644
+index 2d23d59..a806c64 100644
 --- a/docs/conf.py
 +++ b/docs/conf.py
 @@ -359,8 +359,8 @@ traclinks_base_url = 'https://twistedmatrix.com/trac'
diff --git a/debian/patches/0006-fix-sphinx-import-path.patch b/debian/patches/0006-fix-sphinx-import-path.patch
index 756d926..0270d80 100644
--- a/debian/patches/0006-fix-sphinx-import-path.patch
+++ b/debian/patches/0006-fix-sphinx-import-path.patch
@@ -9,7 +9,7 @@ match the new source files location (src/).
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/docs/conf.py b/docs/conf.py
-index ab033a0..4919d40 100644
+index a806c64..f7f8f93 100644
 --- a/docs/conf.py
 +++ b/docs/conf.py
 @@ -19,7 +19,7 @@ import os
diff --git a/debian/patches/0007-openssl-1.1.0.patch b/debian/patches/0007-openssl-1.1.0.patch
index c4206d2..82db886 100644
--- a/debian/patches/0007-openssl-1.1.0.patch
+++ b/debian/patches/0007-openssl-1.1.0.patch
@@ -4,39 +4,15 @@ Subject: openssl-1.1.0
 
 Fix tests breakages with OpenSSL 1.1.0
 ---
- src/twisted/mail/test/test_options.py  |  2 +-
- src/twisted/protocols/test/test_tls.py |  6 ++-
- src/twisted/test/server.pem            | 95 +++++++++++++++++-----------------
- src/twisted/test/test_ssl.py           | 10 ++--
- src/twisted/test/test_sslverify.py     |  5 +-
- 5 files changed, 59 insertions(+), 59 deletions(-)
+ src/twisted/protocols/test/test_tls.py |  4 ++++
+ src/twisted/test/test_ssl.py           | 10 +++-------
+ src/twisted/test/test_sslverify.py     |  2 +-
+ 3 files changed, 8 insertions(+), 8 deletions(-)
 
-diff --git a/src/twisted/mail/test/test_options.py b/src/twisted/mail/test/test_options.py
-index cc0430b..34a431a 100644
---- a/src/twisted/mail/test/test_options.py
-+++ b/src/twisted/mail/test/test_options.py
-@@ -145,7 +145,7 @@ class OptionsTests(TestCase):
-         The deprecated I{--pop3s} and I{--certificate} options set up a POP3 SSL
-         server.
-         """
--        cert = FilePath(__file__).sibling("server.pem")
-+        cert = FilePath(__file__).parent().parent().parent().child("test").child("server.pem")
-         options = Options()
-         options.parseOptions(['--pop3s', '8995',
-                               '--certificate', cert.path])
 diff --git a/src/twisted/protocols/test/test_tls.py b/src/twisted/protocols/test/test_tls.py
-index 054e57c..68a6619 100644
+index 8027a00..1f78085 100644
 --- a/src/twisted/protocols/test/test_tls.py
 +++ b/src/twisted/protocols/test/test_tls.py
-@@ -520,7 +520,7 @@ class TLSMemoryBIOTests(TestCase):
-             self.assertEqual(
-                 cert.digest('sha1'),
-                 # openssl x509 -noout -sha1 -fingerprint -in server.pem
--                b'45:DD:FD:E2:BD:BF:8B:D0:00:B7:D2:7A:BB:20:F5:34:05:4B:15:80')
-+                b'1A:C6:A7:22:D1:5F:4F:E4:AE:6C:CB:57:EA:1A:A9:B4:88:97:63:BF')
-         handshakeDeferred.addCallback(cbHandshook)
-         return handshakeDeferred
- 
 @@ -782,6 +782,7 @@ class TLSMemoryBIOTests(TestCase):
          clientConnectionLost.addCallback(cbDisconnected)
          return clientConnectionLost
@@ -61,119 +37,12 @@ index 054e57c..68a6619 100644
 +
  
  
- class NonStreamingProducer(object):
-diff --git a/src/twisted/test/server.pem b/src/twisted/test/server.pem
-index 56af8a3..ddaf6fb 100644
---- a/src/twisted/test/server.pem
-+++ b/src/twisted/test/server.pem
-@@ -40,55 +40,54 @@ with open(b"server.pem", "wb") as fObj:
-     fObj.write(b"'''\n")
- '''
- -----BEGIN PRIVATE KEY-----
--MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDGnXh/GMCLpNNI
--AIvfBWlPrRCLFWxd2ICLYSUq3/jwh31CppGKlfaSmUYnrMxnT4hg2f6gBqlmq1gK
--jQqDkqQQtHsSljRQF58NRFtz99w45jRmrGs+F5zoggJuyv7/lKXy/BXOc40NodIl
--qRuo/uhoPjeXaUNziwpRj4rByRdLwQ6MfRcfdZ0TpVJ4J7apJ66pZt85L63u8TZi
--AZdBgcowX6giola7kUUMG66bSi2X6sIFxdXHwzrWlFNnSbKqOqKlGrjmBHUYqRFr
--gLALKkaMpF30olH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4vSgkKKMeOsYJXj0MGs2AdmTYyajz3I0BnHRX5dnX2KQ249kNSECYNWO
-+PAIOkEb5ZA4KJNklspHD1rAYjEawelwda7y8Nu+1YXFjVIJXKvJ38ybvVWCbhKkw
-+pkWvAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAHSklDritJ/KW9h2bfpw1lJWrrVQ
-+RIqWJEfJc+R508RUlx+/T13oWGE1Qv8tiT5GKDtUNtzqFIWVLZle2uHo9fjhZZpb
-+WtAsOzU7R5D8WwLW0nyDL+B6LCnso35Cb2W/qIqWTgU4HXQZ7XI/IGOb9W96RCLt
-+BXjuPghp55HSJYmHMUDAS9kHjtYV2Ds/FIS1OtDSzckyyZ8v06ck6EONbVWAzBsI
-+8tvuNmXyY/3F6TudTNJ804ZmbSGz0ge2DsTU3zOX5kNE+7gdW/CrcwludLfU7Y5y
-+TnsFAOBcf67uw/gfIFv9BmOrmgd9Egvs0HV19w8uJzawqtv15m5W0J/5iIo=
- -----END CERTIFICATE-----
- '''
+ class NonStreamingProducerTests(TestCase):
 diff --git a/src/twisted/test/test_ssl.py b/src/twisted/test/test_ssl.py
-index 3959a84..c5a685c 100644
+index b329046..1d7144b 100644
 --- a/src/twisted/test/test_ssl.py
 +++ b/src/twisted/test/test_ssl.py
-@@ -182,7 +182,7 @@ def generateCertificateObjects(organization, organizationalUnit):
+@@ -184,7 +184,7 @@ def generateCertificateObjects(organization, organizationalUnit):
      @return: a tuple of (key, request, certificate) objects.
      """
      pkey = crypto.PKey()
@@ -182,7 +51,7 @@ index 3959a84..c5a685c 100644
      req = crypto.X509Req()
      subject = req.get_subject()
      subject.O = organization
-@@ -666,14 +666,11 @@ class DefaultOpenSSLContextFactoryTests(unittest.TestCase):
+@@ -662,14 +662,11 @@ class DefaultOpenSSLContextFactoryTests(unittest.TestCase):
      def test_method(self):
          """
          L{ssl.DefaultOpenSSLContextFactory.getContext} returns an SSL context
@@ -198,7 +67,7 @@ index 3959a84..c5a685c 100644
          # Make sure SSLv3 and TLSv1 aren't disabled though.
          self.assertFalse(self.context._options & SSL.OP_NO_SSLv3)
          self.assertFalse(self.context._options & SSL.OP_NO_TLSv1)
-@@ -715,10 +712,9 @@ class ClientContextFactoryTests(unittest.TestCase):
+@@ -711,10 +708,9 @@ class ClientContextFactoryTests(unittest.TestCase):
      def test_method(self):
          """
          L{ssl.ClientContextFactory.getContext} returns a context which can use
@@ -211,10 +80,10 @@ index 3959a84..c5a685c 100644
          self.assertFalse(self.context._options & SSL.OP_NO_TLSv1)
  
 diff --git a/src/twisted/test/test_sslverify.py b/src/twisted/test/test_sslverify.py
-index 479f31e..e6b1ab2 100644
+index acc05cd..26d6f55 100644
 --- a/src/twisted/test/test_sslverify.py
 +++ b/src/twisted/test/test_sslverify.py
-@@ -151,7 +151,7 @@ def counter(counter=itertools.count()):
+@@ -132,7 +132,7 @@ def counter(counter=itertools.count()):
  
  def makeCertificate(**kw):
      keypair = PKey()
@@ -223,13 +92,3 @@ index 479f31e..e6b1ab2 100644
  
      certificate = X509()
      certificate.gmtime_adj_notBefore(0)
-@@ -1312,7 +1312,8 @@ class ProtocolVersionTests(unittest.TestCase):
-         self.assertEqual(
-             set([ProtocolVersion.TLSv1_0,
-                  ProtocolVersion.TLSv1_1,
--                 ProtocolVersion.TLSv1_2]),
-+                 ProtocolVersion.TLSv1_2,
-+                 ProtocolVersion.SSLv2]),
-             self._protocols(sslverify.OpenSSLCertificateOptions()))
- 
- 
diff --git a/debian/patches/0008-sort-option-keys.patch b/debian/patches/0008-sort-option-keys.patch
index c448710..1a82e61 100644
--- a/debian/patches/0008-sort-option-keys.patch
+++ b/debian/patches/0008-sort-option-keys.patch
@@ -6,7 +6,6 @@ Fix flaky twisted.test.test_main.MainTests.test_twisted which fails
 if options are not in the same order.
 
 See https://twistedmatrix.com/trac/attachment/ticket/8923.
-
 ---
  src/twisted/python/usage.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/patches/0009-no-stderr-in-test_ckeygen.patch b/debian/patches/0009-no-stderr-in-test_ckeygen.patch
index 0b89dfa..88f48bb 100644
--- a/debian/patches/0009-no-stderr-in-test_ckeygen.patch
+++ b/debian/patches/0009-no-stderr-in-test_ckeygen.patch
@@ -10,7 +10,7 @@ https://twistedmatrix.com/trac/ticket/8924
  1 file changed, 5 insertions(+), 1 deletion(-)
 
 diff --git a/src/twisted/conch/test/test_ckeygen.py b/src/twisted/conch/test/test_ckeygen.py
-index 49c1eca..a5727bd 100644
+index 57123d4..61c9dfb 100644
 --- a/src/twisted/conch/test/test_ckeygen.py
 +++ b/src/twisted/conch/test/test_ckeygen.py
 @@ -7,6 +7,7 @@ Tests for L{twisted.conch.scripts.ckeygen}.
diff --git a/debian/patches/0010-handle-setlocale-test-failure.patch b/debian/patches/0010-handle-setlocale-test-failure.patch
new file mode 100644
index 0000000..5b501bd
--- /dev/null
+++ b/debian/patches/0010-handle-setlocale-test-failure.patch
@@ -0,0 +1,27 @@
+From: Free Ekanayaka <freee at debian.org>
+Date: Sat, 18 Feb 2017 13:50:23 +0000
+Subject: handle-setlocale-test-failure
+
+Gracefully handle setlocale failures during the test suite (e.g
+when running in a container).
+---
+ src/twisted/conch/test/test_cftp.py | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/src/twisted/conch/test/test_cftp.py b/src/twisted/conch/test/test_cftp.py
+index d24714e..01c7630 100644
+--- a/src/twisted/conch/test/test_cftp.py
++++ b/src/twisted/conch/test/test_cftp.py
+@@ -200,8 +200,10 @@ class ListingTests(TestCase):
+             locale.setlocale(locale.LC_ALL, "es_AR.UTF8")
+         except locale.Error:
+             test_localeIndependent.skip = "The es_AR.UTF8 locale is not installed."
+-    finally:
+-        locale.setlocale(locale.LC_ALL, currentLocale)
++        else:
++            locale.setlocale(locale.LC_ALL, currentLocale)
++    except:
++        pass
+ 
+ 
+     def test_newSingleDigitDayOfMonth(self):
diff --git a/debian/patches/series b/debian/patches/series
index 3b10682..e4b4f58 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,6 +4,7 @@
 0004-localIntersphinx.patch
 0005-insecure-pythonpath.patch
 0006-fix-sphinx-import-path.patch
-0007-openssl-1.1.0.patch
 0008-sort-option-keys.patch
 0009-no-stderr-in-test_ckeygen.patch
+0007-openssl-1.1.0.patch
+0010-handle-setlocale-test-failure.patch
diff --git a/debian/tests/unit-tests-2 b/debian/tests/unit-tests-2
index ccfe7e9..cac2311 100644
--- a/debian/tests/unit-tests-2
+++ b/debian/tests/unit-tests-2
@@ -2,4 +2,4 @@
 
 chown nobody $AUTOPKGTEST_TMP
 cd $AUTOPKGTEST_TMP
-echo python -m twisted.trial twisted | su -s /bin/sh nobody
+echo python -m twisted.trial --reporter=summary -e twisted | su -s /bin/sh nobody
diff --git a/debian/tests/unit-tests-3 b/debian/tests/unit-tests-3
index cfa0d1f..e829524 100644
--- a/debian/tests/unit-tests-3
+++ b/debian/tests/unit-tests-3
@@ -2,4 +2,4 @@
 
 chown nobody $AUTOPKGTEST_TMP
 cd $AUTOPKGTEST_TMP
-echo python3 -m twisted.trial twisted | su -s /bin/sh nobody
+echo python3 -m twisted.trial --reporter=summary -e twisted | su -s /bin/sh nobody

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



More information about the Python-modules-commits mailing list