dev-python/hacking: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-09-26 17:53:23 +02:00
parent 0a09d7b96b
commit 1330e1d70f
4 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST hacking-3.0.1.tar.gz 52736 BLAKE2B 20d328dd78c4e115a3ccbe0e886be80d6b0f30d8cbf6bb02a93f41637e5f7e1c82174c8c9054cb1a354fa6c58ae2c0b5dd2491e841d6d8b0cb02b12560b0f8a0 SHA512 1ad6bcf7099f244dd96709d993939f979b461e4d9661adab071b7861243cb75cde9d33343165b5e636e7f3526755f717b891763f5af44aeabad49fa0972df391
DIST hacking-4.1.0.tar.gz 61910 BLAKE2B 95ced5b2fbafbb890478b5ef598a836520b4d1a3f1f2a0e708aa3f3135f394aab9e1ca8eaafa9d2f9f8dfcd1043d925b0232228234021ac89d2882ad6c7918a5 SHA512 44741548b5031777b0a508255129893da63a076615dc4245fdcb2368711be0ff6e16702c12c75a7f2c6b13257e2257c58e6e95dfad6da6640ff077fbf2b507db

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
EPYTEST_DESELECT=( hacking/tests/test_doctest.py::HackingTestCase::test_flake8 )
PYTHON_COMPAT=( python3_8 )
inherit distutils-r1
DESCRIPTION="hacking is a set of flake8 plugins that test and enforce the OpenStack StyleGuide"
HOMEPAGE="
https://github.com/openstack-dev/hacking
https://pypi.org/project/hacking
"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64"
RDEPEND="
>=dev-python/flake8-3.6.0[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
>=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
test? (
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
>=dev-python/subunit-1.0.0[${PYTHON_USEDEP}]
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
>=dev-python/eventlet-0.18.2[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest

View File

@@ -0,0 +1,38 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_8 )
inherit distutils-r1
DESCRIPTION="hacking is a set of flake8 plugins that test and enforce the OpenStack StyleGuide"
HOMEPAGE="
https://github.com/openstack-dev/hacking
https://pypi.org/project/hacking
"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64"
RDEPEND="
>=dev-python/flake8-3.8.0[${PYTHON_USEDEP}]
<dev-python/flake8-3.9.0[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
>=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
test? (
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
>=dev-python/subunit-1.0.0[${PYTHON_USEDEP}]
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
>=dev-python/ddt-1.2.0[${PYTHON_USEDEP}]
>=dev-python/eventlet-0.18.2[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<description>comaintainers welcome</description>
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<longdescription lang="en">
Hacking pins its dependencies, as a new release of some dependency can break hacking based gating jobs. This is because new versions of dependencies can introduce new rules, or make existing rules stricter. </longdescription>
<upstream>
<remote-id type="pypi">hacking</remote-id>
<remote-id type="github">openstack-dev/hacking</remote-id>
</upstream>
</pkgmetadata>