Accepting request 887900 from devel:languages:python

- Add no-need-parameterized.patch ... we don't need run-time requirement
  of parameterized package (bsc#1185150).

OBS-URL: https://build.opensuse.org/request/show/887900
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-M2Crypto?expand=0&rev=40
This commit is contained in:
Dominique Leuenberger 2021-04-26 14:38:49 +00:00 committed by Git OBS Bridge
commit 44809d66a2
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- a/setup.py
+++ b/setup.py
@@ -33,9 +33,9 @@ logging.basicConfig(format='%(levelname)
stream=sys.stdout, level=logging.INFO)
log = logging.getLogger('setup')
-requires_list = ['parameterized']
+requires_list = []
if (2, 6) < sys.version_info[:2] < (3, 5):
- requires_list = ['typing']
+ requires_list.append('typing')
if sys.version_info[0] > 2:
from typing import Dict, List

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 22 22:33:46 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Add no-need-parameterized.patch ... we don't need run-time requirement
of parameterized package (bsc#1185150).
-------------------------------------------------------------------
Fri Feb 19 12:56:50 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@ -34,6 +34,9 @@ Patch0: python-M2Crypto-Allow-on-UNABLE_TO_VERIFY_LEAF_SIGNATURE.patch
# PATCH-FIX-UPSTREAM 293_sslv23_padding.patch gl#m2crypto/m2crypto#293 mcepl@suse.com
# RSA_SSLV23_PADDING is evil and should be avoided.
Patch1: 293_sslv23_padding.patch
# PATCH-FIX-OPENSUSE no-need-parameterized.patch bsc#1185150 mcepl@suse.com
# no need to require parameterized for normal use
Patch2: no-need-parameterized.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module pytest}