Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔥 Remove support for Python 3.5 #192

Merged
merged 4 commits into from
Jun 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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