annotate toolboxes/_python_lib/pylast/setup.py @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 #!/usr/bin/env python
wolffd@0 2
wolffd@0 3 from distutils.core import setup
wolffd@0 4
wolffd@0 5 import os
wolffd@0 6 def get_build():
wolffd@0 7 path = "./.build"
wolffd@0 8
wolffd@0 9 if os.path.exists(path):
wolffd@0 10 fp = open(path, "r")
wolffd@0 11 build = eval(fp.read())
wolffd@0 12 if os.path.exists("./.increase_build"):
wolffd@0 13 build += 1
wolffd@0 14 fp.close()
wolffd@0 15 else:
wolffd@0 16 build = 1
wolffd@0 17
wolffd@0 18 fp = open(path, "w")
wolffd@0 19 fp.write(str(build))
wolffd@0 20 fp.close()
wolffd@0 21
wolffd@0 22 return str(build)
wolffd@0 23
wolffd@0 24 setup(name = "pylast",
wolffd@0 25 version = "0.5." + get_build(),
wolffd@0 26 author = "Amr Hassan <amr.hassan@gmail.com>",
wolffd@0 27 description = "A Python interface to Last.fm (and other API compatible social networks)",
wolffd@0 28 author_email = "amr.hassan@gmail.com",
wolffd@0 29 url = "http://code.google.com/p/pylast/",
wolffd@0 30 py_modules = ("pylast",),
wolffd@0 31 license = "Apache2"
wolffd@0 32 )