From 145b1805c3986974378af5c60767504ecc9ed280 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 10 Dec 2023 23:14:41 +0000 Subject: gentoo auto-resync : 10:12:2023 - 23:14:40 --- dev-python/isort/Manifest | 2 +- dev-python/isort/isort-5.13.0-r1.ebuild | 80 -------------------------------- dev-python/isort/isort-5.13.0-r2.ebuild | 82 +++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 81 deletions(-) delete mode 100644 dev-python/isort/isort-5.13.0-r1.ebuild create mode 100644 dev-python/isort/isort-5.13.0-r2.ebuild (limited to 'dev-python/isort') diff --git a/dev-python/isort/Manifest b/dev-python/isort/Manifest index 043f1ca49e81..e5c83e5fe7d8 100644 --- a/dev-python/isort/Manifest +++ b/dev-python/isort/Manifest @@ -3,5 +3,5 @@ AUX isort-5.13.0-poetry.patch 485 BLAKE2B 8ac8d53e2fdf6db49cfac8f6949fec21d92e73 DIST isort-5.12.0.gh.tar.gz 743141 BLAKE2B a7f8deef02b57162eebe15b35e71382c654372a80dedba7eee63d0c9b0899c053fb517401585af17014db3cf9ed44089f6cbd1e2b0ed17393cc667de06bfbddd SHA512 ceb861d1a077be6fecd82fde775bded1fb676c77135e2004c92a6221762e0b3ff6c1071d17957e1add4062ec26ba6c9264e4905724f2c659339cbd0601f4b45e DIST isort-5.13.0.gh.tar.gz 753826 BLAKE2B 074e8b762b304618a2291d96dc9e18061e5303f3e6772479e8eda42c687cf289c12c73ce585c869df754b244bf14d59c6d2eba10877756287d88f27a3d470939 SHA512 3c5a170b1526ec58f1c774e4b55e2227df0af23eebd7a387d61cd3eaa0a698b5ad22a0be81a87d4e6a026030ffbdaea0f23331a43e28b5df98bf33b7afe2a42d EBUILD isort-5.12.0.ebuild 1691 BLAKE2B 9899ef315fca3c2d591f6b99ce9d84230690631f873216bea8fa5d36b51d2fbb7f813cffc7efe1d7bbefb947b14a6ae1049cc3914e7da8a6cd2f22582283ae91 SHA512 dae89599e7f4ca3e3056411f0435ae5fe84c90dd7f0c9f8554032bc8d98567972c82be70f1abc180e4a1342d776330423606af83b3e04c42b89403739a325c44 -EBUILD isort-5.13.0-r1.ebuild 1794 BLAKE2B 6b6e96ec89d66a3411930316e3d866df0398cb3d6636a8bc6481814837f6940e6ebdde0401406868b97a2b9e28b204ec9289b5a003d68d6c9e7dca44a1d74e62 SHA512 a7e4f2c53ec184ef13b72cd2eb8b2e7ef246577b19498e976eea9383d5c12ae389db444b87b35e57df2adf4a0e8c5c219f25ed357601d18a9d03a873b48b9658 +EBUILD isort-5.13.0-r2.ebuild 1829 BLAKE2B 886b08fce805ff6474289680a6fb44483c67c534c17dd70e213dcf9acb886e2812bbe9360e7538a29dc32626affe5c3dc7a7cc3512b2846f12d24ebf4a1f19da SHA512 52c1522afe8d1b838ca0c3320b4638f3164568e854bdf16f71a099ea4f00ced7135105ea56986cada6a6f540d226ad6d480b07c023a1f93e6b51b098295146c4 MISC metadata.xml 574 BLAKE2B db8aac55351f15190d9b71508268f26b12a781b3b4f0f6836a30efc954b46b71da496129a9641655db483730435b44a5c5283132521dc3cc93279c57735a1ba4 SHA512 c8116bf66155ffeb7ac8d68822559e18252210dae604b4984aa5e6a3fb7161d785cbd235dc6f656513b5bab326f6e579489245bcef9d0a5dfadc34d7477758fb diff --git a/dev-python/isort/isort-5.13.0-r1.ebuild b/dev-python/isort/isort-5.13.0-r1.ebuild deleted file mode 100644 index 83f18a7f3177..000000000000 --- a/dev-python/isort/isort-5.13.0-r1.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{10..12} pypy3 ) - -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 ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" - -RDEPEND=" - dev-python/tomli[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/black[${PYTHON_USEDEP}] - >=dev-python/colorama-0.4.6[${PYTHON_USEDEP}] - dev-python/hypothesis[${PYTHON_USEDEP}] - dev-python/natsort[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-vcs/git - ) -" - -distutils_enable_tests pytest - -src_prepare() { - local PATCHES=( - # sigh, can't people just stop using poetry?! - # https://github.com/PyCQA/isort/commit/f7a6b0eea57e87155a367e2490b49b40f83c3944 - "${FILESDIR}/${P}-poetry.patch" - ) - - # unbundle tomli - sed -i -e 's:from ._vendored ::' isort/settings.py || die - rm -r isort/_vendored || die - - distutils-r1_src_prepare -} - -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 -} diff --git a/dev-python/isort/isort-5.13.0-r2.ebuild b/dev-python/isort/isort-5.13.0-r2.ebuild new file mode 100644 index 000000000000..739fedb19bdc --- /dev/null +++ b/dev-python/isort/isort-5.13.0-r2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +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 ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + test? ( + dev-python/black[${PYTHON_USEDEP}] + >=dev-python/colorama-0.4.6[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/natsort[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-vcs/git + ) +" + +distutils_enable_tests pytest + +src_prepare() { + local PATCHES=( + # sigh, can't people just stop using poetry?! + # https://github.com/PyCQA/isort/commit/f7a6b0eea57e87155a367e2490b49b40f83c3944 + "${FILESDIR}/${P}-poetry.patch" + ) + + # unbundle tomli + sed -i -e 's:from ._vendored ::' isort/settings.py || die + rm -r isort/_vendored || die + + distutils-r1_src_prepare +} + +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 +} -- cgit v1.2.3