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/python-swiftclient/
Date: Sat, 10 Oct 2020 20:34:07
Message-Id: 1602362007.b22ccf5e2675cce8e1cc2f489a14c5e02dc52c86.prometheanfire@gentoo
1 commit: b22ccf5e2675cce8e1cc2f489a14c5e02dc52c86
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 20:30:42 2020 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 20:33:27 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b22ccf5e
7
8 dev-python/python-swiftclient: 3.10.1 bump
9
10 Closes: https://bugs.gentoo.org/747220
11
12 Package-Manager: Portage-3.0.4, Repoman-3.0.1
13 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
14
15 dev-python/python-swiftclient/Manifest | 1 +
16 .../python-swiftclient-3.10.1.ebuild | 46 ++++++++++++++++++++++
17 2 files changed, 47 insertions(+)
18
19 diff --git a/dev-python/python-swiftclient/Manifest b/dev-python/python-swiftclient/Manifest
20 index b00c64cd770..44bbdef4b39 100644
21 --- a/dev-python/python-swiftclient/Manifest
22 +++ b/dev-python/python-swiftclient/Manifest
23 @@ -1 +1,2 @@
24 +DIST python-swiftclient-3.10.1.tar.gz 199466 BLAKE2B 4230f0fbff0e61a8172344df1cfc32f07628ac0b3784f5b8456d1b43b962e1d8561eec55c530ea94c615d46cd9454963fe0e21c54d1f4097016459e1460795c9 SHA512 f47444243f1968fdbba0643bcb4f05fc10a201b38ad83522e842bbad2221d0893a72147f9fbdc13e7f56469b049bbf11479fd9f41a9706119287543e0587f696
25 DIST python-swiftclient-3.7.0.tar.gz 190256 BLAKE2B f3e4c462f05a34af8f6b7775b9e238e14a29af0970f4838dbda21c0fe43481a84ad51be1f2f62592109ac6fc5a84931fce154381129fad9e1d7a60333c44c7e9 SHA512 85b762cbc9f5e90c7d4dcbb5f016ee4bdc61fe6c869d24fb9bc5f3a3c3e336b171b0d3f384b51ed7bf0edf38df3936f778be85598e4c6a9bf165f8dde0d3333f
26
27 diff --git a/dev-python/python-swiftclient/python-swiftclient-3.10.1.ebuild b/dev-python/python-swiftclient/python-swiftclient-3.10.1.ebuild
28 new file mode 100644
29 index 00000000000..b0f49812340
30 --- /dev/null
31 +++ b/dev-python/python-swiftclient/python-swiftclient-3.10.1.ebuild
32 @@ -0,0 +1,46 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +DISTUTILS_USE_SETUPTOOLS=rdepend
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Python bindings to the OpenStack Object Storage API"
43 +HOMEPAGE="https://launchpad.net/python-swiftclient"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="test"
50 +RESTRICT="!test? ( test )"
51 +
52 +DEPEND="dev-python/pbr[${PYTHON_USEDEP}]
53 + test? (
54 + >=dev-python/coverage-4.0[${PYTHON_USEDEP}]
55 + !~dev-python/coverage-4.4[${PYTHON_USEDEP}]
56 + >=dev-python/keystoneauth-3.4.0[${PYTHON_USEDEP}]
57 + >=dev-python/mock-1.2.0[${PYTHON_USEDEP}]
58 + >=dev-python/stestr-2.0.0[${PYTHON_USEDEP}]
59 + !~dev-python/stestr-3.0.0[${PYTHON_USEDEP}]
60 + >=dev-python/openstacksdk-0.11.0[${PYTHON_USEDEP}]
61 + )"
62 +RDEPEND="
63 + >=dev-python/requests-1.1.0[${PYTHON_USEDEP}]
64 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]"
65 +
66 +#PATCHES=( "${FILESDIR}/CVE-2013-6396.patch" )
67 +
68 +python_prepare_all() {
69 + sed -i '/hacking/d' "${S}/test-requirements.txt" || die "sed failed"
70 + distutils-r1_python_prepare_all
71 +}
72 +
73 +python_test() {
74 + testr init
75 + testr run || die "tests failed under ${EPYTHON}"
76 + flake8 tests && einfo "run of tests folder by flake8 passed"
77 + flake8 bin/swift && einfo "run of ./bin/swift by flake8 passed"
78 +}