Don't use .build file for minor version because we define the full version in pylast.py as well

This commit is contained in:
hugovk 2015-01-05 23:19:23 +02:00
parent 79d741269a
commit aa022c5a71
3 changed files with 1 additions and 21 deletions

1
.build
View file

@ -1 +0,0 @@
0

View file

@ -3,4 +3,3 @@ include setup.py
include README
include COPYING
include INSTALL
include .build

View file

@ -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 <amr.hassan@gmail.com>",
description=("A Python interface to Last.fm "
"(and other API compatible social networks)"),