Hello community,

here is the log from the commit of package python-Twisted for openSUSE:Factory 
checked in at 2020-06-05 19:59:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Twisted (Old)
 and      /work/SRC/openSUSE:Factory/.python-Twisted.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Twisted"

Fri Jun  5 19:59:24 2020 rev:40 rq:810158 version:20.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Twisted/python-Twisted.changes    
2020-05-28 09:07:36.123749891 +0200
+++ /work/SRC/openSUSE:Factory/.python-Twisted.new.3606/python-Twisted.changes  
2020-06-05 19:59:26.943779883 +0200
@@ -1,0 +2,14 @@
+Thu May 28 12:43:51 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Update to 20.3.0
+  * drop Python 2
+  * twisted.news is deprecated.
+  * twisted.conch.ssh now supports the curve25519-sha256 key exchange 
+    algorithm (requires OpenSSL >= 1.1.0).
+  * many bugfixes and other miscelaneous fixes
+- Fixed update-alternatives mechanism
+- Added true-binary.patch
+- Dropped python-38-xml-namespace.patch
+- Reapplied python-38-hmac-digestmod.patch
+
+-------------------------------------------------------------------

Old:
----
  Twisted-19.10.0.tar.bz2
  python-38-xml-namespace.patch

New:
----
  Twisted-20.3.0.tar.bz2
  true-binary.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Twisted.spec ++++++
--- /var/tmp/diff_new_pack.ISAT59/_old  2020-06-05 19:59:27.811782886 +0200
+++ /var/tmp/diff_new_pack.ISAT59/_new  2020-06-05 19:59:27.815782900 +0200
@@ -17,10 +17,10 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define oldpython python
 %define modname Twisted
+%define skip_python2 1
 Name:           python-Twisted
-Version:        19.10.0
+Version:        20.3.0
 Release:        0
 Summary:        An asynchronous networking framework written in Python
 License:        MIT
@@ -30,20 +30,20 @@
 Patch1:         skip_MultiCast.patch
 Patch2:         no-pygtkcompat.patch
 Patch3:         test-mktime-invalid-tm_isdst.patch
-Patch4:         python-38-xml-namespace.patch
 Patch5:         python-38-hmac-digestmod.patch
 Patch6:         python-38-no-cgi-parseqs.patch
+Patch7:         true-binary.patch
 BuildRequires:  %{python_module Automat >= 0.3.0}
 BuildRequires:  %{python_module PyHamcrest >= 1.9.0}
 BuildRequires:  %{python_module appdirs >= 1.4.0}
-BuildRequires:  %{python_module attrs >= 17.4.0}
+BuildRequires:  %{python_module attrs >= 19.2.0}
 BuildRequires:  %{python_module bcrypt >= 3.0.0}
 BuildRequires:  %{python_module constantly >= 15.1}
-BuildRequires:  %{python_module cryptography >= 2.5}
+BuildRequires:  %{python_module cryptography >= 2.6}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module h2 >= 3.0}
 BuildRequires:  %{python_module hyperlink >= 17.1.1}
-BuildRequires:  %{python_module idna >= 0.6}
+BuildRequires:  %{python_module idna >= 2.4}
 BuildRequires:  %{python_module incremental >= 16.10.1}
 BuildRequires:  %{python_module pyOpenSSL >= 16.0.0}
 BuildRequires:  %{python_module pyasn1}
@@ -60,13 +60,13 @@
 Requires:       python-Automat >= 0.3.0
 Requires:       python-PyHamcrest >= 1.9.0
 Requires:       python-appdirs >= 1.4.0
-Requires:       python-attrs >= 17.4.0
+Requires:       python-attrs >= 19.2.0
 Requires:       python-bcrypt >= 3.0.0
 Requires:       python-constantly >= 15.1
-Requires:       python-cryptography >= 2.5
+Requires:       python-cryptography >= 2.6
 Requires:       python-h2 >= 3.0
 Requires:       python-hyperlink >= 17.1.1
-Requires:       python-idna >= 0.6
+Requires:       python-idna >= 2.4
 Requires:       python-incremental >= 16.10.1
 Requires:       python-pyOpenSSL >= 16.0.0
 Requires:       python-pyasn1
@@ -75,30 +75,6 @@
 Requires:       python-zope.interface >= 4.4.2
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
-%ifpython2
-Provides:       %{oldpython}-twisted = %{version}
-Obsoletes:      %{oldpython}-twisted < %{version}
-Provides:       %{oldpython}-twisted-core = %{version}
-Obsoletes:      %{oldpython}-twisted-core < %{version}
-Provides:       %{oldpython}-twisted-conch = %{version}
-Obsoletes:      %{oldpython}-twisted-conch < %{version}
-Provides:       %{oldpython}-twisted-lore = %{version}
-Obsoletes:      %{oldpython}-twisted-lore < %{version}
-Provides:       %{oldpython}-twisted-mail = %{version}
-Obsoletes:      %{oldpython}-twisted-mail < %{version}
-Provides:       %{oldpython}-twisted-names = %{version}
-Obsoletes:      %{oldpython}-twisted-names < %{version}
-Provides:       %{oldpython}-twisted-news = %{version}
-Obsoletes:      %{oldpython}-twisted-news < %{version}
-Provides:       %{oldpython}-twisted-runner = %{version}
-Obsoletes:      %{oldpython}-twisted-runner < %{version}
-Provides:       %{oldpython}-twisted-web = %{version}
-Obsoletes:      %{oldpython}-twisted-web < %{version}
-Provides:       %{oldpython}-twisted-words = %{version}
-Obsoletes:      %{oldpython}-twisted-words < %{version}
-Provides:       %{oldpython}-twisted-xish = %{version}
-Obsoletes:      %{oldpython}-twisted-xish < %{version}
-%endif
 %python_subpackages
 
 %description
@@ -133,21 +109,15 @@
 
 # Prepare for update-alternatives usage
 for p in twistd cftp ckeygen conch pyhtmlizer tkconch trial ; do
-    %python_clone %{buildroot}%{_bindir}/$p
-    %python_clone %{buildroot}%{_mandir}/man1/$p.1
+    %python_clone -a %{buildroot}%{_bindir}/$p
+    %python_clone -a %{buildroot}%{_mandir}/man1/$p.1
 done
 
-# update alternatives for parts supported only in python2
-%ifpython2
-%python_clone %{buildroot}%{_bindir}/mailmail
-%python_clone %{buildroot}%{_mandir}/man1/mailmail.1
-%endif
-%if ! 0%{?have_python2} || 0%{?skip_python2}
+# mailmail is useful only on Python 2
 rm %{buildroot}%{_bindir}/mailmail %{buildroot}%{_mandir}/man1/mailmail.1
-%endif
 
 # no manpage for twist yet:
-%python_clone %{buildroot}%{_bindir}/twist
+%python_clone -a %{buildroot}%{_bindir}/twist
 
 %check
 export LANG=en_US.UTF-8
@@ -181,14 +151,10 @@
 %files %{python_files}
 %license LICENSE
 %doc NEWS.rst README.rst
-%{_bindir}/*-%{python_bin_suffix}
-%{_mandir}/man1/*-%{python_bin_suffix}.1%{?ext_man}
 %python_alternative %{_bindir}/twistd
 %python_alternative %{_bindir}/cftp
 %python_alternative %{_bindir}/ckeygen
 %python_alternative %{_bindir}/conch
-# Supported only in python2
-%python2_only %{_bindir}/mailmail
 %python_alternative %{_bindir}/pyhtmlizer
 %python_alternative %{_bindir}/tkconch
 %python_alternative %{_bindir}/trial
@@ -197,7 +163,6 @@
 %python_alternative %{_mandir}/man1/cftp.1%{?ext_man}
 %python_alternative %{_mandir}/man1/ckeygen.1%{?ext_man}
 %python_alternative %{_mandir}/man1/conch.1%{?ext_man}
-%python2_only %{_mandir}/man1/mailmail.1%{?ext_man}
 %python_alternative %{_mandir}/man1/pyhtmlizer.1%{?ext_man}
 %python_alternative %{_mandir}/man1/tkconch.1%{?ext_man}
 %python_alternative %{_mandir}/man1/trial.1%{?ext_man}

++++++ Twisted-19.10.0.tar.bz2 -> Twisted-20.3.0.tar.bz2 ++++++
++++ 5368 lines of diff (skipped)

++++++ python-38-hmac-digestmod.patch ++++++
--- /var/tmp/diff_new_pack.ISAT59/_old  2020-06-05 19:59:29.799789762 +0200
+++ /var/tmp/diff_new_pack.ISAT59/_new  2020-06-05 19:59:29.803789776 +0200
@@ -52,28 +52,6 @@
          self.assertTrue(c.checkPassword(b'supersecret'))
          self.assertEqual(c.username, b"squirrel")
  
-Index: Twisted-19.10.0/src/twisted/mail/_cred.py
-===================================================================
---- Twisted-19.10.0.orig/src/twisted/mail/_cred.py
-+++ Twisted-19.10.0/src/twisted/mail/_cred.py
-@@ -7,6 +7,7 @@ Credential managers for L{twisted.mail}.
- 
- from __future__ import absolute_import, division
- 
-+from hashlib import md5
- import hmac
- 
- from zope.interface import implementer
-@@ -28,7 +29,8 @@ class CramMD5ClientAuthenticator:
- 
- 
-     def challengeResponse(self, secret, chal):
--        response = hmac.HMAC(secret, chal).hexdigest().encode('ascii')
-+        response = hmac.HMAC(
-+            secret, chal, digestmod=md5).hexdigest().encode('ascii')
-         return self.user + b' ' + response
- 
- 
 Index: Twisted-19.10.0/src/twisted/mail/test/test_pop3.py
 ===================================================================
 --- Twisted-19.10.0.orig/src/twisted/mail/test/test_pop3.py

++++++ true-binary.patch ++++++
Index: Twisted-20.3.0/src/twisted/conch/test/test_ckeygen.py
===================================================================
--- Twisted-20.3.0.orig/src/twisted/conch/test/test_ckeygen.py
+++ Twisted-20.3.0/src/twisted/conch/test/test_ckeygen.py
@@ -66,7 +66,7 @@ class KeyGenTests(TestCase):
 
     def _testrun(self, keyType, keySize=None, privateKeySubtype=None):
         filename = self.mktemp()
-        args = ['ckeygen', '-t', keyType, '-f', filename, '--no-passphrase']
+        args = ['ckeygen-' + sys.version[:3], '-t', keyType, '-f', filename, 
'--no-passphrase']
         if keySize is not None:
             args.extend(['-b', keySize])
         if privateKeySubtype is not None:
@@ -100,7 +100,7 @@ class KeyGenTests(TestCase):
     def test_runBadKeytype(self):
         filename = self.mktemp()
         with self.assertRaises(subprocess.CalledProcessError):
-            subprocess.check_call(['ckeygen', '-t', 'foo', '-f', filename])
+            subprocess.check_call(['ckeygen-' + sys.version[:3], '-t', 'foo', 
'-f', filename])
 
 
 

Reply via email to