Merge branch 'rawhide' of https://src.fedoraproject.org/rpms/python-dns-lexicon into rawhide
This commit is contained in:
commit
a02c4d4e9e
1 changed files with 40 additions and 12 deletions
|
|
@ -30,8 +30,7 @@ BuildArch: noarch
|
|||
|
||||
Patch0: 0000-remove-shebang.patch
|
||||
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
BuildRequires: poetry >= 1.0.0
|
||||
BuildRequires: python3-devel
|
||||
|
||||
# required to run the test suite
|
||||
# {
|
||||
|
|
@ -48,7 +47,6 @@ BuildRequires: python3-boto3
|
|||
%endif
|
||||
# }
|
||||
|
||||
|
||||
%description
|
||||
Lexicon provides a way to manipulate DNS records on multiple DNS providers in a
|
||||
standardized way. Lexicon has a CLI but it can also be used as a python
|
||||
|
|
@ -98,17 +96,40 @@ library.
|
|||
This is the Python 3 version of the package.
|
||||
|
||||
|
||||
|
||||
%package -n python3-%{pypi_name}+ddns
|
||||
Summary: Meta-package for python3-%{pypi_name} and ddns provider
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}+ddns}
|
||||
Requires: python3-%{pypi_name} = %{version}-%{release}
|
||||
|
||||
%description -n python3-%{pypi_name}+ddns
|
||||
This package installs no files. It requires python3-%{pypi_name} and all
|
||||
dependencies necessary to use the ddns provider.
|
||||
|
||||
|
||||
|
||||
%package -n python3-%{pypi_name}+gransy
|
||||
Summary: Meta-package for python3-%{pypi_name} and gransy provider
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}+gransy}
|
||||
Requires: python3-%{pypi_name} = %{version}-%{release}
|
||||
|
||||
%description -n python3-%{pypi_name}+gransy
|
||||
This package installs no files. It requires python3-%{pypi_name} and all
|
||||
dependencies necessary to use the gransy provider.
|
||||
|
||||
|
||||
|
||||
%package -n python3-%{pypi_name}+route53
|
||||
Summary: Meta-package for python3-%{pypi_name} and Route 53 provider
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}+route53}
|
||||
|
||||
Requires: python3-%{pypi_name} = %{version}-%{release}
|
||||
Requires: python3-boto3
|
||||
|
||||
%description -n python3-%{pypi_name}+route53
|
||||
This package installs no files. It requires python3-%{pypi_name} and all
|
||||
dependencies necessary to use the Route 53 provider.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n lexicon-%{version} -p1
|
||||
# Remove bundled egg-info
|
||||
|
|
@ -133,19 +154,13 @@ rm setup.py
|
|||
# {
|
||||
%if %{with tests}
|
||||
# AutoProviderTests: unknown failure - exclude to get suite passing for now
|
||||
# GoDaddyProviderTests: unknown failure - just get the suite passing for now
|
||||
# TypeError: __init__() got an unexpected keyword argument 'allowed_methods'
|
||||
#
|
||||
# lexicon providers which do not work in Fedora due to missing dependencies:
|
||||
# - TransipProviderTests
|
||||
# - SoftLayerProviderTests
|
||||
# - NamecheapProviderTests
|
||||
# - NamecheapManagedProviderTests
|
||||
# - GransyProviderTests
|
||||
# - LocalzoneProviderTests
|
||||
# - OciProviderTests
|
||||
TEST_SELECTOR="not AutoProviderTests and not GoDaddyProviderTests and not TransipProviderTests and not SoftLayerProviderTests and not NamecheapProviderTests and not NamecheapManagedProviderTests and not GransyProviderTests and not LocalzoneProviderTests and not OciProviderTests"
|
||||
# EPEL does not provide the python3-pytest-vcr package
|
||||
TEST_SELECTOR="not AutoProviderTests and not SoftLayerProviderTests and not LocalzoneProviderTests and not OciProviderTests"
|
||||
# The %%tox macro lacks features so we need to use pytest directly:
|
||||
# Miro Hrončok, 2020-09-11:
|
||||
# > I am afraid the %%tox macro can only work with "static" deps declaration,
|
||||
|
|
@ -175,6 +190,12 @@ rm -rf %{buildroot}%{python3_sitelib}/lexicon/tests
|
|||
# {{{
|
||||
%if %{with extras}
|
||||
|
||||
%files -n python3-%{pypi_name}+ddns
|
||||
%{?python_extras_subpkg:%ghost %{python3_sitelib}/dns_lexicon-%{version}.dist-info}
|
||||
|
||||
%files -n python3-%{pypi_name}+gransy
|
||||
%{?python_extras_subpkg:%ghost %{python3_sitelib}/dns_lexicon-%{version}.dist-info}
|
||||
|
||||
%files -n python3-%{pypi_name}+route53
|
||||
%{?python_extras_subpkg:%ghost %{python3_sitelib}/dns_lexicon-%{version}.dist-info}
|
||||
|
||||
|
|
@ -182,6 +203,13 @@ rm -rf %{buildroot}%{python3_sitelib}/lexicon/tests
|
|||
# }}}
|
||||
|
||||
%changelog
|
||||
* Tue Apr 26 2022 Christian Schuermann <spike@fedoraproject.org> 3.9.5-2
|
||||
- Reenable tests for GoDady, Transip, Namecheap and NamecheapManaged providers
|
||||
- Add gransy and ddns extra packages
|
||||
- Remove explicit BuildRequires (handled by the pyproject_buildrequires macro)
|
||||
- Remove explicit extra package Requires (handled by automatic dependency generator)
|
||||
- Remove unused rhel7 macro
|
||||
|
||||
* Tue Apr 19 2022 Christian Schuermann <spike@fedoraproject.org> 3.9.5-1
|
||||
- update to 3.9.5
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue