pylast/setup.py
Andrew Moss c8216a139e Allow getting venue info through Event.get_venue() as a workaround until
the Venue.getInfo API call is added to Last.fm. Changed version to 0.6
in setup.py and pylast.py to reflect update.
2013-12-26 23:16:55 +00:00

33 lines
705 B
Python
Executable file

#!/usr/bin/env python
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 = "0.1+0.5." + 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/Elizacat/",
py_modules = ("pylast",),
license = "Apache2"
)