-
Notifications
You must be signed in to change notification settings - Fork 47
/
setup.py
executable file
·77 lines (69 loc) · 2.53 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from babel.messages import frontend as babel
from distutils.command.build import build as _build
from turpial import VERSION
LONG_DESCRIPTION = """
Turpial is a light, fast and beautiful microblogging client written in Python
"""
class build(_build):
def get_sub_commands(self):
sub_commands = _build.get_sub_commands(self)
print sub_commands
return [('compile_catalog', None), ] + sub_commands
# TODO: Maybe find some better ways to do this
# looking distutils's copy_tree method
data_files=[
('share/icons/scalable/apps', ['turpial/data/pixmaps/turpial.svg']),
('share/pixmaps', ['turpial/data/pixmaps/turpial.png']),
('share/applications', ['turpial.desktop']),
('share/appdata', ['turpial.appdata.xml']),
('share/doc/turpial', ['ChangeLog', 'README.rst', 'AUTHORS', 'COPYING', 'TRANSLATORS', 'THANKS']),
]
setup(name="turpial",
version=VERSION,
description="A light, beautiful and functional microblogging client",
long_description=LONG_DESCRIPTION,
author="Wil Alvarez",
author_email="[email protected]",
maintainer="Wil Alvarez",
maintainer_email="[email protected]",
url="http://turpial.org.ve",
download_url="http://turpial.org.ve/downloads",
license="GPLv3",
keywords='twitter identi.ca microblogging turpial',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: X11 Applications :: Qt",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Topic :: Communications"
],
include_package_data=True,
packages=find_packages(),
package_data={
'turpial': ['data/pixmaps/*', 'data/sounds/*', 'data/fonts/*', 'turpial/ui/qt/*',
'turpial/i18n/*', 'turpial/ui/qt/templates/*', 'turpial/ui/themes/*'],
},
entry_points={
'console_scripts': [
'turpial = turpial.main:main',
#'turpial-unity-daemon = turpial.ui.unity.daemon:main',
],
},
cmdclass={
'compile_catalog': babel.compile_catalog,
'extract_messages': babel.extract_messages,
'init_catalog': babel.init_catalog,
'update_catalog': babel.update_catalog,
},
data_files=data_files,
)