public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/autoflake/
Date: Sun, 31 Dec 2023 15:28:46 +0000 (UTC)	[thread overview]
Message-ID: <1703950253.d0773205a742fb4851c23e8c144c5775ea690020.davidroman@gentoo> (raw)

commit:     d0773205a742fb4851c23e8c144c5775ea690020
Author:     Tomás Carvalho <tomas <AT> thetimesweeper <DOT> com>
AuthorDate: Sat Dec 30 14:59:02 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sat Dec 30 15:30:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d0773205

dev-python/autoflake: add 2.2.1, drop 1.4-r1

Signed-off-by: Tomás Carvalho <tomas <AT> thetimesweeper.com>

 dev-python/autoflake/Manifest                |  2 +-
 dev-python/autoflake/autoflake-1.4-r1.ebuild | 27 ---------------------------
 dev-python/autoflake/autoflake-2.2.1.ebuild  | 27 +++++++++++++++++++++++++++
 3 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/dev-python/autoflake/Manifest b/dev-python/autoflake/Manifest
index 488179638d..2de21f6c25 100644
--- a/dev-python/autoflake/Manifest
+++ b/dev-python/autoflake/Manifest
@@ -1 +1 @@
-DIST autoflake-1.4.gh.tar.gz 24219 BLAKE2B 622c82b9ab5e7fd68e8bc2678c5868282e605640e1c52d1a8f81fbaaba26dfb738ac1ceb9eb20195bb820256fbae27222953a5271130e74b8708988516e20e00 SHA512 53e542a765cbd18df7c35a90f16786e173bdc332b4410abfbc6d24f1009bf5d6f8a383e897e72558617bdf339573d8aa9b8de6901aac392caf48889aacf0c9a6
+DIST autoflake-2.2.1.tar.gz 27377 BLAKE2B d669fd1954974f7237423d7dc67de044d737ba5a462b565f3307f1b6bdecefa6a6b2a6de437570e6a7772a692e894fb414e1ff05fc0aae7cbb3a0901ec9a0129 SHA512 02021b5f92edcdcb0b3c11132a46cf73dbc4b6e4efc4f5d5981b66bc5beafbef66a81229e65a727816ebda419c93399df14e9b6ba9f38a728f95a3455c1089f9

diff --git a/dev-python/autoflake/autoflake-1.4-r1.ebuild b/dev-python/autoflake/autoflake-1.4-r1.ebuild
deleted file mode 100644
index 901a3f1400..0000000000
--- a/dev-python/autoflake/autoflake-1.4-r1.ebuild
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} pypy3 )
-DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1
-
-DESCRIPTION="Removes unused imports and unused variables as reported by pyflakes"
-HOMEPAGE="
-	https://github.com/myint/autoflake
-	https://pypi.org/project/autoflake/
-"
-SRC_URI="https://github.com/myint/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND=">=dev-python/pyflakes-1.1.0[${PYTHON_USEDEP}]"
-
-distutils_enable_tests setup.py
-
-python_test() {
-	"${EPYTHON}" test_autoflake.py || die
-}

diff --git a/dev-python/autoflake/autoflake-2.2.1.ebuild b/dev-python/autoflake/autoflake-2.2.1.ebuild
new file mode 100644
index 0000000000..c3b7702a20
--- /dev/null
+++ b/dev-python/autoflake/autoflake-2.2.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..12} )
+DISTUTILS_USE_PEP517=hatchling
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Removes unused imports and unused variables from Python code"
+HOMEPAGE="https://github.com/PyCQA/autoflake/ https://pypi.org/project/autoflake/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=">=dev-python/tomli-2.0.1
+		 >=dev-python/pyflakes-3.0.0"
+
+#pypi tarbal does not include tests
+RESTRICT="test"
+
+src_prepare() {
+		eapply_user
+		sed -Ei -e '/include/,/]/ { /(test_.*|LICENSE|README)/d }' pyproject.toml || die "Sed failed :-("
+}


             reply	other threads:[~2023-12-31 15:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-31 15:28 David Roman [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:50 Julien Roy
2023-12-31 15:28 David Roman
2023-12-31 15:28 David Roman
2021-06-15  7:11 Andrew Ammerlaan
2020-12-04 15:00 Andrew Ammerlaan
2020-06-09 16:21 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-06-09 16:37 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-03-29 13:21 Andrew Ammerlaan

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=1703950253.d0773205a742fb4851c23e8c144c5775ea690020.davidroman@gentoo \
    --to=davidroman96@gmail.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