Skip to content

Commit

Permalink
🔥 Remove support for Python 3.5 (#192)
Browse files Browse the repository at this point in the history
Initial support removal and some cleanup are required afterward.
  • Loading branch information
Ousret committed Jun 18, 2022
1 parent 4846792 commit 6ac98eb
Show file tree
Hide file tree
Showing 9 changed files with 1,147 additions and 1,275 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Expand Up @@ -34,7 +34,7 @@ jobs:
isort --check charset_normalizer
- name: Code format (Black)
run: |
black --check --diff --target-version=py35 charset_normalizer
black --check --diff --target-version=py36 charset_normalizer
- name: Style guide enforcement (Flake8)
run: |
flake8 charset_normalizer
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ 3.5, 3.6, 3.7, 3.8, 3.9, "3.10" ]
python-version: [ 3.6, 3.7, 3.8, 3.9, "3.10" ]
os: [ ubuntu-latest ]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10", "3.11-dev"]
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11-dev"]
os: [ubuntu-latest]

steps:
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Expand Up @@ -5,11 +5,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [2.1.0.dev0](https://github.com/Ousret/charset_normalizer/compare/2.0.12...master) (2022-??-??)

### Changed
- Re-use decoded buffer for single byte character sets (PR #175)
- Re-use decoded buffer for single byte character sets from [@nijel](https://github.com/nijel) (PR #175)
- Fixing some performance bottlenecks from [@deedy5](https://github.com/deedy5) (PR #183)

### Fixed
- Workaround potential bug in cpython with Zero Width No-Break Space located in Arabic Presentation Forms-B, Unicode 1.1 not acknowledged as space (PR #175)

### Removed
- Support for Python 3.5 (PR #192)

## [2.0.12](https://github.com/Ousret/charset_normalizer/compare/2.0.11...2.0.12) (2022-02-12)

### Fixed
Expand Down
6 changes: 1 addition & 5 deletions charset_normalizer/api.py
@@ -1,12 +1,8 @@
import logging
from os import PathLike
from os.path import basename, splitext
from typing import BinaryIO, List, Optional, Set

try:
from os import PathLike
except ImportError: # pragma: no cover
PathLike = str # type: ignore

from .cd import (
coherence_ratio,
encoding_languages,
Expand Down

0 comments on commit 6ac98eb

Please sign in to comment.