forked from pool/python-charset-normalizer
Compare commits
14 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 460eff2f1a | |||
| 0bb2757b8d | |||
| edc4e5e7d4 | |||
| 32a1c29aa6 | |||
| f7e46571b3 | |||
| 35295358a7 | |||
| 93a74fa152 | |||
| b17aad8053 | |||
| 06686c6c46 | |||
| 7e521f133b | |||
| f142f583d0 | |||
| 8e7f63d1ba | |||
| e1a6b9e55c | |||
| 3bf31d75b8 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9948e5c17831916ef192cf3f26c744d539eb6f4e9e3b02eea649552c52b10d91
|
|
||||||
size 95792
|
|
||||||
3
charset_normalizer-3.4.4.tar.gz
Normal file
3
charset_normalizer-3.4.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3f949268d6364d4bda47823e05ef44cc29b6102bde58818eea87d5fdda091ef2
|
||||||
|
size 132984
|
||||||
@@ -1,3 +1,94 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 30 13:24:52 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 3.4.4
|
||||||
|
* Bound `setuptools` to a specific constraint `setuptools>=68,<=81`.
|
||||||
|
* Raised upper bound of mypyc for the optional pre-built extension to v1.18.2
|
||||||
|
* `setuptools-scm` as a build dependency.
|
||||||
|
* Enforced hashes in `dev-requirements.txt` and created `ci-requirements.txt`
|
||||||
|
for security purposes.
|
||||||
|
* Additional pre-built wheels for riscv64, s390x, and armv7l architectures.
|
||||||
|
* Restore ` multiple.intoto.jsonl` in GitHub releases in addition to individual
|
||||||
|
attestation file per wheel.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Sep 14 21:00:13 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.4.3:
|
||||||
|
* mypy(c) is no longer a required dependency at build time if
|
||||||
|
`CHARSET_NORMALIZER_USE_MYPYC` isn't set to `1`. (#595)
|
||||||
|
* automatically lower confidence on small bytes samples that
|
||||||
|
are not Unicode in `detect` output legacy function.
|
||||||
|
* Custom build backend to overcome inability to mark mypy as an
|
||||||
|
optional dependency in the build phase.
|
||||||
|
* Support for Python 3.14
|
||||||
|
* sdist archive contained useless directories.
|
||||||
|
* automatically fallback on valid UTF-16 or UTF-32 even if the
|
||||||
|
md says it's noisy.
|
||||||
|
* SBOM are automatically published to the relevant GitHub
|
||||||
|
release to comply with regulatory changes.
|
||||||
|
* Each published wheel comes with its SBOM. We choose CycloneDX
|
||||||
|
as the format.
|
||||||
|
* Prebuilt optimized wheel are no longer distributed by default
|
||||||
|
for CPython 3.7 due to a change in cibuildwheel.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 5 06:58:38 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 3.4.2
|
||||||
|
* Addressed the DeprecationWarning in our CLI regarding `argparse.FileType`
|
||||||
|
by backporting the target class into the package. (#591)
|
||||||
|
* Improved the overall reliability of the detector with CJK Ideographs.
|
||||||
|
(#605) (#587)
|
||||||
|
* Optional mypyc compilation upgraded to version 1.15 for Python >= 3.8
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 15 10:26:52 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Use libalternatives instead of update-alternatives, bsc#1235781
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 9 09:05:30 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 3.4.1
|
||||||
|
* Project metadata are now stored using `pyproject.toml` instead of
|
||||||
|
`setup.cfg` using setuptools as the build backend.
|
||||||
|
* Enforce annotation delayed loading for a simpler and consistent
|
||||||
|
types in the project.
|
||||||
|
* Optional mypyc compilation upgraded to version 1.14 for Python >= 3.8
|
||||||
|
* Added pre-commit configuration.
|
||||||
|
* Added noxfile.
|
||||||
|
* Removed `build-requirements.txt` as per using `pyproject.toml`
|
||||||
|
native build configuration.
|
||||||
|
* Removed `bin/integration.py` and `bin/serve.py` in favor of downstream
|
||||||
|
integration test (see noxfile).
|
||||||
|
* Removed `setup.cfg` in favor of `pyproject.toml` metadata configuration.
|
||||||
|
* Removed unused `utils.range_scan` function.
|
||||||
|
* Converting content to Unicode bytes may insert `utf_8` instead of
|
||||||
|
preferred `utf-8`. (#572)
|
||||||
|
* Deprecation warning "'count' is passed as positional argument" when
|
||||||
|
converting to Unicode bytes on Python 3.13+
|
||||||
|
- Drop sed command to remove code coverage flags from pytest
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 28 16:37:52 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- switch to PEP517 build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 22 16:00:12 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.4.0:
|
||||||
|
* Argument `--no-preemptive` in the CLI to prevent the detector
|
||||||
|
to search for hints.
|
||||||
|
* Support for Python 3.13
|
||||||
|
* Relax the TypeError exception thrown when trying to compare a
|
||||||
|
CharsetMatch with anything else than a CharsetMatch.
|
||||||
|
* Improved the general reliability of the detector based on
|
||||||
|
user feedbacks. (#520) (#509) (#498) (#407)
|
||||||
|
* Declared charset in content (preemptive detection) not
|
||||||
|
changed when converting to utf-8 bytes.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 25 14:12:18 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Sat Nov 25 14:12:18 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-charset-normalizer
|
# spec file for package python-charset-normalizer
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,20 +16,33 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-charset-normalizer
|
Name: python-charset-normalizer
|
||||||
Version: 3.3.2
|
Version: 3.4.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python Universal Charset detector
|
Summary: Python Universal Charset detector
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/ousret/charset_normalizer
|
URL: https://github.com/ousret/charset_normalizer
|
||||||
Source: https://github.com/Ousret/charset_normalizer/archive/refs/tags/%{version}.tar.gz#/charset_normalizer-%{version}.tar.gz
|
Source: https://github.com/Ousret/charset_normalizer/archive/refs/tags/%{version}.tar.gz#/charset_normalizer-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with libalternatives}
|
||||||
|
Requires: alts
|
||||||
|
BuildRequires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
Suggests: python-unicodedata2
|
Suggests: python-unicodedata2
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
@@ -42,20 +55,22 @@ Python Universal Charset detector.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n charset_normalizer-%{version}
|
%setup -q -n charset_normalizer-%{version}
|
||||||
# remove code coverage flags from pytest
|
|
||||||
sed -i '/addopts/d' setup.cfg
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/normalizer
|
%python_clone -a %{buildroot}%{_bindir}/normalizer
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative normalizer
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative normalizer
|
%python_install_alternative normalizer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user