From aa022c5a71fab99d9f360c4c275d995fbb8eed0b Mon Sep 17 00:00:00 2001 From: hugovk Date: Mon, 5 Jan 2015 23:19:23 +0200 Subject: [PATCH] Don't use .build file for minor version because we define the full version in pylast.py as well --- .build | 1 - MANIFEST.in | 1 - setup.py | 20 +------------------- 3 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 .build diff --git a/.build b/.build deleted file mode 100644 index 573541a..0000000 --- a/.build +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/MANIFEST.in b/MANIFEST.in index 9e84b8c..022f2b4 100755 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,4 +3,3 @@ include setup.py include README include COPYING include INSTALL -include .build diff --git a/setup.py b/setup.py index c166df7..9579b9a 100755 --- a/setup.py +++ b/setup.py @@ -5,27 +5,9 @@ from distutils.core import setup import os -def get_build(): - path = "./.build" - - if os.path.exists(path): - fp = open(path, "r") - build = eval(fp.read()) - if os.path.exists("./.increase_build"): - build += 1 - fp.close() - else: - build = 1 - - fp = open(path, "w") - fp.write(str(build)) - fp.close() - - return str(build) - setup( name="pylast", - version="1.0." + get_build(), + version="1.0.0", author="Amr Hassan ", description=("A Python interface to Last.fm " "(and other API compatible social networks)"),