mirror of
https://github.com/huggingface/kernels.git
synced 2025-10-20 12:33:46 +08:00
69 lines
1.3 KiB
TOML
69 lines
1.3 KiB
TOML
[project]
|
|
name = "kernels"
|
|
version = "0.4.2"
|
|
description = "Download compute kernels"
|
|
authors = [
|
|
{ name = "OlivierDehaene", email = "olivier@huggingface.co" },
|
|
{ name = "Daniel de Kok", email = "daniel@huggingface.co" },
|
|
{ name = "David Holtz", email = "david@huggingface.co" },
|
|
{ name = "Nicolas Patry", email = "nicolas@huggingface.co" },
|
|
]
|
|
license = { text = "Apache-2.0" }
|
|
readme = "README.md"
|
|
requires-python = ">= 3.9"
|
|
dependencies = [
|
|
"huggingface_hub>=0.26.0,<1.0",
|
|
"packaging>=20.0",
|
|
"tomli>=2.0; python_version<'3.11'",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["setuptools"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"mypy == 1.14.1",
|
|
"pytest >=8",
|
|
# Whatever version is compatible with pytest.
|
|
"pytest-benchmark",
|
|
"torch >=2.5",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
torch = ["torch"]
|
|
|
|
[project.scripts]
|
|
kernels = "kernels.cli:main"
|
|
|
|
[project.entry-points."egg_info.writers"]
|
|
"kernels.lock" = "kernels.lockfile:write_egg_lockfile"
|
|
|
|
|
|
[tool.ruff]
|
|
exclude = [
|
|
".eggs",
|
|
".git",
|
|
".git-rewrite",
|
|
".hg",
|
|
".mypy_cache",
|
|
".nox",
|
|
".pants.d",
|
|
".pytype",
|
|
".ruff_cache",
|
|
".svn",
|
|
".tox",
|
|
".venv",
|
|
".venv*",
|
|
"__pypackages__",
|
|
"_build",
|
|
"build",
|
|
"dist",
|
|
"venv",
|
|
]
|
|
line-length = 119
|
|
# Ignored rules:
|
|
# "E501" -> line length violation
|
|
lint.ignore = ["E501"]
|
|
lint.select = ["E", "F", "I", "W"]
|