Diff black-25.1.0 with a black-26.3.1

/usr/portage/dev-python/black/black-26.3.1.ebuild 2026-04-24 12:17:42.883424396 +0300
1
# Copyright 2020-2025 Gentoo Authors
1
# Copyright 2020-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6 6
DISTUTILS_USE_PEP517=hatchling
7
PYPI_VERIFY_REPO=https://github.com/psf/black
7 8
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
8 9

  
9 10
inherit distutils-r1 optfeature pypi
......
17 18

  
18 19
LICENSE="MIT"
19 20
SLOT="0"
20
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos"
21
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86"
21 22

  
22 23
RDEPEND="
23 24
	>=dev-python/click-8.0.0[${PYTHON_USEDEP}]
24 25
	>=dev-python/mypy-extensions-0.4.3[${PYTHON_USEDEP}]
25 26
	>=dev-python/packaging-22.0[${PYTHON_USEDEP}]
26
	>=dev-python/pathspec-0.9.0[${PYTHON_USEDEP}]
27
	>=dev-python/pathspec-1.0.0[${PYTHON_USEDEP}]
27 28
	>=dev-python/platformdirs-2[${PYTHON_USEDEP}]
29
	>=dev-python/pytokens-0.4.0[${PYTHON_USEDEP}]
28 30
"
29 31
BDEPEND="
30 32
	dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}]
......
39 41
EPYTEST_PLUGINS=()
40 42
distutils_enable_tests pytest
41 43

  
42
PATCHES=(
43
	# combined upstream test fixes:
44
	# https://github.com/psf/black/pull/4577
45
	# https://github.com/psf/black/pull/4591
46
	# https://github.com/psf/black/pull/4666
47
	# https://github.com/psf/black/pull/4690
48
	"${FILESDIR}/${P}-test.patch"
49
)
50

  
51
python_test() {
52
	local EPYTEST_DESELECT=()
53

  
54
	case ${EPYTHON} in
55
		pypy3.11)
56
			EPYTEST_DESELECT+=(
57
				# https://github.com/psf/black/issues/4582
58
				'tests/test_format.py::test_simple_format[backslash_before_indent]'
59
				'tests/test_format.py::test_simple_format[form_feeds]'
60
			)
61
			;;
62
	esac
63

  
64
	epytest
65
}
66

  
67 44
pkg_postinst() {
68 45
	optfeature "blackd - HTTP API for black" \
69 46
		"dev-python/aiohttp dev-python/aiohttp-cors"
Thank you!