File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020project = 'khisto-python'
2121copyright = '2026, The Khiops Team'
2222author = 'The Khiops Team'
23+ # We want to make sure the docs are built on an installed package only
2324release = importlib .metadata .version ("khisto" )
2425
2526# -- General configuration ---------------------------------------------------
Original file line number Diff line number Diff line change 1414KHISTO_BIN_DIR = os .environ .get ("KHISTO_BIN_DIR" , "khisto" )
1515
1616if (ROOT_DIR / "pyproject.toml" ).exists ():
17+ # Development mode: package not installed; pyproject.toml present
1718 # TODO : Remove on Python 3.10 EOL
1819 try :
1920 import tomllib as tomli
2324 with open (ROOT_DIR / "pyproject.toml" , "rt" ) as f :
2425 __version__ = tomli .load (f )["project" ]["version" ]
2526else :
27+ # User mode: package installed; pyproject.toml not directly accessible
2628 from importlib .metadata import version # noqa: E402
2729
2830 __version__ = version ("khisto" )
You can’t perform that action at this time.
0 commit comments