dev-python/radon: Bump to 4.1.0
authorNils Freydank <holgersson@posteo.de>
Wed, 25 Mar 2020 15:54:06 +0000 (16:54 +0100)
committerZac Medico <zmedico@gentoo.org>
Sat, 4 Apr 2020 05:11:42 +0000 (22:11 -0700)
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Nils Freydank <holgersson@posteo.de>
Signed-off-by: Zac Medico <zmedico@gentoo.org>
dev-python/radon/Manifest
dev-python/radon/radon-4.1.0.ebuild [new file with mode: 0644]

index 07d21b75ec4b68cbc5bc60f2f1eb5e6c71c50d22..7db7a34af3cbc7a1a7af915123c995e76cb58b43 100644 (file)
@@ -1 +1,2 @@
 DIST radon-1.4.2.tar.gz 1645389 BLAKE2B a379a552b5e31c106d2a870a16b3cbe7d70f3565b0964dac5139dd0e6e09c5d945001386de83017d05f4e5bc9f58cf481e9386caf2edac3f1df5a8b187ea0693 SHA512 0e440b36a7edf0ae8002ee27d00cd14a351261972407b4a960d9033712fc0f7f04c1541d7bcf1dc918f2abd46e1bd720f914f3fa3c101f36bf502bd1ce8cb7a1
+DIST radon-4.1.0.tar.gz 3672016 BLAKE2B 3da02d62a2be0ab709bbb573372b86971f2eafd98724ea984236710c7f3e3517215bf496d621d42e9e93b747e3b8742f9cf156d3477c5c1cc4ac6098f0008b8f SHA512 c594fb2822a5311f1daf18304c601b4363477bee808f32a0eada6dd28560668a93cfa614196a614240eca436dea48945a29915bd4d347946aa28def0780bc93c
diff --git a/dev-python/radon/radon-4.1.0.ebuild b/dev-python/radon/radon-4.1.0.ebuild
new file mode 100644 (file)
index 0000000..3f38259
--- /dev/null
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+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[${PYTHON_USEDEP}]
+       dev-python/flake8[${PYTHON_USEDEP}]
+       dev-python/flake8-polyfill[${PYTHON_USEDEP}]
+       dev-python/mando[${PYTHON_USEDEP}]
+       dev-python/pytest-mock[${PYTHON_USEDEP}]
+"
+DEPEND="
+       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+       ${CDEPEND}
+       test? (
+               ${RCDEPEND}
+               dev-python/pytest[${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
+}