Accepting request 855332 from home:mcepl:branches:devel:tools:scm
- Remove skipping tests which are acutally passing. - Python < 3.7 requires external contextvars OBS-URL: https://build.opensuse.org/request/show/855332 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dnspython?expand=0&rev=53
This commit is contained in:
parent
e1f4dde5cb
commit
5d2969f406
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 11 14:05:18 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Remove skipping tests which are acutally passing.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 11 07:52:30 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Python < 3.7 requires external contextvars
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 6 13:46:23 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
Thu Aug 6 13:46:23 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@ -26,8 +26,8 @@ License: ISC
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/rthalley/dnspython
|
URL: https://github.com/rthalley/dnspython
|
||||||
Source: https://files.pythonhosted.org/packages/source/d/dnspython/dnspython-%{version}.zip
|
Source: https://files.pythonhosted.org/packages/source/d/dnspython/dnspython-%{version}.zip
|
||||||
|
BuildRequires: %{python_module base >= 3.6}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python3-base >= 3.6
|
|
||||||
# SECTION tests
|
# SECTION tests
|
||||||
BuildRequires: %{python_module cryptography}
|
BuildRequires: %{python_module cryptography}
|
||||||
BuildRequires: %{python_module ecdsa}
|
BuildRequires: %{python_module ecdsa}
|
||||||
@ -36,14 +36,20 @@ BuildRequires: %{python_module pycryptodome}
|
|||||||
BuildRequires: %{python_module requests-toolbelt}
|
BuildRequires: %{python_module requests-toolbelt}
|
||||||
BuildRequires: %{python_module trio >= 0.14.0}
|
BuildRequires: %{python_module trio >= 0.14.0}
|
||||||
BuildRequires: %{python_module typing}
|
BuildRequires: %{python_module typing}
|
||||||
# /SECTION tests
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: netcfg
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
# /SECTION tests
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: netcfg
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
|
BuildRequires: (python3-contextvars if python3-base < 3.7)
|
||||||
|
BuildRequires: (python36-contextvars if python36-base)
|
||||||
Requires: python-ecdsa
|
Requires: python-ecdsa
|
||||||
Requires: python-pycryptodome
|
Requires: python-pycryptodome
|
||||||
Requires: python-requests-toolbelt
|
Requires: python-requests-toolbelt
|
||||||
|
%if %{python_version_nodots} < 37
|
||||||
|
Requires: python-contextvars
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Recommends: python-cryptography
|
Recommends: python-cryptography
|
||||||
Recommends: python-idna >= 2.1
|
Recommends: python-idna >= 2.1
|
||||||
@ -65,8 +71,6 @@ manipulation of DNS zones, messages, names, and records.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n dnspython-%{version}
|
%setup -q -n dnspython-%{version}
|
||||||
chmod -x examples/*
|
chmod -x examples/*
|
||||||
# Two sets of fail which fail on openssl 1.1.0i and lower
|
|
||||||
sed -Ei 's/def (testAbsoluteED)(448|25519)/def _\1\2/' tests/test_dnssec.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -76,10 +80,7 @@ sed -Ei 's/def (testAbsoluteED)(448|25519)/def _\1\2/' tests/test_dnssec.py
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %python3_version_nodots < 37
|
%pytest
|
||||||
rm tests/nanonameserver.py
|
|
||||||
%endif
|
|
||||||
%python_exec setup.py test
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user