From 65b2156d9cc0aa6b5c3dc7a6bd600d98b281a13b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 14 Jul 2019 12:45:00 -0700 Subject: [PATCH] Show version in docs Thanks, @nedbat https://twitter.com/nedbat/status/1150490436114534400 --- docs/conf.py | 2 +- docs/index.rst | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 33c4153..8429616 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -58,7 +58,7 @@ pipe = Popen("git describe --tags --always", stdout=PIPE, shell=True) git_version = pipe.stdout.read().decode("utf8") if git_version: - version = git_version + version = git_version.rsplit("-", 1)[0] release = git_version else: version = "" diff --git a/docs/index.rst b/docs/index.rst index 2a8d4c5..f50d76e 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,6 +1,6 @@ -============== - sqlite-utils -============== +======================= + sqlite-utils |version| +======================= *Python utility functions for manipulating SQLite databases*