Skip to content

Commit

Permalink
Fix the version number in the docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Dec 30, 2021
1 parent f261a90 commit bc90cab
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -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 ------------------------------------------------
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit bc90cab

Please sign in to comment.