test newmaemo.org server
[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
29 data_files = [
30   ('share/applications/hildon', inst_desktop),
31   ('/opt/stockthis',   inst_py),
32   ('/opt/stockthis/pixmaps',   pixmaps),
33   ('share/icons/hicolor/26x26/hildon/',   inst_icon),
34   ('share/icons/hicolor/scalable/hildon/',   inst_icon_sca),
35   ('share/dbus-1/services',   inst_dbus),
36 ]
37
38
39 setup(
40   name         = 'stockthis',
41   version      = '0.3',
42   description  = 'Stocks application',
43   author       = 'Daniel Martin Yerga',
44   author_email = 'dyerga@gmail.com',
45   url          = 'https://garage.maemo.org/projects/stockthis',
46   data_files   = data_files,
47   scripts      = sh_bin
48 )