How to use the scrapbook.__version__.split function in scrapbook

To help you get started, we’ve selected a few scrapbook examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nteract / scrapbook / docs / conf.py View on Github external
# The master toctree document.
master_doc = "index"

# General information about the project.
project = "scrapbook"
copyright = "2018, nteract team"
author = "nteract 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.
#
import scrapbook

# The short X.Y version.
version = ".".join(scrapbook.__version__.split(".")[0:2])

# The full version, including alpha/beta/rc tags.
release = scrapbook.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "UPDATE.md"]