From fbe3365a139e6ebbee5ba4fe499a07c1f64b266e Mon Sep 17 00:00:00 2001 From: Nighthawk Date: Tue, 11 Feb 2025 17:52:59 +0800 Subject: [PATCH] Update metadata as Python3.7 and Python3.8 support was dropped (#1724) * Update metadata as python3.7 and python3.8 support was dropped * Format pyproject.toml: unify quotes and indentation --- bindings/python/pyproject.toml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index 50a340ac..ead48223 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -1,9 +1,9 @@ [project] -name = 'tokenizers' -requires-python = '>=3.9' +name = "tokenizers" +requires-python = ">=3.9" authors = [ - { name = 'Nicolas Patry', email = 'patry.nicolas@protonmail.com' }, - { name = 'Anthony Moi', email = 'anthony@huggingface.co' }, + { name = "Nicolas Patry", email = "patry.nicolas@protonmail.com" }, + { name = "Anthony Moi", email = "anthony@huggingface.co" }, ] classifiers = [ "Development Status :: 5 - Production/Stable", @@ -13,20 +13,21 @@ classifiers = [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3 :: Only", "Topic :: Scientific/Engineering :: Artificial Intelligence", ] keywords = ["NLP", "tokenizer", "BPE", "transformer", "deep learning"] -dynamic = ['description', 'license', 'readme', 'version'] +dynamic = ["description", "license", "readme", "version"] dependencies = ["huggingface_hub>=0.16.4,<1.0"] [project.urls] -Homepage = 'https://github.com/huggingface/tokenizers' -Source = 'https://github.com/huggingface/tokenizers' +Homepage = "https://github.com/huggingface/tokenizers" +Source = "https://github.com/huggingface/tokenizers" [project.optional-dependencies] @@ -42,12 +43,12 @@ build-backend = "maturin" [tool.maturin] python-source = "py_src" module-name = "tokenizers.tokenizers" -bindings = 'pyo3' +bindings = "pyo3" features = ["pyo3/extension-module"] [tool.black] line-length = 119 -target-version = ['py35'] +target-version = ["py35"] [tool.ruff] line-length = 119