mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
Remove support for Python 3.5 (#714)
* Python - remove support for python 3.5 * revert ci * revert build-wheels.sh * Update CHANGELOG.md
This commit is contained in:
2
.github/workflows/python-release-conda.yml
vendored
2
.github/workflows/python-release-conda.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
python: [3.5, 3.6, 3.7, 3.8, 3.9]
|
python: [3.6, 3.7, 3.8, 3.9]
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash -l {0}
|
shell: bash -l {0}
|
||||||
|
4
.github/workflows/python-release.yml
vendored
4
.github/workflows/python-release.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python: [3.5, 3.6, 3.7, 3.8, 3.9]
|
python: [3.6, 3.7, 3.8, 3.9]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
@ -76,7 +76,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, macos-10.15]
|
os: [windows-latest, macos-10.15]
|
||||||
python: [3.5, 3.6, 3.7, 3.8, 3.9]
|
python: [3.6, 3.7, 3.8, 3.9]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
2
.github/workflows/python.yml
vendored
2
.github/workflows/python.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python: [3.5, 3.6, 3.7, 3.8]
|
python: [3.6, 3.7, 3.8, 3.9]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Added
|
### Added
|
||||||
- [#693]: Add a CTC Decoder for Wave2Vec models
|
- [#693]: Add a CTC Decoder for Wave2Vec models
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
- [#714]: Removed support for Python 3.5
|
||||||
|
|
||||||
## [0.10.2]
|
## [0.10.2]
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@ -318,6 +321,7 @@ delimiter (Works like `.split(delimiter)`)
|
|||||||
- Fix a bug that was causing crashes in Python 3.5
|
- Fix a bug that was causing crashes in Python 3.5
|
||||||
|
|
||||||
|
|
||||||
|
[#714]: https://github.com/huggingface/tokenizers/pull/714
|
||||||
[#707]: https://github.com/huggingface/tokenizers/pull/707
|
[#707]: https://github.com/huggingface/tokenizers/pull/707
|
||||||
[#693]: https://github.com/huggingface/tokenizers/pull/693
|
[#693]: https://github.com/huggingface/tokenizers/pull/693
|
||||||
[#686]: https://github.com/huggingface/tokenizers/pull/686
|
[#686]: https://github.com/huggingface/tokenizers/pull/686
|
||||||
|
@ -7,12 +7,12 @@ dir_guard=@mkdir -p $(@D)
|
|||||||
# Format source code automatically
|
# Format source code automatically
|
||||||
style:
|
style:
|
||||||
python stub.py
|
python stub.py
|
||||||
black --line-length 100 --target-version py35 examples py_src/tokenizers tests
|
black --line-length 100 --target-version py36 examples py_src/tokenizers tests
|
||||||
|
|
||||||
# Check the source code is formatted correctly
|
# Check the source code is formatted correctly
|
||||||
check-style:
|
check-style:
|
||||||
python stub.py --check
|
python stub.py --check
|
||||||
black --check --line-length 100 --target-version py35 examples py_src/tokenizers tests
|
black --check --line-length 100 --target-version py36 examples py_src/tokenizers tests
|
||||||
|
|
||||||
TESTS_RESOURCES = $(DATA_DIR)/small.txt $(DATA_DIR)/roberta.json
|
TESTS_RESOURCES = $(DATA_DIR)/small.txt $(DATA_DIR)/roberta.json
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ set -ex
|
|||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
|
||||||
for PYBIN in /opt/python/{cp35-cp35m,cp36-cp36m,cp37-cp37m,cp38-cp38,cp39-cp39}/bin; do
|
for PYBIN in /opt/python/{cp36-cp36m,cp37-cp37m,cp38-cp38,cp39-cp39}/bin; do
|
||||||
export PYTHON_SYS_EXECUTABLE="$PYBIN/python"
|
export PYTHON_SYS_EXECUTABLE="$PYBIN/python"
|
||||||
|
|
||||||
"${PYBIN}/pip" install -U setuptools-rust==0.11.3
|
"${PYBIN}/pip" install -U setuptools-rust==0.11.3
|
||||||
|
@ -3,5 +3,5 @@ requires = ["setuptools", "wheel", "setuptools-rust"]
|
|||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
target-version = ['py35']
|
target-version = ['py36']
|
||||||
line-length = 100
|
line-length = 100
|
||||||
|
@ -122,7 +122,7 @@ def py_file(module, origin):
|
|||||||
|
|
||||||
def do_black(content, is_pyi):
|
def do_black(content, is_pyi):
|
||||||
mode = black.Mode(
|
mode = black.Mode(
|
||||||
target_versions={black.TargetVersion.PY35},
|
target_versions={black.TargetVersion.PY36},
|
||||||
line_length=100,
|
line_length=100,
|
||||||
is_pyi=is_pyi,
|
is_pyi=is_pyi,
|
||||||
string_normalization=True,
|
string_normalization=True,
|
||||||
|
Reference in New Issue
Block a user