flowprobe: simplify test logic
[vpp.git] / test / doc / conf.py
index 98cd7ab..f73cde2 100644 (file)
@@ -18,6 +18,8 @@
 #
 import os
 import sys
+import subprocess
+from datetime import date
 sys.path.insert(0, os.path.abspath('..'))
 
 # -- General configuration ------------------------------------------------
@@ -33,7 +35,12 @@ extensions = [
     'sphinx.ext.autodoc',
 ]
 autodoc_mock_imports = ['objgraph',
+                        'parameterized',
+                        'pexpect',
+                        'psutil',
                         'pympler',
+                        'scapy',
+                        'syslog_rfc5424_parser',
                         'vpp_papi']
 
 # Add any paths that contain templates here, relative to this directory.
@@ -54,17 +61,18 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'VPP test framework'
-copyright = u'2016, 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'0.1'
+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'0.1'
+release = f'{output.stdout.decode("utf-8")}'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.