mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 00:28:09 -07:00
dev-python/jaraco-classes: bump to 2.0, switches to pkgutil
Package-Manager: Portage-2.3.67, Repoman-2.3.16 Signed-off-by: Louis Sautier <sbraz@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST jaraco.classes-1.4.tar.gz 5171 BLAKE2B 193333a9a543328b6f781888ba7a6ae3cf0b1ae7cab078c9da65a1ed26cc71164aa06a31f2495b62c7d7a388b6fc075e97c7af58f7d67bc0ecc1785f9c7056dd SHA512 d434b470424c104f91e9a4a5e3a1f2109b919a35edf45540ad1ef8600f0b10864f32aefb411d747e13b5d99ba06601ea7abe5032e24e5dc6b25254b4e68f8a89
|
||||
DIST jaraco.classes-1.5.tar.gz 6710 BLAKE2B 884e756c7bff272a0b35d9ef8cd30538eba793e6d838b7bd409a59fde9539776906aeb95a456f7095178ce0623e20634fe1a09a8f3515d4b661bf702480cd934 SHA512 8fe3d40863424547e5396fd6a2b4ef3f27a92185ca82206bb88de2716419a9c2dc917fc945c732d5dab1a1795727a12014e0bbaceee7834896351de05491f99c
|
||||
DIST jaraco.classes-2.0.tar.gz 9911 BLAKE2B aa5e5c90f16c9536239ed61e6dccbc426244c98a33a944de32239bd42a0a4944e5df3529cfd525e05cf276a4a4b028edcec734006b549053ac8817032f52b2ea SHA512 83c9a570f951ef6c3708243dce6397cfbfe963db5920550ac807878a69860b34831af5f277f956fd0b327d85462676fd6386a22d6d97c7616e01ca81d7ace694
|
||||
|
||||
60
dev-python/jaraco-classes/jaraco-classes-2.0.ebuild
Normal file
60
dev-python/jaraco-classes/jaraco-classes-2.0.ebuild
Normal file
@@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
# Tests fail with pypy
|
||||
PYTHON_COMPAT=( pypy3 python{2_7,3_{5,6,7}} )
|
||||
|
||||
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 ~arm64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/namespace-jaraco-2[${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/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() {
|
||||
# Avoid ImportMismatchError, override pytest options to skip flake8
|
||||
pytest -vv "${BUILD_DIR}"/lib --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
|
||||
}
|
||||
Reference in New Issue
Block a user