17
0

10 Commits

Author SHA256 Message Date
47330596f3 Accepting request 1274387 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1274387
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-charset-normalizer?expand=0&rev=27
2025-05-06 14:38:59 +00:00
ab50880005 Accepting request 1274349 from home:glaubitz:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1274349
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-charset-normalizer?expand=0&rev=53
2025-05-05 09:15:39 +00:00
a740e78bfc Accepting request 1238022 from devel:languages:python
- Use libalternatives instead of update-alternatives, bsc#1235781

OBS-URL: https://build.opensuse.org/request/show/1238022
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-charset-normalizer?expand=0&rev=26
2025-01-16 17:31:17 +00:00
b9035188a5 - Use libalternatives instead of update-alternatives, bsc#1235781
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-charset-normalizer?expand=0&rev=51
2025-01-15 10:38:37 +00:00
8b284f7fc4 Accepting request 1236172 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1236172
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-charset-normalizer?expand=0&rev=25
2025-01-12 10:10:17 +00:00
ce24565e0a Accepting request 1236124 from home:glaubitz:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1236124
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-charset-normalizer?expand=0&rev=49
2025-01-09 12:21:13 +00:00
18a0c71fd1 Accepting request 1221058 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1221058
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-charset-normalizer?expand=0&rev=24
2024-11-05 14:39:43 +00:00
487aa77732 - switch to PEP517 build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-charset-normalizer?expand=0&rev=47
2024-10-28 16:38:02 +00:00
2d943a97e6 Accepting request 1217078 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1217078
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-charset-normalizer?expand=0&rev=23
2024-10-23 19:08:21 +00:00
1c00795eb1 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-charset-normalizer?expand=0&rev=45
2024-10-22 16:00:24 +00:00
4 changed files with 82 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9948e5c17831916ef192cf3f26c744d539eb6f4e9e3b02eea649552c52b10d91
size 95792

BIN
charset_normalizer-3.4.2.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,60 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-charset-normalizer
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# 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}
Name: python-charset-normalizer
Version: 3.3.2
Version: 3.4.2
Release: 0
Summary: Python Universal Charset detector
License: MIT
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
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
%endif
Suggests: python-unicodedata2
BuildArch: noarch
# SECTION test requirements
@@ -42,20 +55,22 @@ Python Universal Charset detector.
%prep
%setup -q -n charset_normalizer-%{version}
# remove code coverage flags from pytest
sed -i '/addopts/d' setup.cfg
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/normalizer
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative normalizer
%post
%python_install_alternative normalizer