autopep8 setup.py
This commit is contained in:
parent
289c67fd8a
commit
af89d7cfa6
|
@ -76,6 +76,7 @@ def build_trans(build_cmd):
|
|||
target = 'share/locale/' + lang + '/LC_MESSAGES'
|
||||
data_files.append((target, [mo_file]))
|
||||
|
||||
|
||||
def build_man(build_cmd):
|
||||
'''
|
||||
Compress Gajim manual files
|
||||
|
@ -106,6 +107,7 @@ def build_man(build_cmd):
|
|||
target = 'share/man/man1'
|
||||
data_files.append((target, [src]))
|
||||
|
||||
|
||||
def build_intl(build_cmd):
|
||||
'''
|
||||
Merge translation files into desktop and mime files
|
||||
|
@ -126,6 +128,7 @@ def build_intl(build_cmd):
|
|||
merge(filenamelocal + '.in', newfile, option)
|
||||
data_files.append((target, [base + '/' + filename]))
|
||||
|
||||
|
||||
def substitute_variables(filename_in, filename_out, subst_vars):
|
||||
'''
|
||||
Substitute variables in a file.
|
||||
|
@ -180,12 +183,14 @@ class test(Command):
|
|||
def run(self):
|
||||
os.system("./test/runtests.py")
|
||||
|
||||
|
||||
class test_nogui(test):
|
||||
description = "Run tests without GUI"
|
||||
|
||||
def run(self):
|
||||
os.system("./test/runtests.py -n")
|
||||
|
||||
|
||||
class update_po(Command):
|
||||
description = "Update po files"
|
||||
user_options = []
|
||||
|
@ -229,9 +234,12 @@ package_data = (package_data_activities
|
|||
|
||||
# only install subdirectories of data
|
||||
data_files_app_icon = [
|
||||
("share/icons/hicolor/64x64/apps", ["gajim/data/icons/hicolor/64x64/apps/org.gajim.Gajim.png"]),
|
||||
("share/icons/hicolor/128x128/apps", ["gajim/data/icons/hicolor/128x128/apps/org.gajim.Gajim.png"]),
|
||||
("share/icons/hicolor/scalable/apps", ["gajim/data/icons/hicolor/scalable/apps/org.gajim.Gajim.svg"])
|
||||
("share/icons/hicolor/64x64/apps",
|
||||
["gajim/data/icons/hicolor/64x64/apps/org.gajim.Gajim.png"]),
|
||||
("share/icons/hicolor/128x128/apps",
|
||||
["gajim/data/icons/hicolor/128x128/apps/org.gajim.Gajim.png"]),
|
||||
("share/icons/hicolor/scalable/apps",
|
||||
["gajim/data/icons/hicolor/scalable/apps/org.gajim.Gajim.svg"])
|
||||
]
|
||||
|
||||
data_files = data_files_app_icon
|
||||
|
|
Loading…
Reference in New Issue