mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Follow advice from setuptools_scm how to use it.
See https://github.com/pypa/setuptools_scm
This commit is contained in:
parent
3d7d92c2d6
commit
b1214cd693
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import datetime
|
||||
import os
|
||||
|
||||
import setuptools_scm
|
||||
from pkg_resources import get_distribution
|
||||
|
||||
extensions = ['sphinx.ext.autodoc']
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ project = 'vdirsyncer'
|
|||
copyright = ('2014-{}, Markus Unterwaditzer & contributors'
|
||||
.format(datetime.date.today().strftime('%Y')))
|
||||
|
||||
release = setuptools_scm.get_version(root='..', relative_to=__file__)
|
||||
release = get_distribution('vdirsyncer').version
|
||||
version = '.'.join(release.split('.')[:2]) # The short X.Y version.
|
||||
|
||||
rst_epilog = '.. |vdirsyncer_version| replace:: %s' % release
|
||||
|
|
|
|||
Loading…
Reference in a new issue