How to use the oauthenticator.__version__ function in oauthenticator

To help you get started, we’ve selected a few oauthenticator 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 jupyterhub / oauthenticator / docs / source / conf.py View on Github external
sys.path.insert(0, os.path.abspath('..'))

# -- Project information -----------------------------------------------------

project = 'OAuthenticator'
copyright = 'Jupyter Contributors'
author = 'Jupyter Contributors'

master_doc = 'index'

import oauthenticator

# The short X.Y version.
version = '%i.%i' % oauthenticator.version_info[:2]
# The full version, including alpha/beta/rc tags.
release = oauthenticator.__version__


# -- generate autodoc classes from entrypoints

from collections import defaultdict

import entrypoints
import jinja2


def render_autodoc_modules():
    authenticator_entrypoints = entrypoints.get_group_named(
        "jupyterhub.authenticators"
    ).values()

    api = os.path.join(source, "api")