diff --git a/chardet-5.0.0.tar.gz b/chardet-5.0.0.tar.gz deleted file mode 100644 index d6d2d96..0000000 --- a/chardet-5.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0368df2bfd78b5fc20572bb4e9bb7fb53e2c094f60ae9993339e8671d0afb8aa -size 2021116 diff --git a/chardet-5.1.0.tar.gz b/chardet-5.1.0.tar.gz new file mode 100644 index 0000000..48851b1 --- /dev/null +++ b/chardet-5.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d62712b956bc154f85fb0a266e2a3c5913c2967e00348701b32411d6def31e5 +size 2069617 diff --git a/python-chardet.changes b/python-chardet.changes index 7e5edd7..1b1c995 100644 --- a/python-chardet.changes +++ b/python-chardet.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Mon Jan 2 18:40:26 UTC 2023 - Dirk Müller + +- update to 5.1.0: + * Add should_rename_legacy argument to most functions, which will rename + older encodings to their more modern equivalents (e.g., GB2312 becomes + GB18030) (#264, @dan-blanchard) + * Add capital letter sharp S and ISO-8859-15 support + * Add a prober for MacRoman encoding + * Add --minimal flag to chardetect command + * Add type annotations to the project and run mypy on CI + * Add support for Python 3.11 + * Clarify LGPL version in License trove classifier (#255, @musicinmybrain) + * Remove support for EOL Python 3.6 (#260, @jdufresne) + * Remove unnecessary guards for non-falsey values (#259, @jdufresne) + * Switch to Python 3.10 release in GitHub actions (#257, @jdufresne) + * Remove setup.py in favor of build package (#262, @jdufresne) + * Run tests on macos, Windows, and 3.11-dev (#267, @dan-blanchard) + ------------------------------------------------------------------- Tue Jul 5 13:21:09 UTC 2022 - Ben Greiner diff --git a/python-chardet.spec b/python-chardet.spec index e574e66..b5c7ff5 100644 --- a/python-chardet.spec +++ b/python-chardet.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,13 +34,15 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-chardet%{psuffix} -Version: 5.0.0 +Version: 5.1.0 Release: 0 Summary: Universal encoding detector License: LGPL-2.1-or-later URL: https://github.com/chardet/chardet Source0: https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 %if %{with libalternatives} @@ -91,11 +93,11 @@ or more files:: sed -i '1{/^#!/d}' chardet/lang*model.py chardet/metadata/languages.py %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/chardetect %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif