mirror of
https://github.com/google/benchmark.git
synced 2024-12-26 20:40:21 +08:00
16c6ad83aa
The newly created `pyproject.toml` contains all static metadata as well as the readme and version as dynamic arguments, to be read by setuptools during the build. What is left in the `setup.py` for now is the custom Bazel extension class, since that is not properly supported yet.
51 lines
1.4 KiB
TOML
51 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["setuptools", "wheel"]
|
|
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",
|
|
"Topic :: Software Development :: Testing",
|
|
"Topic :: System :: Benchmark",
|
|
]
|
|
|
|
dynamic = ["readme", "version"]
|
|
|
|
dependencies = [
|
|
"absl-py>=0.7.1",
|
|
]
|
|
|
|
[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]
|
|
version = { attr = "google_benchmark.__version__" }
|
|
readme = { file = "README.md", content-type = "text/markdown" }
|