Skip to content

Commit b1214cd

Browse files
0-wiz-0Hugo Osvaldo Barrera
authored andcommitted
Follow advice from setuptools_scm how to use it.
See https://github.com/pypa/setuptools_scm
1 parent 3d7d92c commit b1214cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import datetime
22
import os
33

4-
import setuptools_scm
4+
from pkg_resources import get_distribution
55

66
extensions = ['sphinx.ext.autodoc']
77

@@ -14,7 +14,7 @@
1414
copyright = ('2014-{}, Markus Unterwaditzer & contributors'
1515
.format(datetime.date.today().strftime('%Y')))
1616

17-
release = setuptools_scm.get_version(root='..', relative_to=__file__)
17+
release = get_distribution('vdirsyncer').version
1818
version = '.'.join(release.split('.')[:2]) # The short X.Y version.
1919

2020
rst_epilog = '.. |vdirsyncer_version| replace:: %s' % release

0 commit comments

Comments
 (0)