diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
| commit | dda948891d3731927b821ce31f9d9a2d03ba20c5 (patch) | |
| tree | 99cd40be4cbb0606260da212cd81b8ab2db9da9b /dev-python/isort | |
| parent | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff) | |
| download | baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip | |
Adding metadata
Diffstat (limited to 'dev-python/isort')
| -rw-r--r-- | dev-python/isort/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/isort/isort-8.0.1.ebuild | 73 | ||||
| -rw-r--r-- | dev-python/isort/metadata.xml | 17 |
3 files changed, 91 insertions, 0 deletions
diff --git a/dev-python/isort/Manifest b/dev-python/isort/Manifest new file mode 100644 index 000000000000..8e966a3b04c6 --- /dev/null +++ b/dev-python/isort/Manifest @@ -0,0 +1 @@ +DIST isort-8.0.1.gh.tar.gz 773936 BLAKE2B c4fd4183995295fd7cf4afa7da7e3f0377490be2207c278bf5f3135256475476777755ed77a8f901ae2c5ced5bdc126d38a8f16a75fd12df64b93529c080f574 SHA512 97c6e6ceea3fc5ddfa573214c2019774cb5a5012fd3127b6c80c3f43d7e1bfc87c559cda2d7d626aedc9e4ae5bb28f96b2f77a6161ad94879f070e285fd460b0 diff --git a/dev-python/isort/isort-8.0.1.ebuild b/dev-python/isort/isort-8.0.1.ebuild new file mode 100644 index 000000000000..b618e42faec1 --- /dev/null +++ b/dev-python/isort/isort-8.0.1.ebuild @@ -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_{13..14} ) + +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 +} diff --git a/dev-python/isort/metadata.xml b/dev-python/isort/metadata.xml new file mode 100644 index 000000000000..4328bb22de91 --- /dev/null +++ b/dev-python/isort/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <stabilize-allarches /> + <upstream> + <bugs-to>https://github.com/PyCQA/isort/issues</bugs-to> + <doc>https://pycqa.github.io/isort/</doc> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
