diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-04-22 08:50:25 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-04-22 09:35:08 +0200 |
commit | 3e636a03314c663db216133f21883dc71638e25e (patch) | |
tree | f8324176ac6458af90e80ee5ec287b1b33b62c5a /dev-python/hacking | |
parent | dev-python/stestr: Bump to 3.2.0 (diff) | |
download | gentoo-3e636a03314c663db216133f21883dc71638e25e.tar.gz gentoo-3e636a03314c663db216133f21883dc71638e25e.tar.bz2 gentoo-3e636a03314c663db216133f21883dc71638e25e.zip |
dev-python/hacking: Bump to 4.1.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/hacking')
-rw-r--r-- | dev-python/hacking/Manifest | 1 | ||||
-rw-r--r-- | dev-python/hacking/hacking-4.1.0.ebuild | 57 | ||||
-rw-r--r-- | dev-python/hacking/metadata.xml | 2 |
3 files changed, 59 insertions, 1 deletions
diff --git a/dev-python/hacking/Manifest b/dev-python/hacking/Manifest index d716e3067de0..201d4f4ff4c4 100644 --- a/dev-python/hacking/Manifest +++ b/dev-python/hacking/Manifest @@ -1 +1,2 @@ DIST hacking-2.0.0.tar.gz 53296 BLAKE2B 50606d700c324acc8695499ee97cd592b051fe0cfc020efdfe7bf82b44d2f6ac858ed2f923ea08343066820c7da1686aa0b172bbab541cc564dc5ecc016cfac6 SHA512 d44d62f694c79af4c2044e745b140f0582fb5a6bbfa8050d45b17e8cb354198e8eac3a06586cf96d516844bb079d429d73ce9755a23e256857c4de19aca7ffe3 +DIST hacking-4.1.0.tar.gz 61910 BLAKE2B 95ced5b2fbafbb890478b5ef598a836520b4d1a3f1f2a0e708aa3f3135f394aab9e1ca8eaafa9d2f9f8dfcd1043d925b0232228234021ac89d2882ad6c7918a5 SHA512 44741548b5031777b0a508255129893da63a076615dc4245fdcb2368711be0ff6e16702c12c75a7f2c6b13257e2257c58e6e95dfad6da6640ff077fbf2b507db diff --git a/dev-python/hacking/hacking-4.1.0.ebuild b/dev-python/hacking/hacking-4.1.0.ebuild new file mode 100644 index 000000000000..3a8ad04c9035 --- /dev/null +++ b/dev-python/hacking/hacking-4.1.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="A client for the OpenStack Nova API" +HOMEPAGE="https://github.com/openstack/hacking/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/flake8-3.8.0[${PYTHON_USEDEP}] + <dev-python/flake8-3.9.0[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] + test? ( + >=dev-python/coverage-4.5[${PYTHON_USEDEP}] + >=dev-python/ddt-1.2.1[${PYTHON_USEDEP}] + >=dev-python/eventlet-0.20.2[${PYTHON_USEDEP}] + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] + >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] + >=dev-python/stestr-2.0.0[${PYTHON_USEDEP}] + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] + ${RDEPEND} + ) + doc? ( + >=dev-python/sphinx-2.2.0[${PYTHON_USEDEP}] + >=dev-python/openstackdocstheme-2.2.1[${PYTHON_USEDEP}] + >=dev-python/reno-3.1.0[${PYTHON_USEDEP}] + )" +DISTUTILS_IN_SOURCE_BUILD=1 + +python_compile_all() { + use doc && sphinx-build -b html -c doc/source/ doc/source/ doc/source/html +} + +python_test() { + stestr init || die "stestr init died" + stestr run || die "testsuite failed under ${EPYTHON}" + flake8 "${PN}"/tests || die "flake8 drew error on a run over ${PN}/tests folder" +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/source/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/hacking/metadata.xml b/dev-python/hacking/metadata.xml index 79aa1eaf680a..5dd6f32048ed 100644 --- a/dev-python/hacking/metadata.xml +++ b/dev-python/hacking/metadata.xml @@ -19,6 +19,6 @@ </longdescription> <upstream> <remote-id type="pypi">hacking</remote-id> - <remote-id type="github">openstack-dev/hacking</remote-id> + <remote-id type="github">openstack/hacking</remote-id> </upstream> </pkgmetadata> |