commit:     077fa1b2b2edc3232788f50ffae24291378cc967
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 29 04:59:37 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jan 29 04:59:37 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=077fa1b2

dev-python/black: Bump to 24.1.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/black/Manifest            |  1 +
 dev-python/black/black-24.1.1.ebuild | 55 ++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest
index b7d566276bc3..cf350c7fb5a6 100644
--- a/dev-python/black/Manifest
+++ b/dev-python/black/Manifest
@@ -1,2 +1,3 @@
 DIST black-23.12.1.tar.gz 620809 BLAKE2B 
8522183d8004dd094f87fc8efcbbbafede9f94ded2f67d4815059534da91c969067c5c508636c2654894109f91d8fb5b26f23351b5ffff451aeac8ed5d146da4
 SHA512 
1a90eadbb7ccf1dd6c4c7d858b3360b7c62c04bf1826dd4817ddb8d542c3155fc72a80d53aa3be34375bd7006ab65432e006572bc5d1eeb6ff23cfa460072e93
 DIST black-24.1.0.tar.gz 622911 BLAKE2B 
371a334df390f758fe482dac42345ab0cd7058c2dcbb49f5ce4337fedfe5b330308ab2644438a447ae76413fc95b65ba0fb0ab68a3a294e12f2fe147cebdfc25
 SHA512 
f9d2315743b91dcc563f8e57d4bfb3d80aff2b6a8f426d348c84d23cbcc1fe85107b4b3d78f396959d10240b75586e29bb26d7e767d382cc9d977703f2fa8d09
+DIST black-24.1.1.tar.gz 623755 BLAKE2B 
32e12a3c1b0ad7cb94970b8d887444e0ff05c8044ce7b843710ad4494b6c1d8d4e74a76ce79178bb468fc1ed813bd4e17d3b1ba24f4fe6a6c3aeaf4bf2afe499
 SHA512 
507555c330a4ef5869b11d9b3ad19b6234c035bb2a28fa497aac911303bbc2d546601c1d587c8a824403c346eb5b940aaec2989c20dffead6fa881e496be5672

diff --git a/dev-python/black/black-24.1.1.ebuild 
b/dev-python/black/black-24.1.1.ebuild
new file mode 100644
index 000000000000..d7502a3d0049
--- /dev/null
+++ b/dev-python/black/black-24.1.1.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"
+}

Reply via email to