Skip to content

Commit d30454c

Browse files
MichalZelenakyashvardhannanavati
authored andcommitted
Update docs/conf.py to eliminate docs build error
package pkg_resources is not available anymore, and the pipeline is failing Signed-off-by: Michal Zelenák <mychalze@gmail.com>
1 parent 86b6bf0 commit d30454c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import os
1010
import sys
1111

12-
import pkg_resources
12+
from importlib.metadata import PackageNotFoundError, version as get_version
1313

1414
# -- Path setup --------------------------------------------------------------
1515
sys.path.append(os.path.abspath('../'))
1616

1717
# -- Project information -----------------------------------------------------
1818
try:
19-
version = pkg_resources.get_distribution('iib').version
20-
except pkg_resources.DistributionNotFound:
19+
version = get_version('iib')
20+
except PackageNotFoundError:
2121
version = 'unknown'
2222
project = 'IIB Image Builder Service'
2323
copyright = datetime.today().strftime('%Y') + ', Red Hat Inc.'
@@ -44,7 +44,7 @@
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.

0 commit comments

Comments
 (0)