Fix tests

This commit is contained in:
hugovk 2014-04-07 11:41:41 +03:00
parent 3bf73a21ff
commit 1c26ef6d24
2 changed files with 35 additions and 30 deletions

View file

@ -3,30 +3,35 @@
from distutils.core import setup
import os
def get_build():
path = "./.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
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()
fp = open(path, "w")
fp.write(str(build))
fp.close()
return str(build)
return str(build)
setup(name = "pylast",
version = "0.6." + get_build(),
author = "Amr Hassan <amr.hassan@gmail.com>",
description = "A Python interface to Last.fm (and other API compatible social networks)",
author_email = "amr.hassan@gmail.com",
url = "https://github.com/hugovk/",
py_modules = ("pylast",),
license = "Apache2"
)
setup(
name="pylast",
version="0.6." + get_build(),
author="Amr Hassan <amr.hassan@gmail.com>",
description="A Python interface to Last.fm (and other API compatible social networks)",
author_email="amr.hassan@gmail.com",
url="https://github.com/hugovk/pylast",
py_modules=("pylast",),
license="Apache2"
)
# End of file