Skip to content

Commit

Permalink
[DOCS] Update to show github version (apache#7948)
Browse files Browse the repository at this point in the history
* [DOCS] Update to show github version

* Remove dup code
  • Loading branch information
tqchen authored May 3, 2021
1 parent 22c8f8c commit 6db52ef
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 37 deletions.
19 changes: 16 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,31 @@
# General information about the project.
project = "tvm"
author = "Apache Software Foundation"
copyright = "2020, %s" % author
copyright = "2020 - 2021, %s" % author
github_doc_root = "https://github.com/apache/tvm/tree/main/docs/"

os.environ["TVM_BUILD_DOC"] = "1"


def git_describe_version(original_version):
"""Get git describe version."""
ver_py = os.path.join(curr_path, "..", "version.py")
libver = {"__file__": ver_py}
exec(compile(open(ver_py, "rb").read(), ver_py, "exec"), libver, libver)
_, gd_version = libver["git_describe_version"]()
if gd_version != original_version:
print("Use git describe based version %s" % gd_version)
return gd_version


# Version information.
import tvm
from tvm import topi
from tvm import te
from tvm import testing

version = tvm.__version__
release = tvm.__version__
version = git_describe_version(tvm.__version__)
release = version

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones
Expand Down
33 changes: 0 additions & 33 deletions tests/scripts/task_ci_python_setup.sh

This file was deleted.

2 changes: 1 addition & 1 deletion tests/scripts/task_ci_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set -o pipefail
#
echo "Addtiional setup in" ${CI_IMAGE_NAME}

python3 -m pip install --user tlcpack-sphinx-addon==0.1.4 synr==0.3.0
python3 -m pip install --user tlcpack-sphinx-addon==0.1.6 synr==0.3.0

# Rebuild standalone_crt in build/ tree. This file is not currently archived by pack_lib() in
# Jenkinsfile. We expect config.cmake to be present from pack_lib().
Expand Down

0 comments on commit 6db52ef

Please sign in to comment.