Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bandit/
Date: Wed, 28 Oct 2020 05:38:24
Message-Id: 1603863493.a7a62a33f7aa0fe62a14dd834c8a41c65f918e7f.prometheanfire@gentoo
1 commit: a7a62a33f7aa0fe62a14dd834c8a41c65f918e7f
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 28 05:01:43 2020 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 28 05:38:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7a62a33
7
8 dev-python/bandit: 1.6.2-r1 added to fix most testing
9
10 Closes: https://bugs.gentoo.org/733136
11
12 Package-Manager: Portage-3.0.8, Repoman-3.0.2
13 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
14
15 dev-python/bandit/Manifest | 2 ++
16 dev-python/bandit/bandit-1.6.2-r1.ebuild | 56 ++++++++++++++++++++++++++++++++
17 2 files changed, 58 insertions(+)
18
19 diff --git a/dev-python/bandit/Manifest b/dev-python/bandit/Manifest
20 index f124e1c0046..f916b3dc819 100644
21 --- a/dev-python/bandit/Manifest
22 +++ b/dev-python/bandit/Manifest
23 @@ -1,2 +1,4 @@
24 DIST bandit-1.5.1.tar.gz 480856 BLAKE2B f8a1a7dc1d93a1b6c8d3eb5bcbecda895b29dfebe055ac358b9437bd0c9ab5562e6d25a658bc2092cff6bddfd0245e71bf39ee88b2718e3a0c7376fa50293ae1 SHA512 e6f596e73af45ca2ff4d200fad63d37adf44efd5de52f8061f5a349b66457a39eb442ad442d5fb57b2e0e98c8bae0eb0879b958ff619b4e26c0183bc8b928e36
25 DIST bandit-1.6.2.tar.gz 498567 BLAKE2B ab7885df634ff8258fc7620523b56995cb2f262f4290193a9063e216f66ba8ecb31ec17f09d0b72a0472923266953c46e47e74fcdfb39784873738c033e00c6c SHA512 9facce98411ceb9e33e5a978ca4aad2dab541ffe215e480806ac921b7f7067572445d8e32e8d473ef30bb57155b72b2ffd4e06d458a3da82e2a9fb1b1d8a4b9f
26 +DIST bandit-1.6.2_py38-1.patch 3892 BLAKE2B 750160be3d234b0d638307e74fd130921f43f460edca8d0ef0f9a98f34db709e0649b1e481668abd094942fa05ee710b82b3161fd82bc56bb0f5e73d90a6e70f SHA512 dc1e55bdcbf180e70757dd92aa590fe1348d84a2143af73e48c35c62864cf0720f6b055482eb274a4261adff37c84f998c75916b8ab70d99264bd88d09611e06
27 +DIST bandit-1.6.2_py38-2.patch 3724 BLAKE2B 8ce857419d99b059ce1b28aba7c04218397cad82f0fdb6e7eb3e57f698d6360de7b0f4402c40540e41d510db1aa0b75e006e0e15a20a8c5534b7e5a3cf78a0e8 SHA512 25f73b087b296867556d9b9bb7f789a4df64bd2930509086bc24312c43a3a98209d63a5b00009e31fd2653e89c85e62849c7af6ba044abc10c5789a6e3d9a968
28
29 diff --git a/dev-python/bandit/bandit-1.6.2-r1.ebuild b/dev-python/bandit/bandit-1.6.2-r1.ebuild
30 new file mode 100644
31 index 00000000000..d9cc3c10f03
32 --- /dev/null
33 +++ b/dev-python/bandit/bandit-1.6.2-r1.ebuild
34 @@ -0,0 +1,56 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +PYTHON_COMPAT=( python3_{6,7,8} )
40 +DISTUTILS_USE_SETUPTOOLS=rdepend
41 +
42 +inherit distutils-r1
43 +
44 +DESCRIPTION="A security linter from OpenStack Security"
45 +HOMEPAGE="https://github.com/PyCQA/bandit"
46 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
47 + https://github.com/PyCQA/bandit/commit/45494c94d59eea5ddbe0204f3781b90108cbde30.patch -> ${P}_py38-1.patch
48 + https://github.com/PyCQA/bandit/commit/3d0824676974e7e2e9635c10bc4f12e261f1dbdf.patch -> ${P}_py38-2.patch
49 +"
50 +
51 +LICENSE="Apache-2.0"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm64 ~s390 ~x86"
54 +IUSE="test"
55 +RESTRICT="!test? ( test )"
56 +
57 +DEPEND="
58 + >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
59 + test? (
60 + >=dev-python/coverage-4.0[${PYTHON_USEDEP}]
61 + !~dev-python/coverage-4.4[${PYTHON_USEDEP}]
62 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
63 + >=dev-python/hacking-1.0.0[${PYTHON_USEDEP}]
64 + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
65 + >=dev-python/stestr-1.0.0
66 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
67 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
68 + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
69 + >=dev-python/beautifulsoup-4.6.0[${PYTHON_USEDEP}]
70 + >=dev-python/pylint-1.4.5[${PYTHON_USEDEP}]
71 + )"
72 +RDEPEND="
73 + >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
74 + >=dev-python/GitPython-1.0.1[${PYTHON_USEDEP}]
75 + >=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
76 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
77 + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]"
78 +
79 +python_prepare() {
80 + sed -i 's/yaml.load/yaml.safe_load/g' tests/unit/formatters/test_yaml.py || die
81 + eapply "${DISTDIR}/${P}_py38-1.patch"
82 + eapply "${DISTDIR}/${P}_py38-2.patch"
83 + distutils-r1_python_prepare_all
84 +}
85 +
86 +python_test() {
87 + distutils_install_for_testing
88 + stestr init
89 + stestr run || die
90 +}