summaryrefslogtreecommitdiffstats
path: root/docs/source/conf.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2018-11-01 23:18:05 +0000
committerCalum Lind <calumlind@gmail.com>2018-11-01 23:18:05 +0000
commit20431cc7712e67b9249251dc47162333785d5e91 (patch)
tree60dc351f34f212cdb2cd859f78d443238c8039ca /docs/source/conf.py
parent82ecf8a4168cafdc2bf0f5c37f7fa45d55e8d265 (diff)
downloaddeluge-20431cc7712e67b9249251dc47162333785d5e91.tar.gz
deluge-20431cc7712e67b9249251dc47162333785d5e91.tar.bz2
deluge-20431cc7712e67b9249251dc47162333785d5e91.zip
[Docs] Fix build errors getting Deluge version
The use of pkg_resource.require caused an unwanted requirements lookup that errored out the sphinx build when no dependencies are installed. This is fixed by switching to pkg_resources.get_distribution. Also changed the tox docs env to not install Deluge as the setup.py now contains install_requires which is unwanted.
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 4d70c35bd..24bd4e368 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -150,7 +150,7 @@ copyright = '2008-%s, Deluge Team' % current_year # noqa: A001
if get_version:
version = get_version(prefix='deluge-', suffix='.dev0')
else:
- version = pkg_resources.require('Deluge')[0].version
+ version = pkg_resources.get_distribution('Deluge').version
# The full version, including alpha/beta/rc tags.
release = version