Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# serve to show the default.

import datetime
import subprocess
import importlib.metadata

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -51,11 +51,7 @@
# built documents.
#
# The short X.Y version.
version = subprocess.check_output([
'sh', '-c',
'cd ../..; python setup.py --version',
]).decode('utf-8')
version = version.strip()
version = importlib.metadata.version('virtualenvwrapper')
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
Loading