From 545d7f4a65d03431b901e22891259a773d4c88eb Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Wed, 20 May 2009 14:27:01 +0000 Subject: [PATCH] Create a VERSION file to replace /etc/gentoolkit-version svn path=/trunk/gentoolkit/; revision=642 --- MANIFEST.in | 2 +- Makefile | 8 ++++++-- VERSION | 1 + setup.py | 6 +++--- 4 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 VERSION diff --git a/MANIFEST.in b/MANIFEST.in index f68c33d..9bb143e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ -include AUTHORS ChangeLog COPYING NEWS README README.Developer THANKS TODO +include AUTHORS ChangeLog COPYING NEWS README README.Developer THANKS TODO VERSION recursive-include data * recursive-include man * diff --git a/Makefile b/Makefile index 462bc56..27dd699 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,10 @@ # # $Header$ +ifeq ($(origin VERSION), undefined) + VERSION = 9999 +endif + all: echo "YARMOUTH (vb.) To shout at foreigners in the belief that the louder you speak, the better they'll understand you." echo $(VERSION) @@ -15,7 +19,7 @@ dist: dist-gentoolkit dist-gentoolkit: mkdir -p release - sed -i "s/^VER =.*/VER = '$(VERSION)'/" setup.py + echo "$(VERSION)" > VERSION python setup.py sdist --dist-dir release - svn revert setup.py + svn revert VERSION rm -f MANIFEST diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..3c2df07 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +9999 diff --git a/setup.py b/setup.py index 062475f..446b3c7 100755 --- a/setup.py +++ b/setup.py @@ -2,11 +2,11 @@ from distutils.core import setup -VER = '9.9.9.9' +__version__ = open("VERSION").read().strip() setup( name='gentoolkit', - version=VER, + version=__version__, description='Set of tools that work with and enhance portage.', author='', author_email='', @@ -14,7 +14,7 @@ setup( maintainer_email='tools-portage@gentoo.org', url='http://www.gentoo.org/proj/en/portage/tools/index.xml', download_url='http://distfiles.gentoo.org/distfiles/gentoolkit-%s.tar.gz'\ - % VER, + % __version__, package_dir={'': 'pym'}, packages=( 'gentoolkit', -- 2.26.2