diff --git a/chardet-4.0.0.tar.gz b/chardet-4.0.0.tar.gz deleted file mode 100644 index a3c7d96..0000000 --- a/chardet-4.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa -size 1907771 diff --git a/chardet-5.0.0.tar.gz b/chardet-5.0.0.tar.gz new file mode 100644 index 0000000..d6d2d96 --- /dev/null +++ b/chardet-5.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0368df2bfd78b5fc20572bb4e9bb7fb53e2c094f60ae9993339e8671d0afb8aa +size 2021116 diff --git a/python-chardet.changes b/python-chardet.changes index b39b8a2..7e5edd7 100644 --- a/python-chardet.changes +++ b/python-chardet.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Tue Jul 5 13:21:09 UTC 2022 - Ben Greiner + +- Update to 5.0.0 + * This release is the first release of chardet that no longer + supports Python < 3.6 + * Added a prober for Johab Korean (#207, @grizlupo) + * Added a prober for UTF-16/32 BE/LE (#109, #206, @jpz) + * Added test data for Croatian, Czech, Hungarian, Polish, Slovak, + Slovene, Greek, and Turkish, which should help prevent future + errors with those languages + * Improved XML tag filtering, which should improve accuracy for + XML files (#208) + * Tweaked SingleByteCharSetProber confidence to match latest + uchardet (#209) + * Made detect_all return child prober confidences (#210) + * Updated examples in docs (#223, @domdfcoding) + * Documentation fixes (#212, #224, #225, #226, #220, #221, #244 + from too many to mention) + * Minor performance improvements (#252, @deedy5) + * Add support for Python 3.10 when testing (#232, @jdufresne) + * Lots of little development cycle improvements, mostly thanks to + @jdufresne +- Canonicalize alternatives creation + ------------------------------------------------------------------- Fri Dec 10 09:05:04 UTC 2021 - pgajdos@suse.com diff --git a/python-chardet.spec b/python-chardet.spec index 2395da0..e574e66 100644 --- a/python-chardet.spec +++ b/python-chardet.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,7 +22,6 @@ %bcond_with libalternatives %endif -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -31,8 +30,11 @@ %define psuffix %{nil} %bcond_with test %endif + +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-chardet%{psuffix} -Version: 4.0.0 +Version: 5.0.0 Release: 0 Summary: Universal encoding detector License: LGPL-2.1-or-later @@ -93,16 +95,16 @@ sed -i '1{/^#!/d}' chardet/lang*model.py chardet/metadata/languages.py %install %if !%{with test} -%{python_expand %$python_install -mv %{buildroot}%{_bindir}/chardetect %{buildroot}%{_bindir}/chardetect-%{$python_bin_suffix} -%fdupes %{buildroot}%{$python_sitelib} -} -%prepare_alternative chardetect +%python_install +%python_clone -a %{buildroot}%{_bindir}/chardetect +%python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %check %if %{with test} -%pytest test.py +# https://github.com/chardet/chardet/issues/256 +donttest="test_detect_all_and_detect_one_should_agree" +%pytest -k "not $donttest" %endif %if !%{with test} @@ -120,7 +122,7 @@ mv %{buildroot}%{_bindir}/chardetect %{buildroot}%{_bindir}/chardetect-%{$python %doc README.rst %python_alternative %{_bindir}/chardetect %{python_sitelib}/chardet -%{python_sitelib}/chardet-%{version}-py%{python_version}.egg-info +%{python_sitelib}/chardet-%{version}*-info %endif %changelog