From: "Tomás Carvalho" <tomas@thetimesweeper.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/autoflake/
Date: Sat, 30 Dec 2023 17:30:40 +0000 (UTC) [thread overview]
Message-ID: <1703957393.9079af58bbde16d12e501efca9e1f008c1171bc1.tomas@gentoo> (raw)
commit: 9079af58bbde16d12e501efca9e1f008c1171bc1
Author: Tomás Carvalho <tomas <AT> thetimesweeper <DOT> com>
AuthorDate: Sat Dec 30 17:28:37 2023 +0000
Commit: Tomás Carvalho <tomas <AT> thetimesweeper <DOT> com>
CommitDate: Sat Dec 30 17:29:53 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9079af58
dev-python/autoflake: disable py3.12
Signed-off-by: Tomás Carvalho <tomas <AT> thetimesweeper.com>
dev-python/autoflake/autoflake-2.2.1.ebuild | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/dev-python/autoflake/autoflake-2.2.1.ebuild b/dev-python/autoflake/autoflake-2.2.1.ebuild
index c3b7702a20..9277cdd5b4 100644
--- a/dev-python/autoflake/autoflake-2.2.1.ebuild
+++ b/dev-python/autoflake/autoflake-2.2.1.ebuild
@@ -1,9 +1,8 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-
EAPI=8
-PYTHON_COMPAT=( python3_{8..12} )
+PYTHON_COMPAT=( python3_{8..11} )
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1 pypi
@@ -18,10 +17,14 @@ KEYWORDS="~amd64"
RDEPEND=">=dev-python/tomli-2.0.1
>=dev-python/pyflakes-3.0.0"
-#pypi tarbal does not include tests
-RESTRICT="test"
+distutils_enable_tests unittest
src_prepare() {
- eapply_user
- sed -Ei -e '/include/,/]/ { /(test_.*|LICENSE|README)/d }' pyproject.toml || die "Sed failed :-("
+ sed -Ei -e '/include/,/]/ { /(test_.*|LICENSE|README)/d }' pyproject.toml || die "Sed failed :-("
+ default
+}
+
+python_test() {
+ # unit test
+ eunittest -p "test_autoflake.py"
}
next reply other threads:[~2023-12-30 17:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-30 17:30 Tomás Carvalho [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-14 22:50 [gentoo-commits] repo/proj/guru:master commit in: dev-python/autoflake/ Julien Roy
2024-05-14 22:45 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-05-14 22:50 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-05-14 22:45 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2023-12-30 15:31 Tomás Carvalho
2023-12-30 15:31 Tomás Carvalho
2022-07-11 19:22 Anna Vyalkova
2021-10-03 22:16 Alessandro Barbieri
2021-06-14 23:09 Alessandro Barbieri
2020-12-04 5:54 Theo Anderson
2020-06-09 16:21 Andrew Ammerlaan
2020-03-29 9:29 Alessandro Barbieri
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=1703957393.9079af58bbde16d12e501efca9e1f008c1171bc1.tomas@gentoo \
--to=tomas@thetimesweeper.com \
--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