Skip to content

Commit 6713c70

Browse files
authored
Merge pull request #45 from dhellmann/33-modernize-packaging
modernize packaging
2 parents ceaa88f + 2fe0f73 commit 6713c70

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1473
-146
lines changed

docs/source/conf.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# serve to show the default.
1414

1515
import datetime
16-
import subprocess
16+
import importlib.metadata
1717

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

0 commit comments

Comments
 (0)