forked from amrhassan/scrobblethis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (30 loc) · 844 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 int(build)
setup(
name = "scrobblethis",
version = "0.4.%d" %get_build(),
description = "Command-line portable player log scrobbler",
author = "Amr Hassan <[email protected]>",
author_email = "[email protected]",
license = "gpl",
url = "https://launchpad.net/scrobblethis",
scripts = ["scrobblethis"],
packages = ["st"],
data_files = [
("/usr/share/man/man1", ("scrobblethis.1.gz",)),
]
)