This repository has been archived by the owner on Jan 12, 2020. It is now read-only.
/
setup.py
executable file
·52 lines (47 loc) · 1.5 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import os
from setuptools import setup
from subprocess import Popen, PIPE
def git_tag():
try:
cmd = ['git', 'describe', '--tags', '--abbrev=0']
proc = Popen(cmd, stdout=PIPE, stderr=PIPE)
proc.stderr.close()
return proc.stdout.readlines()[0].strip().decode()
except:
return "0.1"
data_files = []
dest_theme = "share/themes/Clearine-Fallback/clearine"
dest_conf = "share/clearine"
for directory, _, filenames in os.walk(u'src/data/'):
for filename in filenames:
sourcefile = [os.path.join(directory, filename)]
if filename.endswith(".svg"):
data_files.append((dest_theme, sourcefile))
elif filename.endswith(".conf"):
data_files.append((dest_conf, sourcefile))
print(data_files)
setup(
name = "Clearine",
version = git_tag(),
author = "Nanda Okitavera",
author_email = "codeharuka.yusa@gmail.com",
description = ("Beautiful Logout UI for X11 window manager"),
license = "MIT",
packages = ["Clearine"],
package_dir = {"Clearine": "src"},
package_data = {"Clearine": ["data/*"]},
data_files=data_files,
zip_safe=False,
url = "https://github.com/okitavera/clearine",
project_urls = {
"Source": "https://github.com/okitavera/clearine",
"Tracker": "https://github.com/okitavera/clearine/issues",
},
install_requires = [
'pygobject',
'pycairo',
],
entry_points={
"console_scripts": ["clearine=Clearine.clearine:main"]
}
)