Skip to content

Commit

Permalink
sphinx: get version from git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Jun 2, 2020
1 parent 2b3fe5f commit 9b125a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mavsdk/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))


# -- Project information -----------------------------------------------------
import subprocess

project = 'MAVSDK-Python'
copyright = '2020, Jonas Vautherin, Julian Oes'
author = 'Jonas Vautherin, Julian Oes'

result = subprocess.run(['git', 'describe', '--tag', '--abbrev=0'],
stdout=subprocess.PIPE)

# The full version, including alpha/beta/rc tags
release = '0.7.0'
release = result.stdout.decode('utf-8')


# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit 9b125a5

Please sign in to comment.