-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
88 lines (79 loc) · 3.47 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
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/python
# -*- coding: utf-8 -*-
# HeySms
import sys
reload(sys).setdefaultencoding("UTF-8")
try:
from sdist_maemo import sdist_maemo as _sdist_maemo
except:
_sdist_maemo = None
print 'sdist_maemo command not available'
from distutils.core import setup
import heysms.heysms
#Remove pyc and pyo file
import glob
import os
for fpath in glob.glob('*/*.py[c|o]'):
os.remove(fpath)
for fpath in glob.glob('*/*/*.py[c|o]'):
os.remove(fpath)
changes = '* add changelog file\nFix bug with special caracters since translation (Thanks to Simó Albert i Beltran)'
setup(name='heysms',
version='1.7.2',
license='GNU GPLv2',
description="HeySms forwards sms to your Bonjour account.",
long_description="HeySms forwards sms to your Bonjour account. You can also answer by Bonjour.",
author='Thibault Cohen',
author_email='[email protected]',
maintainer=u'Thibault Cohen',
maintainer_email='[email protected]',
# requires=['libavahi-compat-libdnssd1', 'python2.5-qt4-network',
# 'python2.5-qt4-sql', 'python2.5', 'python-osso'],
url='http://talk.maemo.org/showthread.php?t=84705',
packages= ['heysms', 'heysms.lib', 'heysms.lib.avahi'],
package_data = {'heysms': ['images/*.png']},
data_files=[('/usr/share/applications/hildon/', ['heysms.desktop']),
('/usr/share/pixmaps', ['images/heysms.png', 'images/heysms_64.png', 'images/heysms_32.png']),
('/usr/share/icons/hicolor/128x128/apps', ['images/heysms.png']),
('/usr/share/icons/hicolor/64x64/apps', ['images/heysms_64.png']),
('/usr/share/icons/hicolor/32x32/apps', ['images/heysms_32.png']),
('/usr/share/icons/hicolor/32x32/apps', ['images/favorite.png']),
('/usr/share/icons/hicolor/32x32/apps', ['images/non-favorite.png']),
('/opt/HeySms/i18n/', ['i18n/heysms_en.qm']),
('/opt/HeySms/i18n/', ['i18n/heysms_fr.qm']),
],
scripts=['scripts/heysms'],
classifiers=[
"Development Status :: 1 - Beta",
"Environment :: X11 Applications :: Qt",
"Topic :: Communications :: Chat",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX :: Other",
"Operating System :: Other OS",
"Intended Audience :: End Users/Desktop",],
cmdclass={'sdist_maemo': _sdist_maemo},
options = { 'sdist_maemo':{
'debian_package':'heysms',
'buildversion': '1',
'depends': "python2.5, python-osso, libavahi-compat-libdnssd1, python2.5-qt4-network, python2.5-qt4-sql, avahi-daemon",
'suggests': "smssend",
'conflicts': '',
'Maemo_Bugtracker': 'https://github.com/titilambert/HeySms/issues',
'Maemo_Display_Name': 'HeySms',
'Maemo_Icon_26': 'images/heysms_32.png',
'Maemo_Upgrade_Description': '%s' % changes,
'section': 'user/network',
'changelog': changes,
'architecture': 'any',
'postinst': """""",
'prere': """""",
'copyright': 'gpl'},
'bdist_rpm': {
'requires': "python2.5, python-osso, libavahi-compat-libdnssd1,python2.5-qt4-network, python2.5-qt4-sql, avahi-daemon",
'conflicts': '',
'icon': 'images/heysms.png',
'group': 'Network',}
}
)