From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D51BA1382C5 for ; Fri, 4 Jun 2021 14:41:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3C15E0877; Fri, 4 Jun 2021 14:41:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AB353E0877 for ; Fri, 4 Jun 2021 14:41:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 718053411ED for ; Fri, 4 Jun 2021 14:40:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A8A8D7A1 for ; Fri, 4 Jun 2021 14:40:57 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1622817652.19463e89b69204786b0d03b21df28113f4391cdb.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/wtforms/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/wtforms/wtforms-2.3.3.ebuild X-VCS-Directories: dev-python/wtforms/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 19463e89b69204786b0d03b21df28113f4391cdb X-VCS-Branch: master Date: Fri, 4 Jun 2021 14:40:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 621c386b-0dfd-4e85-9c71-6f09257b1272 X-Archives-Hash: 6845081d529f247cea402bbf90e938f2 commit: 19463e89b69204786b0d03b21df28113f4391cdb Author: Michał Górny gentoo org> AuthorDate: Fri Jun 4 14:34:54 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jun 4 14:40:52 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19463e89 dev-python/wtforms: Enable py3.10, fix tests Signed-off-by: Michał Górny gentoo.org> dev-python/wtforms/wtforms-2.3.3.ebuild | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/dev-python/wtforms/wtforms-2.3.3.ebuild b/dev-python/wtforms/wtforms-2.3.3.ebuild index 2f4d412cdd5..feb41b79791 100644 --- a/dev-python/wtforms/wtforms-2.3.3.ebuild +++ b/dev-python/wtforms/wtforms-2.3.3.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( pypy3 python3_{7..9} ) +PYTHON_COMPAT=( pypy3 python3_{8..10} ) inherit distutils-r1 MY_PN="WTForms" @@ -31,19 +31,30 @@ BDEPEND=" ) " -distutils_enable_tests unittest +distutils_enable_tests pytest python_prepare_all() { - # Extension-tests are written for an older version of Django - # Disable pep8 even when it is installed - sed \ - -e "s|'ext_django.tests', ||" \ - -e "/import pep8/d" \ - -e "s|has_pep8 = True|has_pep8 = False|" \ - -i tests/runtests.py || die + # use pytest instead of ugly custom test runner + cat >> setup.cfg <<-EOF || die + [tool:pytest] + python_files = *.py + EOF + distutils-r1_python_prepare_all } python_test() { - "${EPYTHON}" tests/runtests.py -v || die + local ignore=( + # requires gaetest_common... also upstream doesn't run it at all + tests/ext_appengine + # requires old django; also extensions are deprecated anyway + tests/ext_django + ) + local deselect=( + # incompatible with sqlalchemy-1.4 + tests/ext_sqlalchemy.py::QuerySelectFieldTest + tests/ext_sqlalchemy.py::QuerySelectMultipleFieldTest + ) + + epytest tests ${ignore[@]/#/--ignore } ${deselect[@]/#/--deselect } }