1
0
forked from pool/python-mocket

- Update to 3.7.3:

* testsuite fixes
- Drop patch partial-wildcards.patch
- Add patch partial-wildcards.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2019-09-18 07:41:41 +00:00 committed by Git OBS Bridge
parent c97da4fa1a
commit 74dcb3cde6
5 changed files with 13 additions and 33 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1637b5b7878a9d6fc90c124f059a78c824a3972932e821fd8069532dc57aec8e
size 68728

3
mocket-3.7.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f715af594a4e0a319159a69d50d8c05fb45cf60c57cabd61c3557d5ac1bdbdcc
size 68742

View File

@ -1,22 +0,0 @@
From 98b3302d9f7bef7becaacd0a86b2ba48e90ddcfb Mon Sep 17 00:00:00 2001
From: Giorgio Salluzzo <giorgio.salluzzo@gmail.com>
Date: Wed, 18 Sep 2019 08:12:54 +0200
Subject: [PATCH] Partial wildcards fix.
---
mocket/mocket.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mocket/mocket.py b/mocket/mocket.py
index 2cfe43d..df00813 100644
--- a/mocket/mocket.py
+++ b/mocket/mocket.py
@@ -210,7 +210,7 @@ def getpeercert(self, *args, **kwargs):
return {
"notAfter": shift.strftime("%b %d %H:%M:%S GMT"),
"subjectAltName": (
- ("DNS", "*%s" % self._host),
+ ("DNS", "*.%s" % self._host),
("DNS", self._host),
("DNS", "*"),
),

View File

@ -1,7 +1,15 @@
-------------------------------------------------------------------
Wed Sep 18 07:41:18 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 3.7.3:
* testsuite fixes
- Drop patch partial-wildcards.patch
-------------------------------------------------------------------
Wed Sep 18 04:08:03 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Activate test suite
- Add patch partial-wildcards.patch
- Update to v3.7.2
-------------------------------------------------------------------

View File

@ -18,15 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-mocket
Version: 3.7.2
Version: 3.7.3
Release: 0
Summary: Python socket mock framework
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/mindflayer/python-mocket
Source: https://github.com/mindflayer/python-mocket/archive/%{version}.tar.gz#/mocket-%{version}.tar.gz
# https://github.com/mindflayer/python-mocket/issues/102
Patch0: https://github.com/mindflayer/python-mocket/commit/98b3302d9.patch#/partial-wildcards.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -42,13 +40,13 @@ Suggests: python-requests
Suggests: python-xxhash
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PySocks}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module decorator}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module hexdump}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pyOpenSSL}
BuildRequires: %{python_module PySocks}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-magic}
BuildRequires: %{python_module redis}
@ -69,12 +67,8 @@ included, with gevent/asyncio/SSL support.
%prep
%setup -q -n python-mocket-%{version}
%patch0 -p1
rm -f setup.cfg pytest.ini tox.ini
touch conftest.py
rm tests/tests27/test_pook.py
%build