Skip to content

Commit d7fceae

Browse files
authored
Merge branch 'huggingface:main' into feature-sso
2 parents 3f340bb + 4f1a810 commit d7fceae

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

bindings/python/pyproject.toml

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[project]
2-
name = 'tokenizers'
3-
requires-python = '>=3.9'
2+
name = "tokenizers"
3+
requires-python = ">=3.9"
44
authors = [
5-
{ name = 'Nicolas Patry', email = '[email protected]' },
6-
{ name = 'Anthony Moi', email = '[email protected]' },
5+
{ name = "Nicolas Patry", email = "[email protected]" },
6+
{ name = "Anthony Moi", email = "[email protected]" },
77
]
88
classifiers = [
99
"Development Status :: 5 - Production/Stable",
@@ -13,20 +13,21 @@ classifiers = [
1313
"License :: OSI Approved :: Apache Software License",
1414
"Operating System :: OS Independent",
1515
"Programming Language :: Python :: 3",
16-
"Programming Language :: Python :: 3.7",
17-
"Programming Language :: Python :: 3.8",
1816
"Programming Language :: Python :: 3.9",
1917
"Programming Language :: Python :: 3.10",
2018
"Programming Language :: Python :: 3.11",
19+
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
21+
"Programming Language :: Python :: 3 :: Only",
2122
"Topic :: Scientific/Engineering :: Artificial Intelligence",
2223
]
2324
keywords = ["NLP", "tokenizer", "BPE", "transformer", "deep learning"]
24-
dynamic = ['description', 'license', 'readme', 'version']
25+
dynamic = ["description", "license", "readme", "version"]
2526
dependencies = ["huggingface_hub>=0.16.4,<1.0"]
2627

2728
[project.urls]
28-
Homepage = 'https://github.com/huggingface/tokenizers'
29-
Source = 'https://github.com/huggingface/tokenizers'
29+
Homepage = "https://github.com/huggingface/tokenizers"
30+
Source = "https://github.com/huggingface/tokenizers"
3031

3132

3233
[project.optional-dependencies]
@@ -42,12 +43,12 @@ build-backend = "maturin"
4243
[tool.maturin]
4344
python-source = "py_src"
4445
module-name = "tokenizers.tokenizers"
45-
bindings = 'pyo3'
46+
bindings = "pyo3"
4647
features = ["pyo3/extension-module"]
4748

4849
[tool.black]
4950
line-length = 119
50-
target-version = ['py35']
51+
target-version = ["py35"]
5152

5253
[tool.ruff]
5354
line-length = 119

tokenizers/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ itertools = "0.13"
6969
log = "0.4"
7070
derive_builder = "0.20"
7171
spm_precompiled = "0.1.3"
72-
hf-hub = { version = "0.3.2", optional = true }
72+
hf-hub = { version = "0.4.1", features = ["ureq"], default-features = false, optional = true }
7373
aho-corasick = "1.1"
7474
paste = "1.0.14"
7575
macro_rules_attribute = "0.2.0"
@@ -87,6 +87,7 @@ esaxx_fast = ["esaxx-rs/cpp"]
8787
progressbar = ["indicatif"]
8888
http = ["hf-hub"]
8989
unstable_wasm = ["fancy-regex", "getrandom/js"]
90+
rustls-tls = ["hf-hub?/rustls-tls"]
9091

9192
[dev-dependencies]
9293
criterion = "0.5"

0 commit comments

Comments
 (0)