mirror of
https://github.com/google/benchmark.git
synced 2024-12-27 13:00:36 +08:00
c2de526130
* Run `pre-commit autoupdate`, fix stale pyproject.toml comments * Set `--enable_bzlmod=false` for the moment Until the newer nanobind tags are pushed to the BCR, it's best to disable bzlmod for the bindings, because the Python CI breaks due to Bazel 7 enabling bzlmod by default. * Remove E203 ignore, add linebreaks to semantically group ruff options
86 lines
2.1 KiB
TOML
86 lines
2.1 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=64", "setuptools-scm[toml]>=8"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "google_benchmark"
|
|
description = "A library to benchmark code snippets."
|
|
requires-python = ">=3.8"
|
|
license = {file = "LICENSE"}
|
|
keywords = ["benchmark"]
|
|
|
|
authors = [
|
|
{name = "Google", email = "benchmark-discuss@googlegroups.com"},
|
|
]
|
|
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"Intended Audience :: Science/Research",
|
|
"License :: OSI Approved :: Apache Software License",
|
|
"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",
|
|
"Topic :: Software Development :: Testing",
|
|
"Topic :: System :: Benchmark",
|
|
]
|
|
|
|
dynamic = ["readme", "version"]
|
|
|
|
dependencies = [
|
|
"absl-py>=0.7.1",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pre-commit>=3.3.3",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/google/benchmark"
|
|
Documentation = "https://github.com/google/benchmark/tree/main/docs"
|
|
Repository = "https://github.com/google/benchmark.git"
|
|
Discord = "https://discord.gg/cz7UX7wKC2"
|
|
|
|
[tool.setuptools]
|
|
package-dir = {"" = "bindings/python"}
|
|
zip-safe = false
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["bindings/python"]
|
|
|
|
[tool.setuptools.dynamic]
|
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
|
|
[tool.setuptools_scm]
|
|
|
|
[tool.mypy]
|
|
check_untyped_defs = true
|
|
disallow_incomplete_defs = true
|
|
pretty = true
|
|
python_version = "3.11"
|
|
strict_optional = false
|
|
warn_unreachable = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["yaml"]
|
|
ignore_missing_imports = true
|
|
|
|
[tool.ruff]
|
|
# explicitly tell ruff the source directory to correctly identify first-party package.
|
|
src = ["bindings/python"]
|
|
|
|
line-length = 80
|
|
target-version = "py311"
|
|
|
|
# Enable pycodestyle (`E`, `W`), Pyflakes (`F`), and isort (`I`) codes by default.
|
|
select = ["E", "F", "I", "W"]
|
|
ignore = [
|
|
"E501", # line too long
|
|
]
|
|
|
|
[tool.ruff.isort]
|
|
combine-as-imports = true
|