~diesch/classicmenu-indicator/trunk

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
89
90
91
92
93
94
95
96
97
98
99
#! /usr/bin/python3
# -*- coding: utf-8 -*-
#
# ClassicMenu Indicator - classicmenu-indicator
#                    http://www.florian-diesch.de/software/classicmenu-indicator/
#
# Copyright (C) 2013 Florian Diesch <devel@florian-diesch.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

import glob
import _meta
import sys
from setuptools import setup, find_packages

try:
    from DistUtilsExtra.command import *  # noqa: F401, F403
except ImportError:
    print('To build ClassicMenu Indicator you need https://launchpad.net/python-distutils-extra', file=sys.stderr)
    sys.exit(1)


def read_from_file(path):
    with open(path) as input:
        return input.read()


setup(
    name='classicmenu-indicator',
    version=_meta.VERSION,
    packages=find_packages(),
    include_package_data=True,
    maintainer='Florian Diesch',
    maintainer_email='devel@florian-diesch.de',
    author="Florian Diesch",
    author_email="devel@florian-diesch.de",
    description='An Unity indicator applet that provides the classic GNOME application menu',
    long_description=read_from_file('README.txt'),
    data_files=[
        ('/usr/share/man/man1',
         glob.glob('data/man/*.1')),
        ('/usr/share/applications',
         glob.glob('data/desktop/*.desktop')),
        ('share/classicmenu-indicator/ui/',
         glob.glob('data/ui/*.ui')),
        ('share/classicmenu-indicator/',
         glob.glob('data/menu/*.menu')),
        ('/usr/share/icons/hicolor/scalable/apps',
         glob.glob('data/icons/hicolor/scalable/apps/*.svg')),
        ('/usr/share/icons/ubuntu-mono-light/status/22',
         glob.glob('data/icons/ubuntu-mono-light/status/22/*.svg')),
        ('/usr/share/icons/ubuntu-mono-light/status/24',
         glob.glob('data/icons/ubuntu-mono-light/status/24/*.svg')),
        ('/usr/share/icons/ubuntu-mono-light/status/16',
         glob.glob('data/icons/ubuntu-mono-light/status/16/*.svg')),
        ('/usr/share/icons/ubuntu-mono-dark/status/22',
         glob.glob('data/icons/ubuntu-mono-dark/status/22/*.svg')),
        ('/usr/share/icons/ubuntu-mono-dark/status/24',
         glob.glob('data/icons/ubuntu-mono-dark/status/24/*.svg')),
        ('/usr/share/icons/ubuntu-mono-dark/status/16',
         glob.glob('data/icons/ubuntu-mono-dark/status/16/*.svg')),
    ],
    entry_points={
        'console_scripts': ['classicmenu-indicator=classicmenu_indicator:main'],
    },
    license='GPLv3',
    url='http://www.florian-diesch.de/software/classicmenu-indicator/',
    download_url='http://www.florian-diesch.de/software/classicmenu-indicator/',
    keywords="Ubuntu, Unity, Indicator, Applet, Gnome, Classic Menu",
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: X11 Applications :: Gnome',
        'Intended Audience :: End Users/Desktop',
        'License :: OSI Approved :: GNU General Public License (GPL)',
        'Natural Language :: English',
        'Natural Language :: German',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python :: 3',
        'Topic :: Desktop Environment :: Gnome',
        'Topic :: Utilities',
    ],
    # cmdclass = { "build" : build_extra.build_extra,
    #              "build_i18n" :  build_i18n.build_i18n,
    #              "build_help" :  build_help.build_help,
    #              "build_icons" :  build_icons.build_icons }

)