Something went wrong. Try again.
Python functions to get top-level importables names
Something went wrong. Try again.
621 B · 35 lines
Python
at main
123456789101112131415161718192021222324252627282930313233343536"""Sphinx configuration."""
from importlib.metadata import metadata
# -- Project information
_metadata = metadata("pygetimportables")
project = _metadata["Name"]author = _metadata["Author-email"].split("<", 1)[0].strip()copyright = f"2023, {author}"
version = _metadata["Version"]release = ".".join(version.split(".")[:2])
# -- General configuration
extensions = [ "myst_parser", "sphinx_copybutton",]
templates_path = ["_templates"]
exclude_patterns = [ "Thumbs.db", ".DS_Store", ".ipynb_checkpoints",]
# -- Options for HTML output
html_theme = "furo"html_static_path = ["_static"]