From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/betamax/
Date: Wed, 27 May 2020 06:10:59 +0000 (UTC) [thread overview]
Message-ID: <1590559848.0ca3926ff0f619130ee0b80c12d440b97cd5f70e.mgorny@gentoo> (raw)
commit: 0ca3926ff0f619130ee0b80c12d440b97cd5f70e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 27 05:43:06 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 27 06:10:48 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ca3926f
dev-python/betamax: Port to py39, fix tests
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/betamax/betamax-0.8.1.ebuild | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/dev-python/betamax/betamax-0.8.1.ebuild b/dev-python/betamax/betamax-0.8.1.ebuild
index 4bdaeeb0128..d4fd29f0af6 100644
--- a/dev-python/betamax/betamax-0.8.1.ebuild
+++ b/dev-python/betamax/betamax-0.8.1.ebuild
@@ -2,7 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 )
inherit distutils-r1
@@ -16,17 +17,28 @@ KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ppc64 ~sparc x86"
IUSE="test"
RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}
- dev-python/setuptools[${PYTHON_USEDEP}]
+DEPEND="
test? (
+ ${RDEPEND}
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
)"
-# Tests require Internet access
-RESTRICT=test
-
PATCHES=(
"${FILESDIR}/betamax-0.8.1-tests.patch"
)
distutils_enable_tests pytest
+
+src_prepare() {
+ rm tests/integration/test_hooks.py || die
+ rm tests/integration/test_placeholders.py || die
+ sed -e 's:test_records:_&:' \
+ -e 's:test_replaces:_&:' \
+ -e 's:test_replays:_&:' \
+ -e 's:test_creates:_&:' \
+ -i tests/integration/test_record_modes.py || die
+ rm tests/integration/test_unicode.py || die
+ rm tests/regression/test_gzip_compression.py || die
+ rm tests/regression/test_requests_2_11_body_matcher.py || die
+ distutils-r1_src_prepare
+}
next reply other threads:[~2020-05-27 6:11 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-27 6:10 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-01 19:01 [gentoo-commits] repo/gentoo:master commit in: dev-python/betamax/ Arthur Zamarin
2025-02-16 20:33 Michał Górny
2024-07-11 20:55 James Le Cuirot
2024-05-17 14:26 Michał Górny
2024-02-24 10:07 Sam James
2024-02-08 18:56 Michał Górny
2023-06-20 5:38 Michał Górny
2023-05-29 12:00 Michał Górny
2023-05-29 12:00 Michał Górny
2023-03-16 3:44 Michał Górny
2022-06-21 18:37 Arthur Zamarin
2022-06-21 18:26 Arthur Zamarin
2022-05-18 11:16 Andrew Ammerlaan
2022-04-26 2:46 Sam James
2021-07-28 23:38 Marek Szuba
2021-06-02 16:26 Michał Górny
2020-11-28 14:21 Sam James
2020-11-28 14:21 Sam James
2020-08-14 23:22 Andreas Sturmlechner
2020-07-25 17:59 Michał Górny
2020-07-14 15:57 Sam James
2020-07-13 23:13 Sam James
2020-07-05 9:27 Sergei Trofimovich
2020-07-02 17:05 Sergei Trofimovich
2020-07-01 12:21 Michał Górny
2020-06-22 19:05 Mart Raudsepp
2020-06-15 2:35 Aaron Bauman
2020-05-30 20:33 Sergei Trofimovich
2020-05-30 14:37 Michał Górny
2020-05-11 16:48 Michał Górny
2020-05-11 9:44 Agostino Sarubbo
2019-12-04 22:28 Patrick McLean
2019-12-04 19:44 Sergei Trofimovich
2019-05-16 16:00 Matthew Thode
2018-06-07 19:53 Matt Thode
2018-06-02 9:58 Mikle Kolyada
2018-05-29 11:17 Thomas Deutschmann
2017-05-01 14:56 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=1590559848.0ca3926ff0f619130ee0b80c12d440b97cd5f70e.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