File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import os
1010import sys
1111
12- import pkg_resources
12+ from importlib . metadata import PackageNotFoundError , version as get_version
1313
1414# -- Path setup --------------------------------------------------------------
1515sys .path .append (os .path .abspath ('../' ))
1616
1717# -- Project information -----------------------------------------------------
1818try :
19- version = pkg_resources . get_distribution ('iib' ). version
20- except pkg_resources . DistributionNotFound :
19+ version = get_version ('iib' )
20+ except PackageNotFoundError :
2121 version = 'unknown'
2222project = 'IIB Image Builder Service'
2323copyright = datetime .today ().strftime ('%Y' ) + ', Red Hat Inc.'
4444
4545# -- Extension configuration -------------------------------------------------
4646# This must be mocked because Read the Docs doesn't have krb5-devel installed
47- autodoc_mock_imports = ["requests_kerberos" ]
47+ autodoc_mock_imports = ["requests_kerberos" , "operator_manifest" ]
4848
4949# -- Options for intersphinx extension ---------------------------------------
5050# Example configuration for intersphinx: refer to the Python standard library.
You can’t perform that action at this time.
0 commit comments