From b0065c802502af76fef91d3e7459908c02d81b69 Mon Sep 17 00:00:00 2001 From: Manuel Guenther <manuel.guenther@idiap.ch> Date: Thu, 6 Nov 2014 15:36:09 +0100 Subject: [PATCH] Implemented versioning by version.txt --- MANIFEST.in | 4 +--- setup.py | 5 ++++- version.txt | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 version.txt diff --git a/MANIFEST.in b/MANIFEST.in index 6ad42f1..d439f86 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,4 @@ -include README.rst -include bootstrap.py -include buildout.cfg +include README.rst bootstrap.py buildout.cfg version.txt recursive-include doc *.rst *.png conf.py recursive-include bob/example/faceverify/data *.hdf5 diff --git a/setup.py b/setup.py index 352edfe..82756c5 100644 --- a/setup.py +++ b/setup.py @@ -21,6 +21,9 @@ 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( @@ -28,7 +31,7 @@ setup( # This is the basic information about your project. Modify all this # information before releasing code publicly. name='bob.example.faceverify', - version='2.0.0a0', + version=version, description='Example for using Bob to create three distinct face verification systems', url='http://pypi.python.org/pypi/bob.example.faceverify', 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