diff --git a/hgitaly/VERSION b/hgitaly/VERSION
new file mode 100644
index 0000000000000000000000000000000000000000..27f3a6ac3278bf9d45de69b9c8d8d91d6f19771e_aGdpdGFseS9WRVJTSU9O
--- /dev/null
+++ b/hgitaly/VERSION
@@ -0,0 +1,1 @@
+0.12.0.dev0
\ No newline at end of file
diff --git a/hgitaly/__init__.py b/hgitaly/__init__.py
index 114126c2b6dd119e280611881385c0ee66f8e30b_aGdpdGFseS9fX2luaXRfXy5weQ==..27f3a6ac3278bf9d45de69b9c8d8d91d6f19771e_aGdpdGFseS9fX2luaXRfXy5weQ== 100644
--- a/hgitaly/__init__.py
+++ b/hgitaly/__init__.py
@@ -1,6 +1,6 @@
-# Copyright 2020 Georges Racinet <georges.racinet@octobus.net>
+# Copyright 2020-2021 Georges Racinet <georges.racinet@octobus.net>
 #
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 #
 # SPDX-License-Identifier: GPL-2.0-or-later
@@ -2,5 +2,9 @@
 #
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 #
 # SPDX-License-Identifier: GPL-2.0-or-later
+from pathlib import Path
+
+
+__version__ = Path(__file__).with_name('VERSION').read_text().strip()  # noqa F401
diff --git a/setup.py b/setup.py
index 114126c2b6dd119e280611881385c0ee66f8e30b_c2V0dXAucHk=..27f3a6ac3278bf9d45de69b9c8d8d91d6f19771e_c2V0dXAucHk= 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
+from pathlib import Path
 from setuptools import setup, find_packages
 
 with open('install-requirements.txt', 'r') as install_reqf:
     install_req = [req.strip() for req in install_reqf]
 
@@ -1,7 +2,9 @@
 from setuptools import setup, find_packages
 
 with open('install-requirements.txt', 'r') as install_reqf:
     install_req = [req.strip() for req in install_reqf]
 
+VERSION_FILE = 'VERSION'
+
 setup(
     name='hgitaly',
@@ -6,6 +9,6 @@
 setup(
     name='hgitaly',
-    version='0.12.0dev0',
+    version=Path('hgitaly', VERSION_FILE).read_text().strip(),
     author='Georges Racinet',
     author_email='georges.racinet@octobus.net',
     url='https://foss.heptapod.net/heptapod/hgitaly',
@@ -15,5 +18,6 @@
     keywords='hg mercurial heptapod gitlab',
     license='GPLv2+',
     packages=find_packages(),
+    package_data=dict(hgitaly=[VERSION_FILE]),
     install_requires=install_req,
 )