diff options
author | Repository mirror & CI <repomirrorci@gentoo.org> | 2021-03-28 10:52:19 +0000 |
---|---|---|
committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2021-03-28 10:52:19 +0000 |
commit | 272780c5110d1c4cc0115bf18da14e6eb3ef3e3b (patch) | |
tree | a0ca07613185053f642e4e4e683afd8927e3c9da | |
parent | 2021-03-28 10:35:41 UTC (diff) | |
parent | dev-lisp/gcl: dont regenerate dwdoc.pdf (diff) | |
download | gentoo-272780c5110d1c4cc0115bf18da14e6eb3ef3e3b.tar.gz gentoo-272780c5110d1c4cc0115bf18da14e6eb3ef3e3b.tar.bz2 gentoo-272780c5110d1c4cc0115bf18da14e6eb3ef3e3b.zip |
Merge updates from master
-rw-r--r-- | dev-lisp/gcl/gcl-2.6.13_pre99.ebuild | 1 | ||||
-rw-r--r-- | dev-python/snakeoil/Manifest | 1 | ||||
-rw-r--r-- | dev-python/snakeoil/snakeoil-0.9.1.ebuild | 25 | ||||
-rw-r--r-- | eclass/distutils-r1.eclass | 7 | ||||
-rw-r--r-- | eclass/python-any-r1.eclass | 7 | ||||
-rw-r--r-- | eclass/python-r1.eclass | 12 | ||||
-rw-r--r-- | eclass/python-single-r1.eclass | 4 | ||||
-rw-r--r-- | eclass/python-utils-r1.eclass | 23 |
8 files changed, 38 insertions, 42 deletions
diff --git a/dev-lisp/gcl/gcl-2.6.13_pre99.ebuild b/dev-lisp/gcl/gcl-2.6.13_pre99.ebuild index dec3a617910c..1a3e02b3e1fd 100644 --- a/dev-lisp/gcl/gcl-2.6.13_pre99.ebuild +++ b/dev-lisp/gcl/gcl-2.6.13_pre99.ebuild @@ -51,7 +51,6 @@ src_configure() { src_compile() { emake -j1 - use athena && pdflatex xgcl-2/dwdoc.tex } src_test() { diff --git a/dev-python/snakeoil/Manifest b/dev-python/snakeoil/Manifest index 8c86d6b67a9c..3d9f741ba394 100644 --- a/dev-python/snakeoil/Manifest +++ b/dev-python/snakeoil/Manifest @@ -1,4 +1,3 @@ -DIST snakeoil-0.9.1.tar.gz 271045 BLAKE2B 74c45d38d294e06940d4a339e6d6c6e66d84b7fd174b4d79a9716262bc1902d47dfed1751b44183f9119ccb3bd50e11700951d15070a15b94d6a7b20f77c5919 SHA512 94d8baed4baaab8c3cb3631fed4e6cced8fa32c953bba2ec2afd0cc99eb9b526dc58e5e9efb402513b0416cda21a0811b14a2a98044fd1d5bb7f6f2b349db24a DIST snakeoil-0.9.3.tar.gz 270471 BLAKE2B 2f8c3737c560a756e6fd5450c900d1fbe49b0200e1c4427a312f90d14da22e2e403a710bdc768446b3b03166853d6a0965507550ee837556d273817a7f634282 SHA512 18aa892fe6d225823593f8199f029a1a866052b1cebdf4f77dc57916e6a2b15982b6729d3004a8616eedddee5e3bc260d2c5b2f78170c4d008d1f2e46cc26ce1 DIST snakeoil-0.9.4.tar.gz 271395 BLAKE2B 6aeaf03e2c2f48a85ce926f1b8e0b86271c608695694358cb6eea56b962c0731b909c16bf37844031e986fc7ebca3a7c4cae5cb94ee55122584bf83981d8c4b6 SHA512 853c3fef517e7161a61ae0622fed82ceffdc110cad4ef7d5e2166728f506228d0802018dd351956f1525f0d27a4150e9885b2cc7c71788950261f72d8d7c4cc9 DIST snakeoil-0.9.5.tar.gz 266086 BLAKE2B 635d2d821e47a92a668b2e95364d6587f0f74c21438356e708d6b16ed6c027df39a28f73d261d8ae06eb32de471124cd5ba5df0fc899f59dad5f7d2363391e00 SHA512 0762d90932bdf995160b3410e224660dae2cce327cdc30d5093ca9e3d16d3e910f88e409a87d2d7da211b850f7d0b7d9c70f053462dd9a651e4202b8ca018105 diff --git a/dev-python/snakeoil/snakeoil-0.9.1.ebuild b/dev-python/snakeoil/snakeoil-0.9.1.ebuild deleted file mode 100644 index aaac1cdf615e..000000000000 --- a/dev-python/snakeoil/snakeoil-0.9.1.ebuild +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{8..9} ) -PYTHON_REQ_USE="threads(+)" -inherit distutils-r1 - -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/pkgcore/snakeoil.git" - inherit git-r3 -else - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc ~x86 ~x64-macos" - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -fi - -DESCRIPTION="misc common functionality and useful optimizations" -HOMEPAGE="https://github.com/pkgcore/snakeoil" - -LICENSE="BSD BSD-2 MIT" -SLOT="0" - -[[ ${PV} == 9999 ]] && BDEPEND+=" dev-python/cython[${PYTHON_USEDEP}]" - -distutils_enable_tests pytest diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 655a33e0d208..24c5653aad06 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -33,8 +33,8 @@ # functions, you should consider calling the defaults (and especially # distutils-r1_python_prepare_all). # -# Please note that distutils-r1 sets RDEPEND and DEPEND unconditionally -# for you. +# Please note that distutils-r1 sets RDEPEND and BDEPEND (or DEPEND +# in earlier EAPIs) unconditionally for you. # # Also, please note that distutils-r1 will always inherit python-r1 # as well. Thus, all the variables defined and documented there are @@ -426,6 +426,7 @@ distutils_enable_tests() { setup.py) ;; unittest) + test_pkg="dev-python/unittest-or-fail" ;; *) die "${FUNCNAME}: unsupported argument: ${1}" @@ -830,7 +831,7 @@ distutils-r1_python_test() { nonfatal esetup.py test --verbose ;; unittest) - "${EPYTHON}" -m unittest discover -v + eunittest ;; *) die "Mis-synced test runner between ${FUNCNAME} and distutils_enable_testing" diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass index 313fe6b40df0..3a80fa35c577 100644 --- a/eclass/python-any-r1.eclass +++ b/eclass/python-any-r1.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: python-any-r1.eclass @@ -116,8 +116,7 @@ EXPORT_FUNCTIONS pkg_setup # # Example use: # @CODE -# DEPEND="${RDEPEND} -# ${PYTHON_DEPS}" +# BDEPEND="${PYTHON_DEPS}" # @CODE # # Example value: @@ -222,7 +221,7 @@ if [[ ! ${_PYTHON_ANY_R1} ]]; then # # Example use: # @CODE -# DEPEND="$(python_gen_any_dep ' +# BDEPEND="$(python_gen_any_dep ' # dev-python/foo[${PYTHON_SINGLE_USEDEP}] # || ( dev-python/bar[${PYTHON_USEDEP}] # dev-python/baz[${PYTHON_USEDEP}] )')" diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index 5e9dafe63d85..f7beb3006499 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -121,7 +121,7 @@ fi # @CODE # RDEPEND="${PYTHON_DEPS} # dev-foo/mydep" -# DEPEND="${RDEPEND}" +# BDEPEND="${PYTHON_DEPS}" # @CODE # # Example value: @@ -357,12 +357,12 @@ _python_gen_usedep() { # Example: # @CODE # PYTHON_COMPAT=( python{2_7,3_4} ) -# DEPEND="doc? ( dev-python/epydoc[$(python_gen_usedep 'python2*')] )" +# BDEPEND="doc? ( dev-python/epydoc[$(python_gen_usedep 'python2*')] )" # @CODE # # It will cause the dependency to look like: # @CODE -# DEPEND="doc? ( dev-python/epydoc[python_targets_python2_7?] )" +# BDEPEND="doc? ( dev-python/epydoc[python_targets_python2_7?] )" # @CODE python_gen_usedep() { debug-print-function ${FUNCNAME} "${@}" @@ -548,7 +548,7 @@ python_gen_impl_dep() { # # Example use: # @CODE -# DEPEND="$(python_gen_any_dep ' +# BDEPEND="$(python_gen_any_dep ' # dev-python/foo[${PYTHON_SINGLE_USEDEP}] # || ( dev-python/bar[${PYTHON_USEDEP}] # dev-python/baz[${PYTHON_USEDEP}] )' -2)" @@ -739,7 +739,7 @@ python_foreach_impl() { # # Pure mode example: # @CODE -# DEPEND="doc? ( dev-python/epydoc[$(python_gen_usedep 'python2*')] )" +# BDEPEND="doc? ( dev-python/epydoc[$(python_gen_usedep 'python2*')] )" # REQUIRED_USE="doc? ( $(python_gen_useflags 'python2*') )" # # src_compile() { @@ -753,7 +753,7 @@ python_foreach_impl() { # # Any-of mode example: # @CODE -# DEPEND="doc? ( +# BDEPEND="doc? ( # $(python_gen_any_dep 'dev-python/epydoc[${PYTHON_USEDEP}]' 'python2*') )" # # python_check_deps() { diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass index dc032379cd84..fafd11021dd0 100644 --- a/eclass/python-single-r1.eclass +++ b/eclass/python-single-r1.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: python-single-r1.eclass @@ -131,7 +131,7 @@ EXPORT_FUNCTIONS pkg_setup # @CODE # RDEPEND="${PYTHON_DEPS} # dev-foo/mydep" -# DEPEND="${RDEPEND}" +# BDEPEND="${PYTHON_DEPS}" # @CODE # # Example value: diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 3036148b8383..d0bfb7819059 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -1299,5 +1299,28 @@ epytest() { return ${?} } +# @FUNCTION: eunittest +# @USAGE: [<args>...] +# @DESCRIPTION: +# Run unit tests using dev-python/unittest-or-fail, passing the standard +# set of options, followed by user-specified options. +# +# This command dies on failure and respects nonfatal in EAPIs supporting +# nonfatal die. +eunittest() { + debug-print-function ${FUNCNAME} "${@}" + + [[ -n ${EPYTHON} ]] || die "EPYTHON unset, invalid call context" + + local die_args=() + [[ ${EAPI} != [45] ]] && die_args+=( -n ) + + set -- "${EPYTHON}" -m unittest_or_fail discover -v "${@}" + + echo "${@}" >&2 + "${@}" || die "${die_args[@]}" "Tests failed with ${EPYTHON}" + return ${?} +} + _PYTHON_UTILS_R1=1 fi |