diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2021-05-12 21:43:59 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-05-13 09:33:06 +0000 |
commit | eddd8e3588561039985b27edf059db6033bfdfab (patch) | |
tree | 44896887d6070853ea77a18cae218f5d4ef4d93a /test/doc/conf.py | |
parent | fd77f8c00c8e9d528d91a9cefae1878e383582ed (diff) |
tests: move test source to vpp/test
- Generate copyright year and version
instead of using hard-coded data
Type: refactor
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Change-Id: I6058f5025323b3aa483f5df4a2c4371e27b5914e
Diffstat (limited to 'test/doc/conf.py')
-rw-r--r-- | test/doc/conf.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/doc/conf.py b/test/doc/conf.py index f5e974954d8..f73cde27fae 100644 --- a/test/doc/conf.py +++ b/test/doc/conf.py @@ -18,7 +18,9 @@ # import os import sys -sys.path.insert(0, os.path.abspath('../../build-root/build-test/src')) +import subprocess +from datetime import date +sys.path.insert(0, os.path.abspath('..')) # -- General configuration ------------------------------------------------ @@ -59,17 +61,18 @@ master_doc = 'index' # General information about the project. project = u'VPP test framework' -copyright = u'2019, VPP team' -author = u'VPP team' +copyright = f'{date.today().year}, FD.io VPP team' +author = u'FD.io VPP team' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = u'20.01' +output = subprocess.run(['../../src/scripts/version'], stdout=subprocess.PIPE) +version = f'{output.stdout.decode("utf-8")}' # The full version, including alpha/beta/rc tags. -release = u'20.01-rc0' +release = f'{output.stdout.decode("utf-8")}' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |