Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Populate setuptools description with README.md #11078

Merged
merged 4 commits into from
Apr 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,15 @@ def get_package_data_files():
return ["relay/std/prelude.rly", "relay/std/core.rly"]


def long_description_contents():
with open(
os.path.abspath(os.path.join(CURRENT_DIR, "..", "README.md")), encoding="utf-8"
leandron marked this conversation as resolved.
Show resolved Hide resolved
) as readme:
description = readme.read()

return description


# Temporarily add this directory to the path so we can import the requirements generator
# tool.
sys.path.insert(0, os.path.dirname(__file__))
Expand All @@ -217,6 +226,8 @@ def get_package_data_files():
name="tvm",
version=__version__,
description="TVM: An End to End Tensor IR/DSL Stack for Deep Learning Systems",
long_description=long_description_contents(),
long_description_content_type="text/markdown",
leandron marked this conversation as resolved.
Show resolved Hide resolved
zip_safe=False,
entry_points={"console_scripts": ["tvmc = tvm.driver.tvmc.main:main"]},
install_requires=requirements["core"][1],
Expand Down