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: dev-python/async_timeout/
Date: Sat, 19 Jun 2021 12:26:34 +0000 (UTC)	[thread overview]
Message-ID: <1624105591.9f8de1af2f738df5061caa1e4425c88cead9d96f.mgorny@gentoo> (raw)

commit:     9f8de1af2f738df5061caa1e4425c88cead9d96f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 19 12:25:01 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 19 12:26:31 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f8de1af

dev-python/async_timeout: Modernize

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

 dev-python/async_timeout/async_timeout-3.0.1.ebuild | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/dev-python/async_timeout/async_timeout-3.0.1.ebuild b/dev-python/async_timeout/async_timeout-3.0.1.ebuild
index 617296b6377..f4022958304 100644
--- a/dev-python/async_timeout/async_timeout-3.0.1.ebuild
+++ b/dev-python/async_timeout/async_timeout-3.0.1.ebuild
@@ -1,8 +1,8 @@
-# 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=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..9} )
 
 inherit distutils-r1
 
@@ -10,21 +10,20 @@ MY_P=${PN/_/-}-${PV}
 DESCRIPTION="Timeout context manager for asyncio programs"
 HOMEPAGE="https://github.com/aio-libs/async-timeout"
 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+S=${WORKDIR}/${MY_P}
 
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~x64-macos"
-IUSE="test"
-RESTRICT="!test? ( test )"
-S=${WORKDIR}/${MY_P}
 
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+BDEPEND="
 	dev-python/setuptools_scm[${PYTHON_USEDEP}]
 	test? (
-		dev-python/pytest[${PYTHON_USEDEP}]
 		dev-python/pytest-aiohttp[${PYTHON_USEDEP}]
 	)"
 
+distutils_enable_tests pytest
+
 python_prepare_all() {
 	# remove pointless dep on pytest-cov
 	sed -i -e '/addopts/d' setup.cfg || die
@@ -32,7 +31,3 @@ python_prepare_all() {
 	rm tests/conftest.py || die
 	distutils-r1_python_prepare_all
 }
-
-python_test() {
-	pytest -vv || die "Tests fail with ${EPYTHON}"
-}


             reply	other threads:[~2021-06-19 12:26 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-19 12:26 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-21 18:35 [gentoo-commits] repo/gentoo:master commit in: dev-python/async_timeout/ Arthur Zamarin
2022-06-21 18:29 Arthur Zamarin
2022-05-20 18:01 Andrew Ammerlaan
2022-05-18 16:59 Michał Górny
2022-04-25 18:41 Sam James
2022-01-20  9:06 Arthur Zamarin
2021-12-20 23:10 Michał Górny
2021-12-02  9:39 Michał Górny
2021-12-02  8:56 Arthur Zamarin
2021-11-10 22:35 Michał Górny
2021-11-06 12:49 Piotr Karbowski
2021-11-01 22:16 Michał Górny
2021-11-01  8:32 Michał Górny
2021-08-02  8:41 Michał Górny
2020-12-11 18:06 Sergei Trofimovich
2020-11-28 15:36 Sam James
2020-11-28 15:36 Sam James
2020-11-26 19:08 Sam James
2020-11-26 13:21 Sam James
2020-11-23 16:39 Sergei Trofimovich
2020-10-07  1:02 Sam James
2020-10-04 19:49 Sergei Trofimovich
2020-09-30 20:26 Sam James
2020-09-27  6:42 Matt Turner
2020-09-13  4:55 Sam James
2020-09-13  3:31 Sam James
2020-08-25 10:23 Sam James
2020-08-18 21:53 Sergei Trofimovich
2020-06-12 15:40 Michał Górny
2020-03-26 10:08 Michał Górny
2020-03-26 10:08 Michał Górny
2019-08-28 20:46 Zac Medico
2019-08-28 20:11 Zac Medico
2019-08-28 19:26 Zac Medico
2019-08-28 18:20 Zac Medico
2019-07-31 14:32 Mikle Kolyada
2019-07-14 12:27 Michał Górny
2019-07-14 12:27 Michał Górny
2019-04-27 11:49 Anthony G. Basile
2019-03-16 23:53 Anthony G. Basile
2018-06-04 23:38 Tim Harder
2017-05-26 20:22 Zac Medico
2017-04-20  9:20 Zac Medico
2017-02-13  9:26 Zac Medico
2016-11-07 20:31 Zac Medico
2016-09-19  1:33 Zac Medico

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=1624105591.9f8de1af2f738df5061caa1e4425c88cead9d96f.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