mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-24 08:38:07 -07:00
dev-python/python-distutils-extra: bump to 2.39, add py3.5, pypy3
Also update LICENSE, remove useless DISTUTILS_IN_SOURCE_BUILD, use pytest to exclude broken tests, bump to EAPI=6. Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3555
This commit is contained in:
committed by
David Seifert
parent
2a49b11709
commit
d8980181a9
@@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy{,3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Gettext support, themed icons and scrollkeeper-based documentation in distutils"
|
||||
HOMEPAGE="https://launchpad.net/python-distutils-extra"
|
||||
SRC_URI="https://launchpad.net/python-distutils-extra/trunk/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/pytest-runner[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( doc/{README,FAQ} )
|
||||
|
||||
python_prepare_all() {
|
||||
# This line is run when the file is imported
|
||||
# https://bugs.launchpad.net/python-distutils-extra/+bug/1657919
|
||||
sed -i '/^unittest.main()$/d' test/auto.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# 5 tests fail with disabled byte-compilation (they rely on exact
|
||||
# output from python).
|
||||
# The other 4 are broken.
|
||||
py.test -k "not (test_pot_manual or test_pot_auto_explicit or \
|
||||
test_pot_auto or test_modules or test_packages) and not \
|
||||
(test_desktop or test_po or test_policykit or \
|
||||
test_requires_provides)" test/auto.py || \
|
||||
die "tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
docinto examples
|
||||
dodoc doc/{setup.cfg.example,setup.py.example}
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
}
|
||||
Reference in New Issue
Block a user