15
0

Accepting request 1046266 from devel:languages:python

- 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)

OBS-URL: https://build.opensuse.org/request/show/1046266
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-chardet?expand=0&rev=32
This commit is contained in:
2023-01-03 14:04:25 +00:00
committed by Git OBS Bridge
4 changed files with 28 additions and 7 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0368df2bfd78b5fc20572bb4e9bb7fb53e2c094f60ae9993339e8671d0afb8aa
size 2021116

BIN
chardet-5.1.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Mon Jan 2 18:40:26 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <code@bnavigator.de>

View File

@@ -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