mirror of
https://github.com/google/benchmark.git
synced 2025-03-14 03:10:22 +08:00
Add long description and content type for proper PyPI presentation (#1361)
This commit adds the two fields `long_description` and `long_description_content_type` to `setup.py`. These can be used for proper project presentation on the PyPI project page, which is currently a placeholder.
This commit is contained in:
parent
d08e7b6056
commit
df7749cd09
6
setup.py
6
setup.py
@ -16,6 +16,10 @@ HERE = os.path.dirname(os.path.abspath(__file__))
|
||||
IS_WINDOWS = sys.platform.startswith("win")
|
||||
|
||||
|
||||
with open("README.md", "r", encoding="utf-8") as fp:
|
||||
long_description = fp.read()
|
||||
|
||||
|
||||
def _get_version():
|
||||
"""Parse the version string from __init__.py."""
|
||||
with open(
|
||||
@ -118,6 +122,8 @@ setuptools.setup(
|
||||
version=_get_version(),
|
||||
url="https://github.com/google/benchmark",
|
||||
description="A library to benchmark code snippets.",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
author="Google",
|
||||
author_email="benchmark-py@google.com",
|
||||
# Contained modules and scripts.
|
||||
|
Loading…
Reference in New Issue
Block a user