diff options
author | Louis Sautier <sbraz@gentoo.org> | 2019-07-04 01:26:17 +0200 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2019-07-04 01:36:24 +0200 |
commit | 490c9cc150a9617e4b56b705f7a1c4d382642af2 (patch) | |
tree | 4525f611d19346cc1633505daf3ff47e3d7fa9fd /dev-python/jaraco-packaging | |
parent | dev-python/jaraco-logging: make pytest more verbose (diff) | |
download | gentoo-490c9cc150a9617e4b56b705f7a1c4d382642af2.tar.gz gentoo-490c9cc150a9617e4b56b705f7a1c4d382642af2.tar.bz2 gentoo-490c9cc150a9617e4b56b705f7a1c4d382642af2.zip |
dev-python/jaraco-packaging: bump to 6.1, switches to pkgutil
Package-Manager: Portage-2.3.67, Repoman-2.3.16
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'dev-python/jaraco-packaging')
-rw-r--r-- | dev-python/jaraco-packaging/Manifest | 1 | ||||
-rw-r--r-- | dev-python/jaraco-packaging/jaraco-packaging-6.1.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/jaraco-packaging/Manifest b/dev-python/jaraco-packaging/Manifest index 10e3cc5014b8..cd34787ed74d 100644 --- a/dev-python/jaraco-packaging/Manifest +++ b/dev-python/jaraco-packaging/Manifest @@ -2,3 +2,4 @@ DIST jaraco.packaging-4.1.tar.gz 8820 BLAKE2B 43c14e12439d161f9a42005dcaed4d6945 DIST jaraco.packaging-5.1.1.tar.gz 11056 BLAKE2B 6dcca468be3d960674c7de73af48ef78d96c80896a5f09aa99dad35c7dacb90700ce3cd74f59f4a437e26190091e12fb82f3285f30f99a83550a52424cfdebe9 SHA512 96ab954c7fe23632284c0493f749c5fda1368df0a5b60f5dc852aa4c47dadd1743a26772c783f0ec46109f166c9e26811324e2beeadb3e0cfdf9808091107032 DIST jaraco.packaging-5.1.tar.gz 10393 BLAKE2B ddef0ea4006b1a114d81238d5182c03cc50186452b326ef9a02f1a2e745bc731fc6969475a306b25a22d6daec5951e8d11cacd61d519e82cb461140e5003813d SHA512 d86cf6fce8037a9a5f2dfe29c7df810376127b3e02d270bfbc11e16bd43c10e0ab76f2739e5cdf904a9e54ca8d7fc3559e51d089ee39b4486c84902b23be530c DIST jaraco.packaging-5.2.tar.gz 11573 BLAKE2B a119fe4e4de636ef5483cc8d16ca0076533c1cb86c8ec7061c0800aed84532a8689613401530223c0048ccd31d1ead974cc8ba37161b1e5601eb659453962e17 SHA512 5199caccf11952ac68f42462652730afec1aaa907495d65dcf9eb7d5ebcde3ebc8d1f2bf7d51543a764222f09606247a28bfedd9fa987d39934724bf7001c459 +DIST jaraco.packaging-6.1.tar.gz 14736 BLAKE2B 278ab889f236b4a53e6f3978b876952e83777da2e1c096801712bb6833fc85b342fe1c18bb7b1bd78a801c6216dbae74a75a416ef29cd4ec0a7017b8d5bd73bb SHA512 a84c71bd880879f172e6527987e9ffa681da28803112a0195fb21153cb6cd1b3d5c00a6d21c562d7c5542349f335bea4a349fd22662f22dd7bf9bef7b6b0f7d8 diff --git a/dev-python/jaraco-packaging/jaraco-packaging-6.1.ebuild b/dev-python/jaraco-packaging/jaraco-packaging-6.1.ebuild new file mode 100644 index 000000000000..a7e7b8e77797 --- /dev/null +++ b/dev-python/jaraco-packaging/jaraco-packaging-6.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{5,6,7}} ) + +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 ~s390 ~sparc ~x86 ~amd64-fbsd" +IUSE="doc test" + +RDEPEND=" + >=dev-python/six-1.4[${PYTHON_USEDEP}] + >=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}] +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm-1.15.0[${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 + # Override pytest options to skip flake8 + PYTHONPATH=. pytest -vv -k "not test_revived_distribution" \ + --override-ini="addopts=--doctest-modules" \ + || die "tests failed with ${EPYTHON}" +} + +# https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages#File_collisions_between_pkgutil-style_packages +python_install() { + rm "${BUILD_DIR}"/lib/jaraco/__init__.py || die + # note: eclass may default to --skip-build in the future + distutils-r1_python_install --skip-build +} |