From 901dadd8c2c8dcbca6686874eeacf5b1276a13166521113545be415195b89558 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 13 Jul 2020 21:14:29 +0000 Subject: [PATCH] =?UTF-8?q?Update=20to=200.36.0:=20=20=20=20=20-=20wrap=20?= =?UTF-8?q?SocketIO=20in=20io.Buffered*=20for=20makefile=20=20?= =?UTF-8?q?=20=20=20=20-=20SSL.Connection.close=20accepts=20an=20argument?= =?UTF-8?q?=20to=20force=20the=20socket=20closing=20=20=20=20=20=20=20=20=20=20=20=20-=20SSL.Connection:=20make=20the?= =?UTF-8?q?=20clientPostConnectionCheck=20an=20instance=20=20=20=20=20=20?= =?UTF-8?q?=20attribute=20=20=20=20=20=20-=20Fixed=20bu?= =?UTF-8?q?g=20with=20usage=20of=20unexisting=20method=20getreply=20at=20S?= =?UTF-8?q?SL=5FTransport=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20-=20Add=20appveyor=20builds=20for=20python=203.7=20and=203.8?= =?UTF-8?q?=20=20=20=20=20=20-=20Fixed=20syntax=20w?= =?UTF-8?q?arning=20on=20line=2044.=20=20=20=20=20=20-=20Update?= =?UTF-8?q?=20M2Crypto.six=20to=201.13.0=20=20=20=20=20?= =?UTF-8?q?=20-=20base64.decodestring()=20was=20finally=20removed=20in=20P?= =?UTF-8?q?ython=203.8.=20=20=20=20=20=20-=20wrap=20Soc?= =?UTF-8?q?ketIO=20in=20io.Buffered*=20for=20makefile=20=20=20?= =?UTF-8?q?=20=20=20-=20NULL=20is=20legal=20argument=20for=20key=20and=20i?= =?UTF-8?q?v=20paramters=20of=20EVP=5FCipherInit(3)=20=20=20=20=20=20=20=20=20=20=20=20-=20Expose=20X509=5FV=5FFLAG=5F?= =?UTF-8?q?ALLOW=5FPROXY=5FCERTS=20verification=20flag=20and=20=20=20=20?= =?UTF-8?q?=20=20=20X509=5FSTORE=5FSET=5FFLAGS=20function=20=20=20=20=20=20-=20Stop=20testing=20for=202.6=20and=203.4?= =?UTF-8?q?=20on=20Travis.=20Start=20testing=203.8=20?= =?UTF-8?q?=20=20=20=20=20-=20Extend=20test=20cert=20validity=20to=202049?= =?UTF-8?q?=20=20=20=20=20=20-=20Revert=20using?= =?UTF-8?q?=20typing=20module=20in=202.6.=20It=20is=20just=20not=20worthy.?= =?UTF-8?q?=20=20=20=20=20=20-=20Update=20Debian/stable?= =?UTF-8?q?=20SSL=20as=20well=20=20=20=20=20=20-=20Make?= =?UTF-8?q?=20tests=20pass=20again.=20=20=20=20=20=20-?= =?UTF-8?q?=20Stop=20using=20string=20module,=20which=20has=20been=20depre?= =?UTF-8?q?cated.=20=20=20=20=20=20-=20Tiny=20fixes=20t?= =?UTF-8?q?o=20make=20pyls=20more=20happy=20=20=20=20?= =?UTF-8?q?=20=20-=20CI:=20Rework=20Fedora=20CI=20configuration=20=20-=20Remove=20upstream=20merged=20patch=20001-fix-buffe?= =?UTF-8?q?ring-for-python38.patch.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=90 --- 001-fix-buffering-for-python38.patch | 24 ---------------------- M2Crypto-0.35.2.tar.gz | 3 --- M2Crypto-0.36.0.tar.gz | 3 +++ python-M2Crypto.changes | 30 ++++++++++++++++++++++++++++ python-M2Crypto.spec | 6 +----- 5 files changed, 34 insertions(+), 32 deletions(-) delete mode 100644 001-fix-buffering-for-python38.patch delete mode 100644 M2Crypto-0.35.2.tar.gz create mode 100644 M2Crypto-0.36.0.tar.gz diff --git a/001-fix-buffering-for-python38.patch b/001-fix-buffering-for-python38.patch deleted file mode 100644 index 91a0b41..0000000 --- a/001-fix-buffering-for-python38.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/M2Crypto/SSL/Connection.py b/M2Crypto/SSL/Connection.py -index 7053aa6..6503935 100644 ---- a/M2Crypto/SSL/Connection.py -+++ b/M2Crypto/SSL/Connection.py -@@ -12,6 +12,7 @@ Copyright 2008 Heikki Toivonen. All rights reserved. - - import logging - import socket -+import io - - from M2Crypto import BIO, Err, X509, m2, py27plus, six, util # noqa - from M2Crypto.SSL import Checker, Context, timeout # noqa -@@ -584,7 +585,10 @@ class Connection(object): - def makefile(self, mode='rb', bufsize=-1): - # type: (AnyStr, int) -> socket._fileobject - if six.PY3: -- return socket.SocketIO(self, mode) -+ raw = socket.SocketIO(self, mode) -+ if 'rw' in mode: -+ return io.BufferedRWPair(raw, raw) -+ return io.BufferedReader(raw, io.DEFAULT_BUFFER_SIZE) - else: - return socket._fileobject(self, mode, bufsize) - diff --git a/M2Crypto-0.35.2.tar.gz b/M2Crypto-0.35.2.tar.gz deleted file mode 100644 index 50de91e..0000000 --- a/M2Crypto-0.35.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c6ad45ffb88670c590233683074f2440d96aaccb05b831371869fc387cbd127 -size 1117706 diff --git a/M2Crypto-0.36.0.tar.gz b/M2Crypto-0.36.0.tar.gz new file mode 100644 index 0000000..309c742 --- /dev/null +++ b/M2Crypto-0.36.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1542c18e3ee5c01db5031d0b594677536963e3f54ecdf5315aeecb3a595b4dc1 +size 1127584 diff --git a/python-M2Crypto.changes b/python-M2Crypto.changes index c1ad24e..2990409 100644 --- a/python-M2Crypto.changes +++ b/python-M2Crypto.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Mon Jul 13 21:07:34 UTC 2020 - Matej Cepl + +Update to 0.36.0: + - wrap SocketIO in io.Buffered* for makefile + - SSL.Connection.close accepts an argument to force the socket closing + + - SSL.Connection: make the clientPostConnectionCheck an instance + attribute + - Fixed bug with usage of unexisting method getreply at SSL_Transport + + - Add appveyor builds for python 3.7 and 3.8 + - Fixed syntax warning on line 44. + - Update M2Crypto.six to 1.13.0 + - base64.decodestring() was finally removed in Python 3.8. + - wrap SocketIO in io.Buffered* for makefile + - NULL is legal argument for key and iv paramters of EVP_CipherInit(3) + + - Expose X509_V_FLAG_ALLOW_PROXY_CERTS verification flag and + X509_STORE_SET_FLAGS function + - Stop testing for 2.6 and 3.4 on Travis. Start testing 3.8 + - Extend test cert validity to 2049 + - Revert using typing module in 2.6. It is just not worthy. + - Update Debian/stable SSL as well + - Make tests pass again. + - Stop using string module, which has been deprecated. + - Tiny fixes to make pyls more happy + - CI: Rework Fedora CI configuration +- Remove upstream merged patch 001-fix-buffering-for-python38.patch. + ------------------------------------------------------------------- Wed Apr 8 12:30:32 UTC 2020 - Tomáš Chvátal diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec index 095ab1c..0c9f452 100644 --- a/python-M2Crypto.spec +++ b/python-M2Crypto.spec @@ -19,14 +19,13 @@ %define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-M2Crypto -Version: 0.35.2 +Version: 0.36.0 Release: 0 Summary: Crypto and SSL toolkit for Python License: MIT Group: Development/Languages/Python URL: https://gitlab.com/m2crypto/m2crypto Source: https://files.pythonhosted.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz -Patch1: 001-fix-buffering-for-python38.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module typing} @@ -78,9 +77,6 @@ Documentation for the Crypto and SSL toolkit for Python %prep %setup -q -n M2Crypto-%{version} -%if 0%{?suse_version} > 1500 -%patch1 -p1 -%endif %build export CFLAGS="%{optflags}"