mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-python/autoflake: add 2.2.1, drop 1.4-r1
Signed-off-by: Tomás Carvalho <tomas@thetimesweeper.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
27
dev-python/autoflake/autoflake-2.2.1.ebuild
Normal file
27
dev-python/autoflake/autoflake-2.2.1.ebuild
Normal file
@@ -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 :-("
|
||||
}
|
||||
Reference in New Issue
Block a user