dev-python/radon: Import version 1.4.2 from main tree

Package-Manager: Portage-2.3.88, Repoman-2.3.20
Manifest-Sign-Key: 00EFD31F1B60D5DBADB831C1C0ECE6960E54475B
Signed-off-by: Nils Freydank <holgersson@posteo.de>
This commit is contained in:
Nils Freydank 2020-02-20 03:58:45 +01:00
parent e54ebd1bba
commit ca5d615f4e
No known key found for this signature in database
GPG Key ID: BC5DC2998AAD2B21
3 changed files with 85 additions and 0 deletions

22
dev-python/radon/Manifest Normal file
View File

@ -0,0 +1,22 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
DIST radon-1.4.2.tar.gz 1645389 BLAKE2B a379a552b5e31c106d2a870a16b3cbe7d70f3565b0964dac5139dd0e6e09c5d945001386de83017d05f4e5bc9f58cf481e9386caf2edac3f1df5a8b187ea0693 SHA512 0e440b36a7edf0ae8002ee27d00cd14a351261972407b4a960d9033712fc0f7f04c1541d7bcf1dc918f2abd46e1bd720f914f3fa3c101f36bf502bd1ce8cb7a1
-----BEGIN PGP SIGNATURE-----
iQKTBAEBCAB9FiEEcg3s4uUa4XE72XWQvF3CmYqtKyEFAl5N7WVfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDcy
MERFQ0UyRTUxQUUxNzEzQkQ5NzU5MEJDNURDMjk5OEFBRDJCMjEACgkQvF3CmYqt
KyFngw/9FQFiVh+RHcgumjykPw2E8/1xbmQ6X5F6BgXJflEI8FTPCBzVpBflDsr0
c9TTODXelCp29K28n7GxVwZrlbFsZ6NPCMZomajEgq3wN9bz0Qbx5hJc1Iv/giHT
jupBqddWcyt4H7sWBd3Is/c7g6dnzA4/4gL6ICJl868N2dfLDOlMTBrBow561+Z1
3fUvmHu3E7Wd4a9B0sWd30oM0YQcjGFbGzi9IJI0rdYYQdGgcRpFH9larld7xHXa
4f6bL2F/4QZilml91Op3nrD5mAKHsmRapEVZyMjko6Y1276gfeIki55tp4WbB1VO
Q3e5Sr5DGz2gCql2Aetg3R2srrr8Qf03UfoEnPqNdlI8GORgWPwxfBXezW+cSjql
CcnNOFmZeIwuoV6SJOTTwiZ1YkEdPN4Ce8qyFLbDs081jbeSMMwo0KCECUyFV6VW
YaMnEjNDThL/Zvs1HZAbupLg9PHXH24btffji3exXmPMwQ9syTYMZk4y2K6akVUk
iIxWMJIYkfwI5CwtCo9RQ5deFu6Vf92Gx23B+EU/l0lkELkwYlr0VSNVcBsuXx0t
D+kxI5xQxsGdFlO4wlTr+OJh0UH2YrDsWTndOy+lt8vOYwlOp5QrkaO7MUJEGX8Y
71QFBAxOfr1nW3M4UsVyAvx9Q5QqoHR+/MX9otkJIw9scIZZNiU=
=QCob
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!--maintainer-needed-->
<upstream>
<remote-id type="pypi">radon</remote-id>
<remote-id type="github">rubik/radon</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,54 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python3_6 )
inherit distutils-r1
DESCRIPTION="Code Metrics in Python"
HOMEPAGE="https://radon.readthedocs.org/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
RESTRICT="!test? ( test )"
CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RCDEPEND="
>=dev-python/colorama-0.3[${PYTHON_USEDEP}]
<dev-python/colorama-0.4[${PYTHON_USEDEP}]
dev-python/flake8-polyfill[${PYTHON_USEDEP}]
>=dev-python/mando-0.3[${PYTHON_USEDEP}]
<dev-python/mando-0.4[${PYTHON_USEDEP}]
"
DEPEND="
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
${CDEPEND}
test? (
${RCDEPEND}
dev-python/nose[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/paramunittest[${PYTHON_USEDEP}]
)
"
RDEPEND="
${CDEPEND}
${RCDEPEND}
"
python_compile_all() {
use doc && emake -C docs html
}
python_test() {
"${PYTHON}" radon/tests/run.py || die "tests failed to run under ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/. )
distutils-r1_python_install_all
}