Skip to content

Commit

Permalink
Fix sphinx conf.py version
Browse files Browse the repository at this point in the history
This now uses the pulp_ansible.__version__ which is now a string so
it can be inspected without the package needing to be installed.

https://pulp.plan.io/issues/4875
re #4875
  • Loading branch information
Brian Bouterse committed Jun 3, 2019
1 parent 99dc6cd commit ecc3fc2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import os
import sys
sys.path.insert(0, os.path.abspath('..')) # noqa

import pulp_ansible


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

Expand All @@ -24,9 +30,9 @@
author = 'Pulp Ansible Team'

# The short X.Y version
version = '0.2.0b1'
version = pulp_ansible.__version__
# The full version, including alpha/beta/rc tags
release = '0.2.0b1'
release = pulp_ansible.__version__


# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit ecc3fc2

Please sign in to comment.