Skip to content

Commit

Permalink
Bump charset-normalizer from 2.0.12 to 3.2.0 (#7390)
Browse files Browse the repository at this point in the history
Bumps [charset-normalizer](https://github.com/Ousret/charset_normalizer)
from 2.0.12 to 3.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Ousret/charset_normalizer/releases">charset-normalizer's
releases</a>.</em></p>
<blockquote>
<h2>Version 3.2.0</h2>
<h2><a
href="https://github.com/Ousret/charset_normalizer/compare/3.1.0...3.2.0">3.2.0</a>
(2023-06-07)</h2>
<h3>Changed</h3>
<ul>
<li>Typehint for function <code>from_path</code> no longer enforce
<code>PathLike</code> as its first argument</li>
<li>Minor improvement over the global detection reliability</li>
</ul>
<h3>Added</h3>
<ul>
<li>Introduce function <code>is_binary</code> that relies on main
capabilities, and is optimized to detect binaries</li>
<li>Propagate <code>enable_fallback</code> argument throughout
<code>from_bytes</code>, <code>from_path</code>, and
<code>from_fp</code> that allow a deeper control over the detection
(default True)</li>
<li>Explicit support for Python 3.12</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Edge case detection failure where a file would contain 'very-long'
camel-cased word (Issue <a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/289">#289</a>)</li>
</ul>
<h2>Version 3.1.0</h2>
<h2><a
href="https://github.com/Ousret/charset_normalizer/compare/3.0.1...3.1.0">3.1.0</a>
(2023-03-06)</h2>
<h3>Added</h3>
<ul>
<li>Argument <code>should_rename_legacy</code> for legacy function
<code>detect</code> and disregard any new arguments without errors (PR
<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/262">#262</a>)</li>
</ul>
<h3>Removed</h3>
<ul>
<li>Support for Python 3.6 (PR <a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/260">#260</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Optional speedup provided by mypy/c 1.0.1</li>
</ul>
<h2>Version 3.0.1</h2>
<h2><a
href="https://github.com/Ousret/charset_normalizer/compare/3.0.0...3.0.1">3.0.1</a>
(2022-11-18)</h2>
<h3>Fixed</h3>
<ul>
<li>Multi-bytes cutter/chunk generator did not always cut correctly (PR
<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/233">#233</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Speedup provided using mypy/c 0.990 on Python &gt;= 3.7</li>
</ul>
<h2>Version 3.0.0</h2>
<h2><a
href="https://github.com/Ousret/charset_normalizer/compare/2.1.1...3.0.0">3.0.0</a>
(2022-10-20)</h2>
<h3>Added</h3>
<ul>
<li>Extend the capability of explain=True when cp_isolation contains at
most two entries (min one), will log in details of the Mess-detector
results</li>
<li>Support for alternative language frequency set in
charset_normalizer.assets.FREQUENCIES</li>
<li>Add parameter <code>language_threshold</code> in
<code>from_bytes</code>, <code>from_path</code> and <code>from_fp</code>
to adjust the minimum expected coherence ratio</li>
<li><code>normalizer --version</code> now specify if the current version
provides extra speedup (meaning mypyc compilation whl)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Build with static metadata (not pyproject.toml yet)</li>
<li>Make language detection stricter</li>
<li>Optional: Module <code>md.py</code> can be compiled using Mypyc to
provide an extra speedup up to 4x faster than v2.1</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/Ousret/charset_normalizer/blob/master/CHANGELOG.md">charset-normalizer's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/Ousret/charset_normalizer/compare/3.1.0...3.2.0">3.2.0</a>
(2023-06-07)</h2>
<h3>Changed</h3>
<ul>
<li>Typehint for function <code>from_path</code> no longer enforce
<code>PathLike</code> as its first argument</li>
<li>Minor improvement over the global detection reliability</li>
</ul>
<h3>Added</h3>
<ul>
<li>Introduce function <code>is_binary</code> that relies on main
capabilities, and optimized to detect binaries</li>
<li>Propagate <code>enable_fallback</code> argument throughout
<code>from_bytes</code>, <code>from_path</code>, and
<code>from_fp</code> that allow a deeper control over the detection
(default True)</li>
<li>Explicit support for Python 3.12</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Edge case detection failure where a file would contain 'very-long'
camel cased word (Issue <a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/289">#289</a>)</li>
</ul>
<h2><a
href="https://github.com/Ousret/charset_normalizer/compare/3.0.1...3.1.0">3.1.0</a>
(2023-03-06)</h2>
<h3>Added</h3>
<ul>
<li>Argument <code>should_rename_legacy</code> for legacy function
<code>detect</code> and disregard any new arguments without errors (PR
<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/262">#262</a>)</li>
</ul>
<h3>Removed</h3>
<ul>
<li>Support for Python 3.6 (PR <a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/260">#260</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Optional speedup provided by mypy/c 1.0.1</li>
</ul>
<h2><a
href="https://github.com/Ousret/charset_normalizer/compare/3.0.0...3.0.1">3.0.1</a>
(2022-11-18)</h2>
<h3>Fixed</h3>
<ul>
<li>Multi-bytes cutter/chunk generator did not always cut correctly (PR
<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/233">#233</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Speedup provided by mypy/c 0.990 on Python &gt;= 3.7</li>
</ul>
<h2><a
href="https://github.com/Ousret/charset_normalizer/compare/2.1.1...3.0.0">3.0.0</a>
(2022-10-20)</h2>
<h3>Added</h3>
<ul>
<li>Extend the capability of explain=True when cp_isolation contains at
most two entries (min one), will log in details of the Mess-detector
results</li>
<li>Support for alternative language frequency set in
charset_normalizer.assets.FREQUENCIES</li>
<li>Add parameter <code>language_threshold</code> in
<code>from_bytes</code>, <code>from_path</code> and <code>from_fp</code>
to adjust the minimum expected coherence ratio</li>
<li><code>normalizer --version</code> now specify if current version
provide extra speedup (meaning mypyc compilation whl)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Build with static metadata using 'build' frontend</li>
<li>Make the language detection stricter</li>
<li>Optional: Module <code>md.py</code> can be compiled using Mypyc to
provide an extra speedup up to 4x faster than v2.1</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>CLI with opt --normalize fail when using full path for files</li>
<li>TooManyAccentuatedPlugin induce false positive on the mess detection
when too few alpha character have been fed to it</li>
<li>Sphinx warnings when generating the documentation</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Upgrade guide</summary>
<p><em>Sourced from <a
href="https://github.com/Ousret/charset_normalizer/blob/master/UPGRADE.md">charset-normalizer's
upgrade guide</a>.</em></p>
<blockquote>
<h2>Guide to upgrade your code from v1 to v2</h2>
<ul>
<li>If you are using the legacy <code>detect</code> function, that is
it. You have nothing to do.</li>
</ul>
<h2>Detection</h2>
<h3>Before</h3>
<pre lang="python"><code>from charset_normalizer import
CharsetNormalizerMatches
<p>results = CharsetNormalizerMatches.from_bytes(
'我没有埋怨,磋砣的只是一些时间。'.encode('utf_32')
)
</code></pre></p>
<h3>After</h3>
<pre lang="python"><code>from charset_normalizer import from_bytes
<p>results = from_bytes(
'我没有埋怨,磋砣的只是一些时间。'.encode('utf_32')
)
</code></pre></p>
<p>Methods that once were staticmethods of the class
<code>CharsetNormalizerMatches</code> are now basic functions.
<code>from_fp</code>, <code>from_bytes</code>, <code>from_fp</code> and
`` are concerned.</p>
<p>Staticmethods scheduled to be removed in version 3.0</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Ousret/charset_normalizer/commit/0424c805c968d81f90281bf1ea0c7a1cd15b0281"><code>0424c80</code></a>
Add workflow_call for ci.yml workflow (reusable) (<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/307">#307</a>)</li>
<li><a
href="https://github.com/Ousret/charset_normalizer/commit/782885e789f0e97fbda796255a3bac5ec4cd656f"><code>782885e</code></a>
Fix issue 289, add function is_binary, add explicit support py 3.12 (<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/306">#306</a>)</li>
<li><a
href="https://github.com/Ousret/charset_normalizer/commit/1b0fb5cb06bb0e89bf47b954757fe664e5cd2e0d"><code>1b0fb5c</code></a>
:arrow_up: Bump pytest from 7.3.2 to 7.4.0 (<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/304">#304</a>)</li>
<li><a
href="https://github.com/Ousret/charset_normalizer/commit/3acf08eac971a76fe6e2b6f6d950289e7c2a0ff3"><code>3acf08e</code></a>
:arrow_up: Bump mypy from 1.3.0 to 1.4.1 (<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/305">#305</a>)</li>
<li><a
href="https://github.com/Ousret/charset_normalizer/commit/5c030b5e6f000bac2b923e3035b705ffb0d7c835"><code>5c030b5</code></a>
Replace emoji shortcodes with UTF-8 emoji (<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/303">#303</a>)</li>
<li><a
href="https://github.com/Ousret/charset_normalizer/commit/f9f686b1d6d3cf791e989cb64a0d121d42365473"><code>f9f686b</code></a>
:arrow_up: Bump pypa/cibuildwheel from 2.13.0 to 2.13.1 (<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/302">#302</a>)</li>
<li><a
href="https://github.com/Ousret/charset_normalizer/commit/d42cdaf80c391b01f3c0f6d89fcdbdf4ae55018b"><code>d42cdaf</code></a>
:arrow_up: Bump slsa-framework/slsa-github-generator from 1.6.0 to 1.7.0
(<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/301">#301</a>)</li>
<li><a
href="https://github.com/Ousret/charset_normalizer/commit/f8e7db1df076492957aa4088d85c3a586a14b10a"><code>f8e7db1</code></a>
:arrow_up: Bump pytest from 7.3.1 to 7.3.2 (<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/300">#300</a>)</li>
<li><a
href="https://github.com/Ousret/charset_normalizer/commit/6f029624ee63d96175af84c233fa4c4a069e7001"><code>6f02962</code></a>
:arrow_up: Bump pytest-cov from 4.0.0 to 4.1.0 (<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/298">#298</a>)</li>
<li><a
href="https://github.com/Ousret/charset_normalizer/commit/8028c56fb5c1e640cb81371e451b498770825880"><code>8028c56</code></a>
:arrow_up: Bump pypa/cibuildwheel from 2.12.3 to 2.13.0 (<a
href="https://redirect.github.com/Ousret/charset_normalizer/issues/299">#299</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/Ousret/charset_normalizer/compare/2.0.12...3.2.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=charset-normalizer&package-manager=pip&previous-version=2.0.12&new-version=3.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sam Bull <[email protected]>
  • Loading branch information
3 people authored Jul 26, 2023
1 parent bc237ff commit 2d0333d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aiosignal==1.2.0
async-timeout==4.0.2
Brotli==1.0.9
cchardet==2.1.7; python_version < "3.10" # Unmaintained: aio-libs/aiohttp#6819
charset-normalizer==2.0.12
charset-normalizer==3.2.0
frozenlist==1.4.0
gunicorn==21.2.0
uvloop==0.17.0; platform_system!="Windows" and implementation_name=="cpython" and python_version<"3.9" # MagicStack/uvloop#14
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cffi==1.15.0
# pycares
cfgv==3.3.1
# via pre-commit
charset-normalizer==2.0.12
charset-normalizer==3.2.0
# via
# -r requirements/base.txt
# requests
Expand Down

0 comments on commit 2d0333d

Please sign in to comment.