mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 10:38:07 -07:00
dev-python/jaraco-classes: bump to 1.5, add PyPy3, Python 3.6.
Remove useless DEPEND on pytest-runner, add RDEPEND on dev-python/namespace-jaraco. Package-Manager: Portage-2.3.40, Repoman-2.3.9 Closes: https://github.com/gentoo/gentoo/pull/8786
This commit is contained in:
committed by
Patrice Clement
parent
0fa13bc97f
commit
044c332816
@@ -1,2 +1,3 @@
|
||||
DIST jaraco.classes-1.3.tar.gz 4095 BLAKE2B eb53b494f528ff1aac1fae550ac0460cbddcfe2e4e599139c6800a589150015db7dfe5e8ff06ba1963e3a799bbd53588231c79d64ee4160335885b0c33a1e9b2 SHA512 abd60444066b39894f21032004010eea9b3b56718eaadffa1c66fc7d66d281d34d0ae76445dc6174e0a07e0d4dfca97e181048a4eea47ee20dae1d902265c32a
|
||||
DIST jaraco.classes-1.4.tar.gz 5171 BLAKE2B 193333a9a543328b6f781888ba7a6ae3cf0b1ae7cab078c9da65a1ed26cc71164aa06a31f2495b62c7d7a388b6fc075e97c7af58f7d67bc0ecc1785f9c7056dd SHA512 d434b470424c104f91e9a4a5e3a1f2109b919a35edf45540ad1ef8600f0b10864f32aefb411d747e13b5d99ba06601ea7abe5032e24e5dc6b25254b4e68f8a89
|
||||
DIST jaraco.classes-1.5.tar.gz 6710 BLAKE2B 884e756c7bff272a0b35d9ef8cd30538eba793e6d838b7bd409a59fde9539776906aeb95a456f7095178ce0623e20634fe1a09a8f3515d4b661bf702480cd934 SHA512 8fe3d40863424547e5396fd6a2b4ef3f27a92185ca82206bb88de2716419a9c2dc917fc945c732d5dab1a1795727a12014e0bbaceee7834896351de05491f99c
|
||||
|
||||
58
dev-python/jaraco-classes/jaraco-classes-1.5.ebuild
Normal file
58
dev-python/jaraco-classes/jaraco-classes-1.5.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
# Tests fail with pypy
|
||||
PYTHON_COMPAT=( pypy3 python{2_7,3_{4,5,6}} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="${PN/-/.}"
|
||||
DESCRIPTION="Classes used by other projects by developer jaraco"
|
||||
HOMEPAGE="https://github.com/jaraco/jaraco.classes"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/namespace-jaraco[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
|
||||
doc? (
|
||||
>=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/rst-linker[${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() {
|
||||
# Override pytest options to skip flake8
|
||||
PYTHONPATH=. py.test --override-ini="addopts=--doctest-modules" \
|
||||
|| die "tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
find "${ED}" -name '*.pth' -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user