~osomon/elisa-plugin-weather/weather

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
# -*- coding: utf-8 -*-
# Elisa - Home multimedia server
# Copyright (C) 2006-2008 Fluendo Embedded S.L. (www.fluendo.com).
# All rights reserved.
#
# This file is available under one of two license agreements.
#
# This file is licensed under the GPL version 3.
# See "LICENSE.GPL" in the root of this distribution including a special
# exception to use Elisa with Fluendo's plugins.
#
# The GPL part of Elisa is also available under a commercial licensing
# agreement from Fluendo.
# See "LICENSE.Elisa" in the root directory of this distribution package
# for details on that license.
#
# Authors: Alessandro Decina <alessandro@fluendo.com>
#          Olivier Tilloy <olivier@fluendo.com>

from setuptools import setup

from elisa.core.utils.dist import find_packages, TrialTest, Clean


packages, package_dir = find_packages()
cmdclass = dict(test=TrialTest, clean=Clean)


setup(name='elisa-plugin-weather',
    version='0.2.1',
    description='Weather report',
    long_description='Display a weather report in Elisa.',
    license='GPL3',
    author='Elisa Developers',
    author_email='elisa@lists.fluendo.com',
    keywords='',
    namespace_packages=['elisa', 'elisa.plugins'],
    packages=packages,
    package_dir=package_dir,
    package_data={'': ['*.conf', 'data/*.png', 'icons/*'],
                  'elisa.plugins.weather.i18n': ['*/LC_MESSAGES/*.po', '*.pot'],
                 },
    entry_points="""\
    [elisa.core.components.resource_provider]
    WeatherResourceProvider = elisa.plugins.weather.report_provider:WeatherReportProvider

    [elisa.core.plugin_registry]
    use = elisa.plugins.weather.weather_controller:use_me_hook
    """,
    controller_mappings=[('/poblesec/weather',
                          'elisa.plugins.weather.weather_controller:WeatherController'),
                        ],
    cmdclass=cmdclass)