diff --git a/docs/conf.py b/docs/conf.py
index cf78f50496f2878fcde50f1f9662af176f1c0f23..ff1d1df7cc6613e31b9ca4bdf30792704fed22ce 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -59,9 +59,10 @@ author = u'Piotr Maślanka'
 # built documents.
 #
 # The short X.Y version.
-version = u'2.0'
+from satella import __version__
+version = __version__.split('.', 2)[:2].join('.')
 # The full version, including alpha/beta/rc tags.
-release = u'2.0.22rc2'
+release = __version__
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff --git a/satella/__init__.py b/satella/__init__.py
index 8b137891791fe96927ad78e64b0aad7bded08bdc..364e327f6b8bebd194c54de3d741cb2d99c7458a 100644
--- a/satella/__init__.py
+++ b/satella/__init__.py
@@ -1 +1,2 @@
-
+# coding=UTF-8
+__version__ = '2.0.22rc2'
diff --git a/setup.cfg b/setup.cfg
index 566441c4ea62f075516084d0925a4395bb12452f..8ed4ee1858699ecced0d899563f6142ccea574ce 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,5 @@
 [metadata]
 name = satella
-version = 2.0.22rc2
 description-file = README.md
 author = Piotr Maślanka
 author_email = piotrm@smok.co
diff --git a/setup.py b/setup.py
index ce8a6213dd15c660bef165c28b92f8e58e9c08b3..00b5b535556b37c316faf4dcb5c39fe309f55ba8 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,10 @@
 # coding=UTF-8
 from setuptools import setup, find_packages
+from satella import __version__
 
 setup(keywords=['ha', 'high availability', 'scalable', 'scalability', 'server'],
       packages=find_packages(include=['satella', 'satella.*']),
+      version=__version__,
       install_requires=[
           "six",
           "monotonic",