diff options
author | 2024-01-26 16:54:10 +0100 | |
---|---|---|
committer | 2024-01-26 16:54:10 +0100 | |
commit | 2478f5046c9180a63d093b2e0ebe5f8169f8e012 (patch) | |
tree | 011b16959f1e7eb45ab281002967984bfbf4be2a /dev-python/black | |
parent | dev-python/phonenumbers: Bump to 8.13.29 (diff) | |
download | gentoo-2478f5046c9180a63d093b2e0ebe5f8169f8e012.tar.gz gentoo-2478f5046c9180a63d093b2e0ebe5f8169f8e012.tar.bz2 gentoo-2478f5046c9180a63d093b2e0ebe5f8169f8e012.zip |
dev-python/black: Bump to 24.1.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/black')
-rw-r--r-- | dev-python/black/Manifest | 1 | ||||
-rw-r--r-- | dev-python/black/black-24.1.0.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest index 2e03c3f518a4..b7d566276bc3 100644 --- a/dev-python/black/Manifest +++ b/dev-python/black/Manifest @@ -1 +1,2 @@ DIST black-23.12.1.tar.gz 620809 BLAKE2B 8522183d8004dd094f87fc8efcbbbafede9f94ded2f67d4815059534da91c969067c5c508636c2654894109f91d8fb5b26f23351b5ffff451aeac8ed5d146da4 SHA512 1a90eadbb7ccf1dd6c4c7d858b3360b7c62c04bf1826dd4817ddb8d542c3155fc72a80d53aa3be34375bd7006ab65432e006572bc5d1eeb6ff23cfa460072e93 +DIST black-24.1.0.tar.gz 622911 BLAKE2B 371a334df390f758fe482dac42345ab0cd7058c2dcbb49f5ce4337fedfe5b330308ab2644438a447ae76413fc95b65ba0fb0ab68a3a294e12f2fe147cebdfc25 SHA512 f9d2315743b91dcc563f8e57d4bfb3d80aff2b6a8f426d348c84d23cbcc1fe85107b4b3d78f396959d10240b75586e29bb26d7e767d382cc9d977703f2fa8d09 diff --git a/dev-python/black/black-24.1.0.ebuild b/dev-python/black/black-24.1.0.ebuild new file mode 100644 index 000000000000..d7502a3d0049 --- /dev/null +++ b/dev-python/black/black-24.1.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit distutils-r1 optfeature pypi + +DESCRIPTION="The uncompromising Python code formatter" +HOMEPAGE=" + https://black.readthedocs.io/en/stable/ + https://github.com/psf/black/ + https://pypi.org/project/black/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + >=dev-python/click-8.0.0[${PYTHON_USEDEP}] + >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] + >=dev-python/packaging-22.0[${PYTHON_USEDEP}] + >=dev-python/pathspec-0.9.0[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}] + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + >=dev-python/aiohttp-3.7.4[${PYTHON_USEDEP}] + dev-python/aiohttp-cors[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # incompatible with xdist + tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff + tests/test_black.py::TestCaching::test_failed_formatting_does_not_get_cached +) + +pkg_postinst() { + optfeature "blackd - HTTP API for black" \ + "dev-python/aiohttp dev-python/aiohttp-cors" +} |