Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dns-lexicon/
Date: Thu, 04 Nov 2021 08:16:44
Message-Id: 1636013795.365a0786055e74fb9b058a8cc30830ee2891b7c0.mgorny@gentoo
1 commit: 365a0786055e74fb9b058a8cc30830ee2891b7c0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 4 07:57:55 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 4 08:16:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=365a0786
7
8 dev-python/dns-lexicon: Bump to 3.8.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/dns-lexicon/Manifest | 1 +
13 dev-python/dns-lexicon/dns-lexicon-3.8.2.ebuild | 58 +++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/dev-python/dns-lexicon/Manifest b/dev-python/dns-lexicon/Manifest
17 index 945dffadb14..33c7f9b588e 100644
18 --- a/dev-python/dns-lexicon/Manifest
19 +++ b/dev-python/dns-lexicon/Manifest
20 @@ -1 +1,2 @@
21 DIST dns-lexicon-3.8.1.tar.gz 7832379 BLAKE2B 01049b6aaff661e24a39e70b5c04d5d4b18886ba88ccd61072736be5df99b9f880ed8a43b17f4fd9ad5c95ac1ec12d43a1b31ce69b115b7007cd1a95bacccfae SHA512 6826f1c3ceed43f207e4223a1f1ed231a7ada9c930fe61f76e353a20c979ec09dcc754dedc365d01870e74dfd36a3148582a5393dfe6733309e28e495fc495f9
22 +DIST dns-lexicon-3.8.2.tar.gz 7831952 BLAKE2B 4d24d1083fb5fe7cd3ee55b6ad0373fdcc8fa8faeae50a7434f8989c09ab6b16287aa97e37ebdd02fd406c94f364d2e351aaf04b413e18d64ecaa17228952059 SHA512 98ad0942a4f28e57803821a6cf840d6ea21a39478fd565dfc5c2cfb6be8d55d44f52d7247772fc9f7031139aa23dafd244b3c454435446ada186f115326469bc
23
24 diff --git a/dev-python/dns-lexicon/dns-lexicon-3.8.2.ebuild b/dev-python/dns-lexicon/dns-lexicon-3.8.2.ebuild
25 new file mode 100644
26 index 00000000000..bf5ab2f7ce8
27 --- /dev/null
28 +++ b/dev-python/dns-lexicon/dns-lexicon-3.8.2.ebuild
29 @@ -0,0 +1,58 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml
37 +
38 +inherit distutils-r1 optfeature
39 +
40 +DESCRIPTION="Manipulate DNS records on various DNS providers in a standardized/agnostic way"
41 +HOMEPAGE="https://pypi.org/project/dns-lexicon/"
42 +SRC_URI="https://github.com/AnalogJ/lexicon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +S="${WORKDIR}/lexicon-${PV}"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +
49 +RDEPEND="
50 + dev-python/beautifulsoup4[${PYTHON_USEDEP}]
51 + dev-python/requests[${PYTHON_USEDEP}]
52 + dev-python/tldextract[${PYTHON_USEDEP}]
53 + dev-python/cryptography[${PYTHON_USEDEP}]
54 + dev-python/pyyaml[${PYTHON_USEDEP}]
55 +"
56 +BDEPEND="
57 + test? (
58 + dev-python/boto3[${PYTHON_USEDEP}]
59 + dev-python/zeep[${PYTHON_USEDEP}]
60 + dev-python/vcrpy[${PYTHON_USEDEP}]
61 + )
62 +"
63 +
64 +distutils_enable_tests pytest
65 +
66 +EPYTEST_IGNORE=(
67 + # Requires the "localzone" module
68 + lexicon/tests/providers/test_localzone.py
69 + # Requires the "softlayer" module
70 + lexicon/tests/providers/test_softlayer.py
71 + # Requires the "transip" module
72 + lexicon/tests/providers/test_transip.py
73 + # Requires the "oci" module
74 + lexicon/tests/providers/test_oci.py
75 + # Uses tldextract which needs Internet access to download its database
76 + lexicon/tests/providers/test_auto.py
77 +)
78 +
79 +pkg_postinst() {
80 + if [[ -z ${REPLACING_VERSIONS} ]]; then
81 + optfeature_header \
82 + "Install the following packages to enable support for additional DNS providers:"
83 + optfeature Gransy dev-python/zeep
84 + optfeature Route53 dev-python/boto3
85 + optfeature DDNS dev-python/dnspython
86 + fi
87 +}