Mercurial > hg > camir-aes2014
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 #!/usr/bin/env python | |
2 | |
3 from distutils.core import setup | |
4 | |
5 import os | |
6 def get_build(): | |
7 path = "./.build" | |
8 | |
9 if os.path.exists(path): | |
10 fp = open(path, "r") | |
11 build = eval(fp.read()) | |
12 if os.path.exists("./.increase_build"): | |
13 build += 1 | |
14 fp.close() | |
15 else: | |
16 build = 1 | |
17 | |
18 fp = open(path, "w") | |
19 fp.write(str(build)) | |
20 fp.close() | |
21 | |
22 return str(build) | |
23 | |
24 setup(name = "pylast", | |
25 version = "0.5." + get_build(), | |
26 author = "Amr Hassan <amr.hassan@gmail.com>", | |
27 description = "A Python interface to Last.fm (and other API compatible social networks)", | |
28 author_email = "amr.hassan@gmail.com", | |
29 url = "http://code.google.com/p/pylast/", | |
30 py_modules = ("pylast",), | |
31 license = "Apache2" | |
32 ) |