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/hacking/
Date: Thu, 22 Apr 2021 07:36:17
Message-Id: 1619076908.3e636a03314c663db216133f21883dc71638e25e.mgorny@gentoo
1 commit: 3e636a03314c663db216133f21883dc71638e25e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 22 06:50:25 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 22 07:35:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e636a03
7
8 dev-python/hacking: Bump to 4.1.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/hacking/Manifest | 1 +
13 dev-python/hacking/hacking-4.1.0.ebuild | 57 +++++++++++++++++++++++++++++++++
14 dev-python/hacking/metadata.xml | 2 +-
15 3 files changed, 59 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-python/hacking/Manifest b/dev-python/hacking/Manifest
18 index d716e3067de..201d4f4ff4c 100644
19 --- a/dev-python/hacking/Manifest
20 +++ b/dev-python/hacking/Manifest
21 @@ -1 +1,2 @@
22 DIST hacking-2.0.0.tar.gz 53296 BLAKE2B 50606d700c324acc8695499ee97cd592b051fe0cfc020efdfe7bf82b44d2f6ac858ed2f923ea08343066820c7da1686aa0b172bbab541cc564dc5ecc016cfac6 SHA512 d44d62f694c79af4c2044e745b140f0582fb5a6bbfa8050d45b17e8cb354198e8eac3a06586cf96d516844bb079d429d73ce9755a23e256857c4de19aca7ffe3
23 +DIST hacking-4.1.0.tar.gz 61910 BLAKE2B 95ced5b2fbafbb890478b5ef598a836520b4d1a3f1f2a0e708aa3f3135f394aab9e1ca8eaafa9d2f9f8dfcd1043d925b0232228234021ac89d2882ad6c7918a5 SHA512 44741548b5031777b0a508255129893da63a076615dc4245fdcb2368711be0ff6e16702c12c75a7f2c6b13257e2257c58e6e95dfad6da6640ff077fbf2b507db
24
25 diff --git a/dev-python/hacking/hacking-4.1.0.ebuild b/dev-python/hacking/hacking-4.1.0.ebuild
26 new file mode 100644
27 index 00000000000..3a8ad04c903
28 --- /dev/null
29 +++ b/dev-python/hacking/hacking-4.1.0.ebuild
30 @@ -0,0 +1,57 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A client for the OpenStack Nova API"
41 +HOMEPAGE="https://github.com/openstack/hacking/"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="doc test"
48 +RESTRICT="!test? ( test )"
49 +
50 +RDEPEND="
51 + >=dev-python/flake8-3.8.0[${PYTHON_USEDEP}]
52 + <dev-python/flake8-3.9.0[${PYTHON_USEDEP}]"
53 +DEPEND="
54 + dev-python/setuptools[${PYTHON_USEDEP}]
55 + >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
56 + test? (
57 + >=dev-python/coverage-4.5[${PYTHON_USEDEP}]
58 + >=dev-python/ddt-1.2.1[${PYTHON_USEDEP}]
59 + >=dev-python/eventlet-0.20.2[${PYTHON_USEDEP}]
60 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
61 + >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}]
62 + >=dev-python/stestr-2.0.0[${PYTHON_USEDEP}]
63 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
64 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
65 + ${RDEPEND}
66 + )
67 + doc? (
68 + >=dev-python/sphinx-2.2.0[${PYTHON_USEDEP}]
69 + >=dev-python/openstackdocstheme-2.2.1[${PYTHON_USEDEP}]
70 + >=dev-python/reno-3.1.0[${PYTHON_USEDEP}]
71 + )"
72 +DISTUTILS_IN_SOURCE_BUILD=1
73 +
74 +python_compile_all() {
75 + use doc && sphinx-build -b html -c doc/source/ doc/source/ doc/source/html
76 +}
77 +
78 +python_test() {
79 + stestr init || die "stestr init died"
80 + stestr run || die "testsuite failed under ${EPYTHON}"
81 + flake8 "${PN}"/tests || die "flake8 drew error on a run over ${PN}/tests folder"
82 +}
83 +
84 +python_install_all() {
85 + use doc && local HTML_DOCS=( doc/source/html/. )
86 + distutils-r1_python_install_all
87 +}
88
89 diff --git a/dev-python/hacking/metadata.xml b/dev-python/hacking/metadata.xml
90 index 79aa1eaf680..5dd6f32048e 100644
91 --- a/dev-python/hacking/metadata.xml
92 +++ b/dev-python/hacking/metadata.xml
93 @@ -19,6 +19,6 @@
94 </longdescription>
95 <upstream>
96 <remote-id type="pypi">hacking</remote-id>
97 - <remote-id type="github">openstack-dev/hacking</remote-id>
98 + <remote-id type="github">openstack/hacking</remote-id>
99 </upstream>
100 </pkgmetadata>