From: Louis Sautier Date: Wed, 6 Jun 2018 21:16:30 +0000 (+0200) Subject: dev-python/jaraco-packaging: bump to 5.1 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6e0db6f8464a58f7a3805210e33429fc36a93b61;p=gentoo.git dev-python/jaraco-packaging: bump to 5.1 Remove useless pytest-runner DEPEND, add RDEPEND on namespace-jaraco. Package-Manager: Portage-2.3.38, Repoman-2.3.9 Closes: https://github.com/gentoo/gentoo/pull/8740 --- diff --git a/dev-python/jaraco-packaging/Manifest b/dev-python/jaraco-packaging/Manifest index 46f8511a096c..af4c081ea473 100644 --- a/dev-python/jaraco-packaging/Manifest +++ b/dev-python/jaraco-packaging/Manifest @@ -1 +1,2 @@ DIST jaraco.packaging-4.1.tar.gz 8820 BLAKE2B 43c14e12439d161f9a42005dcaed4d6945fa35ec3498bed81d2e6d10b08b056838dcf92fd6319951dddcfc908c8d33796bd9515aa5e77a04c02298cdcfd240ba SHA512 381ac1ba3a8eeea1235e719d98b61e38399d3fea1310732b0e2f921a3d46544efbb12c23c03bfa3ecfa07697458cb8930ca5156df7b411509c7b1da0b673d7cd +DIST jaraco.packaging-5.1.tar.gz 10393 BLAKE2B ddef0ea4006b1a114d81238d5182c03cc50186452b326ef9a02f1a2e745bc731fc6969475a306b25a22d6daec5951e8d11cacd61d519e82cb461140e5003813d SHA512 d86cf6fce8037a9a5f2dfe29c7df810376127b3e02d270bfbc11e16bd43c10e0ab76f2739e5cdf904a9e54ca8d7fc3559e51d089ee39b4486c84902b23be530c diff --git a/dev-python/jaraco-packaging/jaraco-packaging-5.1.ebuild b/dev-python/jaraco-packaging/jaraco-packaging-5.1.ebuild new file mode 100644 index 000000000000..1abb409b1789 --- /dev/null +++ b/dev-python/jaraco-packaging/jaraco-packaging-5.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6}} ) + +inherit distutils-r1 + +MY_PN="${PN/-/.}" +DESCRIPTION="Tools to supplement packaging Python releases" +HOMEPAGE="https://github.com/jaraco/jaraco.packaging" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" +IUSE="doc test" + +RDEPEND=" + >=dev-python/six-1.4[${PYTHON_USEDEP}] + dev-python/namespace-jaraco[${PYTHON_USEDEP}] +" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm-1.9[${PYTHON_USEDEP}] + doc? ( + >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ) + test? ( + ${RDEPEND} + >=dev-python/pytest-2.8[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/${MY_PN}-${PV}" + +python_compile_all() { + if use doc; then + cd docs || die + sphinx-build . _build/html || die + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + # Skip one test which requires network access + PYTHONPATH=. py.test -v -k "not test_revived_distribution" \ + || die "tests failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + find "${ED}" -name '*.pth' -delete || die +}