15
0
Files
python-dns-lexicon/python-dns-lexicon.spec
Steve Kowalik 2971b6666c - Update to 3.3.19:
* Implement retry to handle rate limits in DNSMadeEasy (#442)
  * Updated Link For Constellix API and Added Link for v2 of DNSSimple API
  * Bug fixed: failure if "Forward" Record (#447)
  * add RcodeZero (https://www.rcodezero.at) provider
  * Move test_hostingde provider in the correct place
  * Added example for lexicon usage as a python library
  * Add support for Python 3.8
  * minor fixes for RcodeZero provider: add "Accept" header to request and
    fixed loglevel of debug message
  * Change uri check after login for easyname
  * Fix auto provider handling of parameters. (#473)
  * Adds subaction as query parameter instead of using url argument
  * Introduce Gransy provider. Gransy provider is former Subreg provider, but
    because it works for multiple sites
  * Changes to robst parser 'html5lib' for Hetzner
  * Adds TTL to the digitalocean provider (#482)
- Drop Python 2 support, due to softlayer no longer supporting it
- Delete one broken unit test class

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dns-lexicon?expand=0&rev=32
2020-03-30 05:30:18 +00:00

104 lines
3.3 KiB
RPMSpec

#
# spec file for package python-dns-lexicon
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-dns-lexicon
Version: 3.3.19
Release: 0
Summary: DNS record manipulation utility
License: MIT
URL: https://github.com/AnalogJ/lexicon
Source0: https://github.com/AnalogJ/lexicon/archive/v%{version}.tar.gz#/lexicon-%{version}.tar.gz
BuildRequires: %{python_module PyNamecheap}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module boto3}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module dnspython >= 1.15.0}
BuildRequires: %{python_module future}
BuildRequires: %{python_module html5lib}
BuildRequires: %{python_module localzone}
BuildRequires: %{python_module mock >= 2.0.0}
BuildRequires: %{python_module pytest >= 3.8.0}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module softlayer}
BuildRequires: %{python_module tldextract}
BuildRequires: %{python_module transip >= 0.3.0}
BuildRequires: %{python_module vcrpy >= 1.13.0}
BuildRequires: %{python_module xmltodict}
BuildRequires: %{python_module zeep}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyNamecheap
Requires: python-PyYAML
Requires: python-beautifulsoup4
Requires: python-boto3
Requires: python-cryptography
Requires: python-dnspython >= 1.15.0
Requires: python-future
Requires: python-localzone
Requires: python-requests
Requires: python-setuptools
Requires: python-softlayer
Requires: python-tldextract
Requires: python-transip >= 0.3.0
Requires: python-vcrpy
Requires: python-xmltodict
# Completely different pkg but same namespace
Conflicts: python-lexicon
BuildArch: noarch
%python_subpackages
%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 library.
Lexicon was designed to be used in automation, specifically letsencrypt.
%prep
%setup -q -n lexicon-%{version}
# Remove, since they are completely broken
rm lexicon/tests/providers/test_auto.py
# rpmlint
find . -type f -name ".gitignore" -delete
%build
%python_build
# rpmlint
find . -type f -name ".buildinfo" -delete
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest lexicon/tests
%files %{python_files}
%{python_sitelib}
%license LICENSE
%doc README.md
%python3_only %{_bindir}/lexicon
%changelog