diff --git a/docs/conf.py b/docs/conf.py index 3e11409..82aad40 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,8 +1,6 @@ -# -*- coding: utf-8 -*- -from __future__ import absolute_import, unicode_literals - import os import sys +from importlib import metadata sys.path.insert(0, os.path.abspath('..')) # -- General configuration ------------------------------------------------ @@ -38,10 +36,10 @@ # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = u'0.1' # The full version, including alpha/beta/rc tags. -release = u'0.1' +release = metadata.version("celery-batches") +# The short X.Y version. +version = ".".join(release.split(".")[0:2]) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -78,7 +76,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +#html_static_path = ['_static'] # Custom sidebar templates, must be a dictionary that maps document names # to template names.