mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
dev-python/isort: Bump to 8.0.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST isort-7.0.0.gh.tar.gz 812142 BLAKE2B 47758d2f046c43f2a9cf6bad9f638446d6131b22fcb4b0ad89f186f4dbfb2bc258b416042578414e27d7f4962123ac255c39165186ae69a2ea58597ed773b2f9 SHA512 d13328787962e045bbd65120dc90dee9794392ba4f637135ef1ef7e79032a4aaf5896441dda7cf85417b4e839be39ca1e3d3b4ecb02c933e743b0aad5dd2e2cb
|
||||
DIST isort-8.0.0.gh.tar.gz 773774 BLAKE2B fbd6423fc6c3ea348a37f5eedc8d9e32eddebd99a3fc57a20bbd353e0c85f837a11d01e5c4c7408f7112684856ec2e9dd9d28e37a1a9a9144eda839d3e6db601 SHA512 0439176a6e9e6229094ccac96ee286c0881451fa8d518ff49cec997d87c1c4e99f48ab56dbd3aa20aa4185367609503182e54f5159f6eb7b9170a5b755e77597
|
||||
DIST isort-8.0.1.gh.tar.gz 773936 BLAKE2B c4fd4183995295fd7cf4afa7da7e3f0377490be2207c278bf5f3135256475476777755ed77a8f901ae2c5ced5bdc126d38a8f16a75fd12df64b93529c080f574 SHA512 97c6e6ceea3fc5ddfa573214c2019774cb5a5012fd3127b6c80c3f43d7e1bfc87c559cda2d7d626aedc9e4ae5bb28f96b2f77a6161ad94879f070e285fd460b0
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A python utility/library to sort imports"
|
||||
HOMEPAGE="
|
||||
https://github.com/PyCQA/isort/
|
||||
https://pypi.org/project/isort/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/PyCQA/isort/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
BDEPEND="
|
||||
dev-python/hatch-vcs[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/black[${PYTHON_USEDEP}]
|
||||
>=dev-python/colorama-0.4.6[${PYTHON_USEDEP}]
|
||||
dev-python/natsort[${PYTHON_USEDEP}]
|
||||
dev-vcs/git
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=( hypothesis pytest-mock )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# unbundle tomli
|
||||
sed -i -e 's:from ._vendored ::' isort/settings.py || die
|
||||
rm -r isort/_vendored || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cp -a "${BUILD_DIR}"/{install,test} || die
|
||||
local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH}
|
||||
|
||||
# Install necessary plugins
|
||||
local p
|
||||
for p in example*/; do
|
||||
pushd "${p}" >/dev/null || die
|
||||
distutils_pep517_install "${BUILD_DIR}"/test
|
||||
popd >/dev/null || die
|
||||
done
|
||||
|
||||
local EPYTEST_IGNORE=(
|
||||
# Excluded from upstream's test script
|
||||
tests/unit/test_deprecated_finders.py
|
||||
)
|
||||
|
||||
if ! has_version "dev-python/pylama[${PYTHON_USEDEP}]"; then
|
||||
EPYTEST_IGNORE+=(
|
||||
tests/unit/test_importable.py
|
||||
tests/unit/test_pylama_isort.py
|
||||
)
|
||||
fi
|
||||
|
||||
epytest tests/unit
|
||||
}
|
||||
Reference in New Issue
Block a user