new portfolio features, metal graphs, preparing for 0.4 release
[stockthis] / setup.py
1 #!/usr/bin/env python2.5
2 # This program is free software; you can redistribute it and/or
3 # modify it under the terms of the GNU General Public License
4 # as published by the Free Software Foundation; either version 2
5 # of the License, or (at your option) any later version.
6 #
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 # GNU General Public License for more details.
11 #
12 # You should have received a copy of the GNU General Public License
13 # along with this program; if not, write to the Free Software
14 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15 # MA  02110-1301, USA.
16 #
17
18 from distutils.core import setup
19
20 # files to install
21 inst_desktop = ['stockthis.desktop']
22 inst_py = ['stockthis.py', 'marketdata.py', 'settings.py', 'portrait.py']
23 pixmaps = ['pixmaps/stockthis.png', 'pixmaps/maemoorg.png']
24 inst_dbus = ['stockthis.service']
25 inst_icon = ['stockthis.png']
26 inst_icon_sca = ['pixmaps/stockthis.png']
27 sh_bin = ['stockthis']
28 backup_conf  = ['stockthis.conf']
29
30 data_files = [
31   ('share/applications/hildon', inst_desktop),
32   ('/opt/stockthis',   inst_py),
33   ('/opt/stockthis/pixmaps',   pixmaps),
34   ('share/icons/hicolor/26x26/hildon/',   inst_icon),
35   ('share/icons/hicolor/scalable/hildon/',   inst_icon_sca),
36   ('share/dbus-1/services',   inst_dbus),
37   ('/etc/osso-backup/applications/',   backup_conf),
38 ]
39
40
41 setup(
42   name         = 'stockthis',
43   version      = '0.3',
44   description  = 'Stocks application',
45   author       = 'Daniel Martin Yerga',
46   author_email = 'dyerga@gmail.com',
47   url          = 'https://garage.maemo.org/projects/stockthis',
48   data_files   = data_files,
49   scripts      = sh_bin
50 )