[packages/python3-chardet] Up to 7.4.3

arekm arekm at pld-linux.org
Fri Apr 24 16:50:43 CEST 2026


commit a84a651d9a83f0dcf2a89c2da63eee793a9b66f6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Apr 24 16:50:14 2026 +0200

    Up to 7.4.3

 failtest.patch       | 12 ------------
 python3-chardet.spec | 32 ++++++++++++++++----------------
 2 files changed, 16 insertions(+), 28 deletions(-)
---
diff --git a/python3-chardet.spec b/python3-chardet.spec
index b4fdce9..859831b 100644
--- a/python3-chardet.spec
+++ b/python3-chardet.spec
@@ -7,31 +7,32 @@
 Summary:	Character encoding auto-detection in Python 3
 Summary(pl.UTF-8):	Automatyczne wykrywanie kodowania znaków w Pythonie 3
 Name:		python3-%{module}
-Version:	5.2.0
-Release:	3
-License:	LGPL v2.1+
+Version:	7.4.3
+Release:	1
+License:	0BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/chardet/
 Source0:	https://files.pythonhosted.org/packages/source/c/chardet/%{module}-%{version}.tar.gz
-# Source0-md5:	cc2d8cc9a751641463b4f7cfecad2ffa
-Patch0:		failtest.patch
+# Source0-md5:	df96bc7067630990c971ea95001f5687
 URL:		https://pypi.org/project/chardet/
-BuildRequires:	python3 >= 1:3.7
+BuildRequires:	python3 >= 1:3.10
 BuildRequires:	python3-build
-BuildRequires:	python3-devel >= 1:3.7
+BuildRequires:	python3-devel >= 1:3.10
+BuildRequires:	python3-hatchling
+BuildRequires:	python3-hatch-vcs
 BuildRequires:	python3-installer
-BuildRequires:	python3-setuptools >= 1:61
 %if %{with tests}
 BuildRequires:	python3-hypothesis
 BuildRequires:	python3-pytest
 %endif
 %if %{with doc}
-BuildRequires:	python3-sphinx_rtd_theme
+BuildRequires:	python3-furo
+BuildRequires:	python3-sphinx_copybutton
 BuildRequires:	sphinx-pdg-3
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 2.044
-Requires:	python3-modules >= 1:3.7
+Requires:	python3-modules >= 1:3.10
 Conflicts:	python-chardet < 4.0.0-7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -56,20 +57,19 @@ Dokumentacja API modułu Pythona chardet.
 
 %prep
 %setup -q -n %{module}-%{version}
-%patch -P 0 -p1
 
 %build
 %py3_build_pyproject
 
 %if %{with tests}
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest test.py
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests -m "not benchmark"
 %endif
 
 %if %{with doc}
-PYTHONPATH=$(pwd) \
-%{__make} -C docs html \
-	SPHINXBUILD=sphinx-build-3
+PYTHONPATH=$(pwd)/src \
+sphinx-build-3 -b html docs docs/_build/html
 %endif
 
 %install
@@ -82,7 +82,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc NOTES.rst README.rst
+%doc README.md
 %attr(755,root,root) %{_bindir}/chardetect
 %{py3_sitescriptdir}/chardet
 %{py3_sitescriptdir}/chardet-%{version}.dist-info
diff --git a/failtest.patch b/failtest.patch
deleted file mode 100644
index cd3d2df..0000000
--- a/failtest.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up chardet-5.2.0/test.py.orig chardet-5.2.0/test.py
---- chardet-5.2.0/test.py.orig	2023-08-01 21:07:52.000000000 +0200
-+++ chardet-5.2.0/test.py	2025-03-16 13:45:55.674846256 +0100
-@@ -223,7 +223,7 @@ if HAVE_HYPOTHESIS:
-         st.randoms(),
-     )
-     @settings(max_examples=200)
--    def test_detect_all_and_detect_one_should_agree(txt, enc, _):
-+    def fail_test_detect_all_and_detect_one_should_agree(txt, enc, _):
-         try:
-             data = txt.encode(enc)
-         except UnicodeEncodeError:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-chardet.git/commitdiff/a84a651d9a83f0dcf2a89c2da63eee793a9b66f6



More information about the pld-cvs-commit mailing list