diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -56,9 +56,11 @@ copyright = u'2017, Forest Gregg, Derek Eder, and contributors'
 # built documents.
 #
 # The short X.Y version.
-version = '1.6'
+import pkg_resources
+version = pkg_resources.require("dedupe")[0].version
+
 # The full version, including alpha/beta/rc tags.
-release = '1.6.7'
+#release = '1.6.7'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
try to use pkg_resources to get version of dedupe