Skip to content

Commit

Permalink
Reuse __version__ in docs/conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Mar 22, 2020
1 parent 2789659 commit 0bd56d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@

import os
import sys
import subprocess

sys.path.insert(0, os.path.abspath('../../'))

import subprocess
from tcms_api.version import __version__

# generate documentation from Python sources
subprocess.run(['make', '-C', '../', 'apidoc'], check=True)
Expand Down Expand Up @@ -50,16 +52,16 @@

# General information about the project.
project = u'tcms-api'
copyright = u'2019 Kiwi TCMS project and its contributors'
copyright = u'2019-2020 Kiwi TCMS project and its contributors'

# 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.
#
# The short X.Y version.
version = '5.3'
version = __version__
# The full version, including alpha/beta/rc tags.
release = '5.3.0'
release = __version__

exclude_patterns = []

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def get_version():


setup(name='tcms-api',
# always update version/release in docs/conf.py
version=get_version(),
packages=['tcms_api'],
description='Python API for Kiwi',
Expand Down

0 comments on commit 0bd56d9

Please sign in to comment.