summaryrefslogtreecommitdiff
path: root/dev-python/hacking
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
commit40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch)
tree758c221bad35c9288d0bd6df9c7dfc226728e52c /dev-python/hacking
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'dev-python/hacking')
-rw-r--r--dev-python/hacking/Manifest4
-rw-r--r--dev-python/hacking/hacking-4.1.0.ebuild57
-rw-r--r--dev-python/hacking/metadata.xml2
3 files changed, 61 insertions, 2 deletions
diff --git a/dev-python/hacking/Manifest b/dev-python/hacking/Manifest
index ae56c9e0368d..b000daff597b 100644
--- a/dev-python/hacking/Manifest
+++ b/dev-python/hacking/Manifest
@@ -1,3 +1,5 @@
DIST hacking-2.0.0.tar.gz 53296 BLAKE2B 50606d700c324acc8695499ee97cd592b051fe0cfc020efdfe7bf82b44d2f6ac858ed2f923ea08343066820c7da1686aa0b172bbab541cc564dc5ecc016cfac6 SHA512 d44d62f694c79af4c2044e745b140f0582fb5a6bbfa8050d45b17e8cb354198e8eac3a06586cf96d516844bb079d429d73ce9755a23e256857c4de19aca7ffe3
+DIST hacking-4.1.0.tar.gz 61910 BLAKE2B 95ced5b2fbafbb890478b5ef598a836520b4d1a3f1f2a0e708aa3f3135f394aab9e1ca8eaafa9d2f9f8dfcd1043d925b0232228234021ac89d2882ad6c7918a5 SHA512 44741548b5031777b0a508255129893da63a076615dc4245fdcb2368711be0ff6e16702c12c75a7f2c6b13257e2257c58e6e95dfad6da6640ff077fbf2b507db
EBUILD hacking-2.0.0.ebuild 1745 BLAKE2B 0b317f53ac541c0efbab79a4c08a6814c4987a7648f012ebc219cd24b8aabc2a187bf554348e0881d5a38ea0c9349ac1d450aa0fbccbca517e3df948edd81ac0 SHA512 c44df0a35cad7656ca379df47c3f261857fee024a7540d2f97c13fd45a3775646f1347641331dce0fcf0b036b0b4124a8d2b02affc42f26d598a6dc41f4511db
-MISC metadata.xml 749 BLAKE2B 29b4d37179a1c8f36f3c66ec80d0c2044f3457542114dd8753b1c50303e3dc5fe499ff52d4554f434a89026c4aee544ccb5049d0b2a8e2ea98042228234de01a SHA512 723ea94c939f789ba8112fc54d2de3abea87795407ce15ea8982140ce3bd446cdca885c2680471fbb70551e275b426fdab219f1f0394b581bd495fd643f5e0c2
+EBUILD hacking-4.1.0.ebuild 1657 BLAKE2B a217c48d5dbcee6d87af164705e9b214241093112a6d2b58da74cf15ccd835681115db3058b0eaed2b3a7478e401fbbf7d64ad4365f4ba4d32ba1faef73a43e1 SHA512 fc9dbf5fd16b718ef305fb1a5a2c190f626066d264434bee172f6e0ccf3b5ad07104e23a1ede5d1d1135e494c1a8b05786ea5933858a1d73f031e6ed7cafe1be
+MISC metadata.xml 745 BLAKE2B 7108120bb708480a5a2db0fd0424cbc51b996fa26ba4d457a2bfe726ccc74405bb7475363e025977cea12426e01e00f0ed1748e8f4fd61f32367b53ec30c422a SHA512 5d546066e8e9e3578739508a442c668eaf48c69974ac7de2fa849f6310e19b6e20337c73bd8a6de2e8074f87b8d2a6089f46d3273f87ab75dee613dd350aeb70
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>