From 2290f4fda34e2d064271d714d97291f1af2ff49d3fd2651944f40a1d6c29e443 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sat, 18 Jul 2020 11:09:48 +0000 Subject: [PATCH] - remove test depending on trio, which depends on Python 3.7 if python >= 3.7 is not available. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dnspython?expand=0&rev=50 --- python-dnspython.changes | 5 +++++ python-dnspython.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/python-dnspython.changes b/python-dnspython.changes index 5547a8c..a18ed7c 100644 --- a/python-dnspython.changes +++ b/python-dnspython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jul 18 10:53:18 UTC 2020 - Sebastian Wagner + +- remove test depending on trio, which depends on Python 3.7 if python >= 3.7 is not available. + ------------------------------------------------------------------- Sat Jul 18 10:30:15 UTC 2020 - Sebastian Wagner diff --git a/python-dnspython.spec b/python-dnspython.spec index b5644dd..a63804b 100644 --- a/python-dnspython.spec +++ b/python-dnspython.spec @@ -27,6 +27,7 @@ Group: Development/Languages/Python URL: https://github.com/rthalley/dnspython Source: https://files.pythonhosted.org/packages/source/d/dnspython/dnspython-%{version}.zip BuildRequires: %{python_module setuptools} +BuildRequires: python3-base >= 3.6 # SECTION tests BuildRequires: %{python_module ecdsa} BuildRequires: %{python_module idna} @@ -70,6 +71,9 @@ chmod -x examples/* %python_expand %fdupes %{buildroot}%{$python_sitelib}/ %check +%if %python3_version_nodots < 37 +rm tests/nanonameserver.py +%endif %python_exec setup.py test %files %{python_files}