public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/tests/
Date: Fri,  3 Nov 2023 19:00:22 +0000 (UTC)	[thread overview]
Message-ID: <1699037980.0743271002be88d53b37fa48da0de291be2fdfe1.mgorny@gentoo> (raw)

commit:     0743271002be88d53b37fa48da0de291be2fdfe1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  3 18:59:40 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov  3 18:59:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07432710

eclass/tests: Remove obsolete/broken distutils-r1 tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/tests/distutils-r1.sh        | 142 ------------------------------------
 eclass/tests/distutils-r1_single.sh | 122 -------------------------------
 2 files changed, 264 deletions(-)

diff --git a/eclass/tests/distutils-r1.sh b/eclass/tests/distutils-r1.sh
deleted file mode 100755
index c895af3fc9a0..000000000000
--- a/eclass/tests/distutils-r1.sh
+++ /dev/null
@@ -1,142 +0,0 @@
-#!/bin/bash
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_8 )
-source tests-common.sh || exit
-
-test-phase_name_free() {
-	local ph=${1}
-
-	if declare -f "${ph}"; then
-		die "${ph} function declared while name reserved for phase!"
-	fi
-	if declare -f "${ph}_all"; then
-		die "${ph}_all function declared while name reserved for phase!"
-	fi
-}
-
-test-distutils_enable_tests() {
-	local runner=${1}
-	local exp_IUSE=${2}
-	local exp_RESTRICT=${3}
-	local exp_BDEPEND=${4}
-
-	local IUSE=${IUSE}
-	local RESTRICT=${RESTRICT}
-	local BDEPEND=${BDEPEND}
-
-	tbegin "${runner}"
-
-	distutils_enable_tests "${runner}"
-
-	local ret var val
-	for var in IUSE RESTRICT BDEPEND; do
-		local exp_var=exp_${var}
-		# (this normalizes whitespace)
-		read -d $'\0' -r -a val <<<"${!var}"
-		val=${val[*]}
-		if [[ ${val} != "${!exp_var}" ]]; then
-			eindent
-			eerror "${var} expected: ${!exp_var}"
-			eerror "${var}   actual: ${val}"
-			eoutdent
-			ret=1
-			tret=1
-		fi
-	done
-
-	tend ${ret}
-}
-
-test-DISTUTILS_USE_SETUPTOOLS() {
-	local DISTUTILS_USE_SETUPTOOLS=${1}
-	local exp_BDEPEND=${2}
-	local exp_RDEPEND=${3}
-
-	tbegin "${1}"
-
-	local BDEPEND=
-	local RDEPEND=
-	unset _DISTUTILS_R1_ECLASS
-	inherit distutils-r1
-
-	local ret var val
-	for var in BDEPEND RDEPEND; do
-		local exp_var=exp_${var}
-		# (this normalizes whitespace)
-		read -d $'\0' -r -a val <<<"${!var}"
-		val=${val[*]}
-		if [[ ${val} != "${!exp_var}" ]]; then
-			eindent
-			eerror "${var} expected: ${!exp_var}"
-			eerror "${var}   actual: ${val}"
-			eoutdent
-			ret=1
-			tret=1
-		fi
-	done
-
-	tend ${ret}
-}
-
-DISTUTILS_USE_SETUPTOOLS=no
-inherit distutils-r1
-
-tbegin "sane function names"
-
-test-phase_name_free python_prepare
-test-phase_name_free python_configure
-test-phase_name_free python_compile
-test-phase_name_free python_test
-test-phase_name_free python_install
-
-tend
-
-einfo distutils_enable_tests
-eindent
-BASE_IUSE="python_targets_python3_8"
-BASE_DEPS="python_targets_python3_8? ( >=dev-lang/python-3.8.12_p1-r1:3.8 )"
-TEST_RESTRICT="!test? ( test )"
-
-einfo "empty RDEPEND"
-eindent
-RDEPEND=""
-test-distutils_enable_tests pytest \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( >=dev-python/pytest-4.5.0[${PYTHON_USEDEP}] )"
-test-distutils_enable_tests nose \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( >=dev-python/nose-1.3.7-r4[${PYTHON_USEDEP}] )"
-test-distutils_enable_tests unittest \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( dev-python/unittest-or-fail[${PYTHON_USEDEP}] )"
-test-distutils_enable_tests setup.py \
-	"${BASE_IUSE}" "" "${BASE_DEPS}"
-eoutdent
-
-einfo "non-empty RDEPEND"
-eindent
-BASE_RDEPEND="dev-python/foo[${PYTHON_USEDEP}]"
-RDEPEND=${BASE_RDEPEND}
-test-distutils_enable_tests pytest \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( ${BASE_RDEPEND} >=dev-python/pytest-4.5.0[${PYTHON_USEDEP}] )"
-test-distutils_enable_tests nose \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( ${BASE_RDEPEND} >=dev-python/nose-1.3.7-r4[${PYTHON_USEDEP}] )"
-test-distutils_enable_tests unittest \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( ${BASE_RDEPEND} dev-python/unittest-or-fail[${PYTHON_USEDEP}] )"
-test-distutils_enable_tests setup.py \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( ${BASE_RDEPEND} )"
-eoutdent
-
-eoutdent
-
-einfo DISTUTILS_USE_SETUPTOOLS
-eindent
-SETUPTOOLS_DEP=">=dev-python/setuptools-42.0.2[python_targets_python3_8(-)?]"
-test-DISTUTILS_USE_SETUPTOOLS no "${BASE_DEPS}" "${BASE_DEPS}"
-test-DISTUTILS_USE_SETUPTOOLS bdepend "${BASE_DEPS} ${SETUPTOOLS_DEP}" "${BASE_DEPS}"
-test-DISTUTILS_USE_SETUPTOOLS rdepend "${BASE_DEPS} ${SETUPTOOLS_DEP}" "${BASE_DEPS} ${SETUPTOOLS_DEP}"
-test-DISTUTILS_USE_SETUPTOOLS pyproject.toml "${BASE_DEPS} >=dev-python/pyproject2setuppy-22[python_targets_python3_8(-)?]" "${BASE_DEPS}"
-test-DISTUTILS_USE_SETUPTOOLS manual "${BASE_DEPS}" "${BASE_DEPS}"
-eoutdent
-
-texit

diff --git a/eclass/tests/distutils-r1_single.sh b/eclass/tests/distutils-r1_single.sh
deleted file mode 100755
index 2035f1454c60..000000000000
--- a/eclass/tests/distutils-r1_single.sh
+++ /dev/null
@@ -1,122 +0,0 @@
-#!/bin/bash
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_8 )
-source tests-common.sh || exit
-
-test-distutils_enable_tests() {
-	local runner=${1}
-	local exp_IUSE=${2}
-	local exp_RESTRICT=${3}
-	local exp_BDEPEND=${4}
-
-	local IUSE=${IUSE}
-	local RESTRICT=${RESTRICT}
-	local BDEPEND=${BDEPEND}
-
-	tbegin "${runner}"
-
-	distutils_enable_tests "${runner}"
-
-	local ret var
-	for var in IUSE RESTRICT BDEPEND; do
-		local exp_var=exp_${var}
-		# (this normalizes whitespace)
-		read -d $'\0' -r -a val <<<"${!var}"
-		val=${val[*]}
-		if [[ ${val} != "${!exp_var}" ]]; then
-			eindent
-			eerror "${var} expected: ${!exp_var}"
-			eerror "${var}   actual: ${val}"
-			eoutdent
-			ret=1
-			tret=1
-		fi
-	done
-
-	tend ${ret}
-}
-
-test-DISTUTILS_USE_SETUPTOOLS() {
-	local DISTUTILS_USE_SETUPTOOLS=${1}
-	local exp_BDEPEND=${2}
-	local exp_RDEPEND=${3}
-
-	tbegin "${1}"
-
-	local BDEPEND=
-	local RDEPEND=
-	unset _DISTUTILS_R1_ECLASS
-	inherit distutils-r1
-
-	local ret var val
-	for var in BDEPEND RDEPEND; do
-		local exp_var=exp_${var}
-		# (this normalizes whitespace)
-		read -d $'\0' -r -a val <<<"${!var}"
-		val=${val[*]}
-		if [[ ${val} != "${!exp_var}" ]]; then
-			eindent
-			eerror "${var} expected: ${!exp_var}"
-			eerror "${var}   actual: ${val}"
-			eoutdent
-			ret=1
-			tret=1
-		fi
-	done
-
-	tend ${ret}
-}
-
-DISTUTILS_USE_SETUPTOOLS=no
-DISTUTILS_SINGLE_IMPL=1
-inherit distutils-r1
-
-einfo distutils_enable_tests
-eindent
-BASE_IUSE="+python_single_target_python3_8"
-BASE_DEPS="python_single_target_python3_8? ( >=dev-lang/python-3.8.12_p1-r1:3.8 )"
-TEST_RESTRICT="!test? ( test )"
-
-einfo "empty RDEPEND"
-eindent
-RDEPEND=""
-test-distutils_enable_tests pytest \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( python_single_target_python3_8? ( >=dev-python/pytest-4.5.0[python_targets_python3_8(-)] ) )"
-test-distutils_enable_tests nose \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( python_single_target_python3_8? ( >=dev-python/nose-1.3.7-r4[python_targets_python3_8(-)] ) )"
-test-distutils_enable_tests unittest \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( python_single_target_python3_8? ( dev-python/unittest-or-fail[python_targets_python3_8(-)] ) )"
-test-distutils_enable_tests setup.py \
-	"${BASE_IUSE}" "" "${BASE_DEPS}"
-eoutdent
-
-einfo "non-empty RDEPEND"
-eindent
-BASE_RDEPEND="dev-python/foo[${PYTHON_SINGLE_USEDEP}]"
-RDEPEND=${BASE_RDEPEND}
-test-distutils_enable_tests pytest \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( ${BASE_RDEPEND} python_single_target_python3_8? ( >=dev-python/pytest-4.5.0[python_targets_python3_8(-)] ) )"
-test-distutils_enable_tests nose \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( ${BASE_RDEPEND} python_single_target_python3_8? ( >=dev-python/nose-1.3.7-r4[python_targets_python3_8(-)] ) )"
-test-distutils_enable_tests unittest \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( ${BASE_RDEPEND} python_single_target_python3_8? ( dev-python/unittest-or-fail[python_targets_python3_8(-)] ) )"
-test-distutils_enable_tests setup.py \
-	"${BASE_IUSE} test" "${TEST_RESTRICT}" "${BASE_DEPS} test? ( ${BASE_RDEPEND} )"
-eoutdent
-
-eoutdent
-
-einfo DISTUTILS_USE_SETUPTOOLS
-eindent
-SETUPTOOLS_DEP="python_single_target_python3_8? ( >=dev-python/setuptools-42.0.2[python_targets_python3_8(-)] )"
-test-DISTUTILS_USE_SETUPTOOLS no "${BASE_DEPS}" "${BASE_DEPS}"
-test-DISTUTILS_USE_SETUPTOOLS bdepend "${BASE_DEPS} ${SETUPTOOLS_DEP}" "${BASE_DEPS}"
-test-DISTUTILS_USE_SETUPTOOLS rdepend "${BASE_DEPS} ${SETUPTOOLS_DEP}" "${BASE_DEPS} ${SETUPTOOLS_DEP}"
-test-DISTUTILS_USE_SETUPTOOLS pyproject.toml "${BASE_DEPS} python_single_target_python3_8? ( >=dev-python/pyproject2setuppy-22[python_targets_python3_8(-)] )" "${BASE_DEPS}"
-test-DISTUTILS_USE_SETUPTOOLS manual "${BASE_DEPS}" "${BASE_DEPS}"
-eoutdent
-
-texit


             reply	other threads:[~2023-11-03 19:00 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-03 19:00 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-19  4:13 [gentoo-commits] repo/gentoo:master commit in: eclass/tests/ Sam James
2024-09-18 15:51 Sam James
2024-09-18 15:51 Sam James
2024-08-07  8:58 Andrew Ammerlaan
2024-08-07  8:58 Andrew Ammerlaan
2024-08-06  8:47 Michał Górny
2024-08-06  8:47 Michał Górny
2024-07-29 17:02 Michał Górny
2024-07-28  9:32 Ulrich Müller
2024-06-13 19:53 Ulrich Müller
2024-06-13 19:53 Ulrich Müller
2024-06-13 18:35 Ulrich Müller
2024-06-13 18:35 Ulrich Müller
2024-06-12 16:47 Ulrich Müller
2024-06-12 15:35 Michał Górny
2024-06-12 15:32 Ulrich Müller
2024-06-12  9:47 Ulrich Müller
2024-05-25  8:24 Ulrich Müller
2023-09-14  5:30 Michał Górny
2023-06-18 14:57 Michał Górny
2023-06-17 10:10 Michał Górny
2023-06-15 12:19 Michał Górny
2023-05-23  4:36 Michał Górny
2023-05-01 13:43 Sam James
2023-04-20 23:14 Sam James
2022-12-14 10:18 Michał Górny
2022-10-28  8:24 Michał Górny
2022-10-15 17:35 Mike Gilbert
2022-10-10 20:52 Michał Górny
2022-10-01 17:19 Michał Górny
2022-10-01 17:19 Michał Górny
2022-09-27 20:28 Michał Górny
2022-05-09 20:33 Michał Górny
2022-05-09 20:33 Michał Górny
2022-04-21 15:19 Michał Górny
2022-04-19 21:32 Mike Gilbert
2022-02-14 21:13 Mike Gilbert
2022-02-14 17:25 Mike Gilbert
2021-12-31  9:10 Michał Górny
2021-12-31  9:10 Michał Górny
2021-12-31  9:10 Michał Górny
2021-06-22 20:44 David Seifert
2021-05-12 20:55 Mike Gilbert
2021-05-12 19:39 Michał Górny
2021-05-05 18:20 Michał Górny
2021-03-28 11:48 Michał Górny
2020-11-23 18:11 Ulrich Müller
2020-07-02  8:29 Michał Górny
2020-07-02  8:29 Michał Górny
2020-07-02  8:29 Michał Górny
2020-07-02  8:29 Michał Górny
2020-06-19 11:52 Michał Górny
2020-05-28 11:41 Michał Górny
2020-05-10  1:02 Sergei Trofimovich
2020-04-30  9:45 Michał Górny
2020-04-19 16:47 Michał Górny
2020-03-30 13:11 Michał Górny
2020-03-30 11:57 Michał Górny
2020-03-27 23:54 Sergei Trofimovich
2020-02-27 16:29 Michał Górny
2020-02-09 18:09 Michał Górny
2019-12-23 11:47 Sergei Trofimovich
2019-12-13 22:37 Sergei Trofimovich
2019-12-07 16:59 Michał Górny
2019-12-01 11:29 Sergei Trofimovich
2019-11-24 15:09 Michał Górny
2019-11-20 20:30 Sergei Trofimovich
2019-11-20 19:51 Sergei Trofimovich
2019-11-20  9:23 Michał Górny
2019-11-20  9:16 Michał Górny
2019-11-20  9:15 Michał Górny
2019-11-20  9:00 Michał Górny
2019-11-20  9:00 Michał Górny
2019-11-20  9:00 Michał Górny
2019-11-20  8:46 Michał Górny
2019-11-20  8:46 Michał Górny
2019-11-20  8:46 Michał Górny
2019-11-20  7:47 Michał Górny
2019-11-06 22:44 Sergei Trofimovich
2018-12-09 20:32 Sergei Trofimovich
2018-12-09 20:32 Sergei Trofimovich
2018-12-09 20:32 Sergei Trofimovich
2017-09-19 13:15 Michał Górny
2017-09-14 19:05 Mike Gilbert
2017-08-08 19:42 Michał Górny
2017-04-14 16:28 Michał Górny
2017-03-08  7:35 Michał Górny
2016-06-27  5:58 Michał Górny
2016-01-08  5:14 Michał Górny
2015-12-09 20:42 Michał Górny
2015-11-21 19:58 Ulrich Müller
2015-11-12 16:03 Michał Górny
2015-11-11 10:27 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1699037980.0743271002be88d53b37fa48da0de291be2fdfe1.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox