mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
dev-python/autoflake: add 2.3.1
Closes: https://bugs.gentoo.org/931370 Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
30
dev-python/autoflake/autoflake-2.3.1.ebuild
Normal file
30
dev-python/autoflake/autoflake-2.3.1.ebuild
Normal file
@@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..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"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
src_prepare() {
|
||||
sed -Ei -e '/include/,/]/ { /(test_.*|LICENSE|README)/d }' pyproject.toml || die "Sed failed :-("
|
||||
default
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# unit test
|
||||
eunittest -p "test_autoflake.py"
|
||||
}
|
||||
Reference in New Issue
Block a user