From a3af9a70d171a6bcecb15c64a24cd4e26d282a0c Mon Sep 17 00:00:00 2001
From: Manuel Guenther <manuel.guenther@idiap.ch>
Date: Thu, 6 Nov 2014 15:36:08 +0100
Subject: [PATCH] Implemented versioning by version.txt

---
 MANIFEST.in | 2 +-
 setup.py    | 5 ++++-
 version.txt | 1 +
 3 files changed, 6 insertions(+), 2 deletions(-)
 create mode 100644 version.txt

diff --git a/MANIFEST.in b/MANIFEST.in
index e129ae1..fd1b941 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,2 +1,2 @@
-include README.rst bootstrap.py buildout.cfg COPYING
+include README.rst bootstrap.py buildout.cfg COPYING version.txt
 recursive-include doc *.py *.rst
diff --git a/setup.py b/setup.py
index 3727476..c2c2a26 100644
--- a/setup.py
+++ b/setup.py
@@ -18,12 +18,15 @@
 
 from setuptools import setup, find_packages
 
+# Define package version
+version = open("version.txt").read().rstrip()
+
 # The only thing we do in this file is to call the setup() function with all
 # parameters that define our package.
 setup(
 
     name='bob.db.mnist',
-    version='2.0.0a0',
+    version=version,
     description='MNIST Database Access API for Bob',
     url='https://pypi.python.org/pypi/bob.db.mnist',
     license='GPLv3',
diff --git a/version.txt b/version.txt
new file mode 100644
index 0000000..82d4561
--- /dev/null
+++ b/version.txt
@@ -0,0 +1 @@
+2.0.0a3
-- 
GitLab