public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PyUtilib/
Date: Thu,  9 Sep 2021 17:29:33 +0000 (UTC)	[thread overview]
Message-ID: <1631208533.9b44e5a66ec5f29c30962600ebf8b4bec6fd05e4.arthurzam@gentoo> (raw)

commit:     9b44e5a66ec5f29c30962600ebf8b4bec6fd05e4
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  9 16:22:00 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Sep  9 17:28:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b44e5a6

dev-python/PyUtilib: enable py3.10, add missing deps

Needed to fix a very small and irrelevant part of tests, which check
exact output of --help output. In python 3.10 it changed the texts,
so those fails are failing now. Fix by using sed and change only for
python 3.10 the expected output.

Closes: https://bugs.gentoo.org/812269
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/PyUtilib/PyUtilib-6.0.0.ebuild | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/dev-python/PyUtilib/PyUtilib-6.0.0.ebuild b/dev-python/PyUtilib/PyUtilib-6.0.0.ebuild
index d0f3e6c3885..fe1c027f23d 100644
--- a/dev-python/PyUtilib/PyUtilib-6.0.0.ebuild
+++ b/dev-python/PyUtilib/PyUtilib-6.0.0.ebuild
@@ -3,8 +3,7 @@
 
 EAPI=7
 
-DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 DISTUTILS_IN_SOURCE_BUILD=1
 
 inherit distutils-r1
@@ -18,6 +17,9 @@ LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
+BDEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
 PATCHES=(
 	"${FILESDIR}/PyUtilib-6.0.0-tests.patch"
 )
@@ -36,5 +38,12 @@ python_test() {
 	local -x PYTHONPATH="${PWD}:${TEST_DIR}/lib" \
 		COLUMNS=80
 
+	if [[ ${EPYTHON} == python3.10 ]]; then
+		# Fix for very small output change of expected output in new version
+		sed -e 's/optional arguments/options/' -i \
+			"${BUILD_DIR}/../doc/workflow/examples/"*.txt \
+			pyutilib/misc/tests/test_config.py || die
+	fi
+
 	eunittest
 }


             reply	other threads:[~2021-09-09 17:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-09 17:29 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-09-09 17:29 [gentoo-commits] repo/gentoo:master commit in: dev-python/PyUtilib/ Arthur Zamarin
2020-12-01 10:32 Michał Górny
2020-05-04  9:45 Michał Górny
2020-02-05 21:21 Michał Górny
2019-12-11  3:05 Patrick McLean
2019-03-26  2:57 Patrick McLean

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=1631208533.9b44e5a66ec5f29c30962600ebf8b4bec6fd05e4.arthurzam@gentoo \
    --to=arthurzam@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