| 1 |
[build-system] |
| 2 |
requires = ["setuptools", "setuptools-scm[toml]", "wheel"] |
| 3 |
build-backend = "setuptools.build_meta" |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "google_benchmark" |
| 7 |
description = "A library to benchmark code snippets." |
| 8 |
requires-python = ">=3.8" |
| 9 |
license = {file = "LICENSE"} |
| 10 |
keywords = ["benchmark"] |
| 11 |
|
| 12 |
authors = [ |
| 13 |
{name = "Google", email = "[email protected]"}, |
| 14 |
] |
| 15 |
|
| 16 |
classifiers = [ |
| 17 |
"Development Status :: 4 - Beta", |
| 18 |
"Intended Audience :: Developers", |
| 19 |
"Intended Audience :: Science/Research", |
| 20 |
"License :: OSI Approved :: Apache Software License", |
| 21 |
"Programming Language :: Python :: 3.8", |
| 22 |
"Programming Language :: Python :: 3.9", |
| 23 |
"Programming Language :: Python :: 3.10", |
| 24 |
"Programming Language :: Python :: 3.11", |
| 25 |
"Programming Language :: Python :: 3.12", |
| 26 |
"Topic :: Software Development :: Testing", |
| 27 |
"Topic :: System :: Benchmark", |
| 28 |
] |
| 29 |
|
| 30 |
dynamic = ["readme", "version"] |
| 31 |
|
| 32 |
dependencies = [ |
| 33 |
"absl-py>=0.7.1", |
| 34 |
] |
| 35 |
|
| 36 |
[project.optional-dependencies] |
| 37 |
dev = [ |
| 38 |
"pre-commit>=3.3.3", |
| 39 |
] |
| 40 |
|
| 41 |
[project.urls] |
| 42 |
Homepage = "https://github.com/google/benchmark" |
| 43 |
Documentation = "https://github.com/google/benchmark/tree/main/docs" |
| 44 |
Repository = "https://github.com/google/benchmark.git" |
| 45 |
Discord = "https://discord.gg/cz7UX7wKC2" |
| 46 |
|
| 47 |
[tool.setuptools] |
| 48 |
package-dir = {"" = "bindings/python"} |
| 49 |
zip-safe = false |
| 50 |
|
| 51 |
[tool.setuptools.packages.find] |
| 52 |
where = ["bindings/python"] |
| 53 |
|
| 54 |
[tool.setuptools.dynamic] |
| 55 |
readme = { file = "README.md", content-type = "text/markdown" } |
| 56 |
|
| 57 |
[tool.setuptools_scm] |
| 58 |
|
| 59 |
[tool.mypy] |
| 60 |
check_untyped_defs = true |
| 61 |
disallow_incomplete_defs = true |
| 62 |
pretty = true |
| 63 |
python_version = "3.11" |
| 64 |
strict_optional = false |
| 65 |
warn_unreachable = true |
| 66 |
|
| 67 |
[[tool.mypy.overrides]] |
| 68 |
module = ["yaml"] |
| 69 |
ignore_missing_imports = true |
| 70 |
|
| 71 |
[tool.ruff] |
| 72 |
# explicitly tell ruff the source directory to correctly identify first-party package. |
| 73 |
src = ["bindings/python"] |
| 74 |
|
| 75 |
line-length = 80 |
| 76 |
target-version = "py311" |
| 77 |
|
| 78 |
# Enable pycodestyle (`E`, `W`), Pyflakes (`F`), and isort (`I`) codes by default. |
| 79 |
select = ["E", "F", "I", "W"] |
| 80 |
ignore = [ |
| 81 |
"E501", # line too long |
| 82 |
] |
| 83 |
|
| 84 |
[tool.ruff.isort] |
| 85 |
combine-as-imports = true |