[packages/python3-black] - updated to 26.3.0

qboosh qboosh at pld-linux.org
Wed Mar 11 21:57:59 CET 2026


commit 0d463766980776e22804c53477a7e0a721772e06
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 11 21:58:07 2026 +0100

    - updated to 26.3.0

 python3-black.spec | 64 ++++++++++++++++++++++++++++++++----------------------
 1 file changed, 38 insertions(+), 26 deletions(-)
---
diff --git a/python3-black.spec b/python3-black.spec
index 16903f5..1ba851b 100644
--- a/python3-black.spec
+++ b/python3-black.spec
@@ -6,44 +6,49 @@
 Summary:	The uncompromising code formatter
 Summary(pl.UTF-8):	Bezkompromisowe narzędzie do formatowania kodu
 Name:		python3-black
-Version:	25.1.0
+Version:	26.3.0
 Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/black/
 Source0:	https://files.pythonhosted.org/packages/source/b/black/black-%{version}.tar.gz
-# Source0-md5:	2a33335756996e5948e8063677068f24
+# Source0-md5:	c01dce43efd71a7754ffd9cc3234fe89
 URL:		https://pypi.org/project/black/
 BuildRequires:	python3-build
+BuildRequires:	python3-hatch-fancy-pypi-readme
+BuildRequires:	python3-hatch-vcs >= 0.3.0
+BuildRequires:	python3-hatchling >= 1.27.0
 BuildRequires:	python3-installer
-BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-modules >= 1:3.10
+BuildRequires:	python3-wheel >= 0.45.1
 %if %{with tests}
 BuildRequires:	python3-aiohttp >= 3.10
-BuildRequires:	python3-appdirs
 BuildRequires:	python3-click >= 8.1.7
-BuildRequires:	python3-hatchling
-BuildRequires:	python3-hatch-fancy-pypi-readme
-BuildRequires:	python3-hatch-vcs
 BuildRequires:	python3-mypy_extensions >= 0.4.3
-BuildRequires:	python3-pathspec >= 0.9.0
-BuildRequires:	python3-pathspec < 1
-BuildRequires:	python3-pytest >= 6.1.1
-#BuildRequires:	python3-pytest-cases >= 2.3.0
-#BuildRequires:	python3-pytest-cov >= 2.11.1
-BuildRequires:	python3-pytest-mock >= 3.3.1
-#BuildRequires:	python3-pytest-xdist >= 2.2.1
-BuildRequires:	python3-regex >= 2020.1.8
-BuildRequires:	python3-toml >= 0.10.1
+BuildRequires:	python3-packaging >= 22.0
+BuildRequires:	python3-pathspec >= 1.0.0
+BuildRequires:	python3-platformdirs >= 2
+BuildRequires:	python3-pytest >= 7
+#BuildRequires:	python3-pytest-cov >= 4.1.0
+#BuildRequires:	python3-pytest-xdist >= 3.0.2
+BuildRequires:	python3-pytokens >= 0.4.0
+BuildRequires:	python3-pytokens < 0.5
+%if "%{py3_ver}" == "3.10"
+BuildRequires:	python3-tomli >= 1.1.0
+BuildRequires:	python3-typing_extensions >= 4.0.1
+%endif
 %endif
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	rpmbuild(macros) >= 2.044
 %if %{with doc}
-BuildRequires:	python3-myst_parser >= 0.14.0
-BuildRequires:	python3-sphinx_copybutton >= 0.3.1
-BuildRequires:	python3-sphinxcontrib-programoutput >= 0.17
-BuildRequires:	sphinx-pdg-3 >= 3.5.4
+BuildRequires:	python3-docutils >= 0.21.2
+BuildRequires:	python3-furo >= 2025.12.19
+BuildRequires:	python3-myst_parser >= 4.0.1
+BuildRequires:	python3-sphinx_copybutton >= 0.5.2
+BuildRequires:	python3-sphinxcontrib-programoutput >= 0.19
+BuildRequires:	sphinx-pdg-3 >= 8.2.3
 %endif
-Requires:	python3-modules >= 1:3.8
+Requires:	python3-modules >= 1:3.10
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -78,6 +83,11 @@ Dokumentacja API modułu Black.
 %build
 %py3_build_pyproject
 
+%if %{with tests} || %{with doc}
+# metadata required for test_schema and sphinx
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+%endif
+
 %if %{with tests}
 # 3 tests require "black" binary in path, prepare stub
 install -d test-bin
@@ -87,14 +97,15 @@ from black import patched_main
 patched_main()
 EOF
 chmod 755 test-bin/black
+# test_target_version_exceeds_runtime_warning: CliRunner doens't catch warning from black.main, don't know why
 PATH="$(pwd)/test-bin:$PATH" \
-PYTHONPATH=$(pwd)/src \
+PYTHONPATH=$(pwd)/build-3-test \
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
+%{__python3} -m pytest tests -k 'not test_target_version_exceeds_runtime_warning'
 %endif
 
 %if %{with doc}
-PYTHONPATH=$(pwd)/src \
+PYTHONPATH=$(pwd)/build-3-test \
 %{__make} -C docs html \
 	SPHINXBUILD=sphinx-build-3
 %endif
@@ -109,13 +120,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES.md LICENSE README.md
+%doc AUTHORS.md CHANGES.md LICENSE README.md SECURITY.md
 %attr(755,root,root) %{_bindir}/black
 %attr(755,root,root) %{_bindir}/blackd
 %{py3_sitescriptdir}/black
 %{py3_sitescriptdir}/blackd
 %{py3_sitescriptdir}/blib2to3
 %{py3_sitescriptdir}/_black_version.py
+%{py3_sitescriptdir}/_black_version.pyi
 %{py3_sitescriptdir}/__pycache__/_black_version.cpython-*.py[co]
 %{py3_sitescriptdir}/black-%{version}.dist-info
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-black.git/commitdiff/0d463766980776e22804c53477a7e0a721772e06



More information about the pld-cvs-commit mailing list