commit:     11724f26100f593ae324df931da320c8130cb44c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 19 05:11:25 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jan 19 05:38:16 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11724f26

dev-python/black: Bump to 26.1.0

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

 dev-python/black/Manifest            |  2 ++
 dev-python/black/black-26.1.0.ebuild | 63 ++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest
index 4a89a3b86eef..076fbbc2731d 100644
--- a/dev-python/black/Manifest
+++ b/dev-python/black/Manifest
@@ -2,3 +2,5 @@ DIST black-25.1.0.tar.gz 649449 BLAKE2B 
28045d73259780c38430838ad245a3a6545f6c55
 DIST black-25.11.0.tar.gz 655669 BLAKE2B 
226e1c2e85f903b5bf4033567d266db9aeb56c0365b8debd05e1f13ed98aca98854e4b079a8270db62ae56fab446cdd54d6f60fa572eaa0ed70e8cdcdb68f7b0
 SHA512 
e6b91cc3772b5a079baf99792140d8d66448b2d17aa27706af5a9c652fca04ed4815dab4fdcaf93721d0b7e85e5fec85ba3fd14f08487a82f558c140a3dfbfd6
 DIST black-25.12.0.tar.gz 659264 BLAKE2B 
df81aae998aa8d756c2f9d94935f0cdbaa1116fcaff0073e2f82681f852da26197e222832ce134e6c4391614791d98b828fc26c55f7a8ad94194705bc9952342
 SHA512 
2e67d22218eaba3e5c4f3bbcfe5ea3d305852168cfe7f75edb31ecd4db7b4a3dc349e23f8b93c0e5c5e9c4380cb3cd949733d13b9991b41496a7d17514cd2cea
 DIST black-25.9.0.tar.gz 648393 BLAKE2B 
916d9b6859d31b41a2b064537dd180d37d33ffb41827fab43e8b65d04a17709e2ed20e9672a7bb4a79038e81886b198aed2ce99d46b3ede2bac2a801b23e9f19
 SHA512 
aa2a2ff1cd1169108968735e7fcd0ad0b25d721786461975d0aaea06b21accc877c96eff0876c40ebe7c31d6de8065c7db47580fe7372c8ad8c08a0c17951311
+DIST black-26.1.0.tar.gz 658785 BLAKE2B 
b2cc0e0873c503d8e2ddbb95b4a70172f31a0aacb1b0c13e5310568dee7866702370787d7112d7dff90d310fd55c4531b20a0e8580c9103a94c10d8ca51a9d80
 SHA512 
db5b0d6e5caf7bcd1e7186c0b6efb076cd94e9194dd63bbc74ab1ca3cc826aa6265bcf0ffbcabb8bfd8ac1f3f15580ce66c295d942c5202acdf269e9898156b0
+DIST black-26.1.0.tar.gz.provenance 9261 BLAKE2B 
f66569657cc83a4e9b6e8bced354f155f4c1e807a77451c3a450067a1e574e911a8e471bfc1050d80b610119d3170586948c498010f23c96f660e51b3d96ec1a
 SHA512 
8818027e80fad15766f0a52ce5c3a3ff6770e3863a1c3d0f73707f182270f089645bb23d9a869577b35216206a70830abeee612e7a52e53384ddc287d9c80772

diff --git a/dev-python/black/black-26.1.0.ebuild 
b/dev-python/black/black-26.1.0.ebuild
new file mode 100644
index 000000000000..3defc1c54955
--- /dev/null
+++ b/dev-python/black/black-26.1.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2020-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYPI_VERIFY_REPO=https://github.com/psf/black
+PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
+
+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 ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86"
+
+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-1.0.0[${PYTHON_USEDEP}]
+       >=dev-python/platformdirs-2[${PYTHON_USEDEP}]
+       >=dev-python/pytokens-0.3.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}]
+       dev-python/hatch-vcs[${PYTHON_USEDEP}]
+       test? (
+               >=dev-python/aiohttp-3.10[${PYTHON_USEDEP}]
+               dev-python/aiohttp-cors[${PYTHON_USEDEP}]
+               dev-python/colorama[${PYTHON_USEDEP}]
+       )
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+python_test() {
+       local EPYTEST_DESELECT=()
+
+       case ${EPYTHON} in
+               pypy3.11)
+                       EPYTEST_DESELECT+=(
+                               # https://github.com/psf/black/issues/4582
+                               
'tests/test_format.py::test_simple_format[backslash_before_indent]'
+                               
'tests/test_format.py::test_simple_format[form_feeds]'
+                       )
+                       ;;
+       esac
+
+       epytest
+}
+
+pkg_postinst() {
+       optfeature "blackd - HTTP API for black" \
+               "dev-python/aiohttp dev-python/aiohttp-cors"
+}

Reply via email to