Accepting request 950806 from home:bnavigator:branches:devel:languages:python
- Break build dependency cycle through :test multibuild - PEP517 style: poetry-core is enough to build the package - Clean up old python36 requirements: no longer in Tumbleweed OBS-URL: https://build.opensuse.org/request/show/950806 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dnspython?expand=0&rev=59
This commit is contained in:
parent
f7a5df984f
commit
ad04294206
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<flavor>test</flavor>
|
||||||
|
</multibuild>
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 2 18:24:23 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Break build dependency cycle through :test multibuild
|
||||||
|
- PEP517 style: poetry-core is enough to build the package
|
||||||
|
- Clean up old python36 requirements: no longer in Tumbleweed
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 19 12:28:45 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
Wed Jan 19 12:28:45 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-dnspython
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
@ -16,9 +16,18 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-dnspython
|
Name: python-dnspython%{psuffix}
|
||||||
Version: 2.2.0
|
Version: 2.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A DNS toolkit for Python
|
Summary: A DNS toolkit for Python
|
||||||
@ -28,10 +37,10 @@ URL: https://github.com/rthalley/dnspython
|
|||||||
Source: https://files.pythonhosted.org/packages/source/d/dnspython/dnspython-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/d/dnspython/dnspython-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module base >= 3.6}
|
BuildRequires: %{python_module base >= 3.6}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module poetry}
|
BuildRequires: %{python_module poetry-core}
|
||||||
# SECTION tests
|
BuildRequires: fdupes
|
||||||
#BuildRequires: %%{python_module ecdsa}
|
BuildRequires: python-rpm-macros
|
||||||
#BuildRequires: %%{python_module pycryptodome}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module typing}
|
BuildRequires: %{python_module typing}
|
||||||
# doh:
|
# doh:
|
||||||
BuildRequires: %{python_module httpx}
|
BuildRequires: %{python_module httpx}
|
||||||
@ -47,19 +56,14 @@ BuildRequires: %{python_module trio >= 0.14.0}
|
|||||||
# curio
|
# curio
|
||||||
BuildRequires: %{python_module sniffio >= 1.1}
|
BuildRequires: %{python_module sniffio >= 1.1}
|
||||||
BuildRequires: %{python_module curio >= 1.2}
|
BuildRequires: %{python_module curio >= 1.2}
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
# /SECTION tests
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: netcfg
|
BuildRequires: netcfg
|
||||||
BuildRequires: unzip
|
|
||||||
BuildRequires: (python3-contextvars if python3-base < 3.7)
|
BuildRequires: (python3-contextvars if python3-base < 3.7)
|
||||||
BuildRequires: (python36-contextvars if python36-base)
|
%endif
|
||||||
#Requires: python-ecdsa
|
%if 0%{?python_version_nodots} < 37
|
||||||
#Requires: python-pycryptodome
|
|
||||||
%if %{python_version_nodots} < 37
|
|
||||||
Requires: python-contextvars
|
Requires: python-contextvars
|
||||||
%endif
|
%endif
|
||||||
|
# Requires despite optional: see description
|
||||||
# doh
|
# doh
|
||||||
Requires: python-requests
|
Requires: python-requests
|
||||||
Requires: python-h2
|
Requires: python-h2
|
||||||
@ -107,17 +111,23 @@ chmod -x dns/win32util.py
|
|||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md examples/
|
%doc README.md examples/
|
||||||
%{python_sitelib}/dns/
|
%{python_sitelib}/dns/
|
||||||
%{python_sitelib}/dnspython-%{version}.dist-info/
|
%{python_sitelib}/dnspython-%{version}.dist-info/
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user