forked from scottkirkwood/key-mon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
86 lines (79 loc) · 2.87 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
#!/usr/bin/env python
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from distutils.core import setup
import gettext
NAME = 'key-mon'
DIR = 'src/keymon'
gettext.install(NAME, DIR + '/locale')
VER = '1.19'
PY_NAME = 'key_mon'
DEB_NAME = NAME.replace('-', '')
RELEASE_FILE = 'RELEASE.rst'
VCS = 'https://github.com/scottkirkwood/%s' % NAME
PY_SRC = '%s.py' % PY_NAME
DEPENDS = ['python-xlib', 'python-gtk2']
DEPENDS_STR = ' '.join(DEPENDS)
MENU_SUBSECTION = 'Graphics'
AUTHOR_NAME = 'Scott Kirkwood'
COPYRIGHT_NAME = 'Google Inc.'
GOOGLE_CODE_EMAIL = '[email protected]'
MAILING_LIST = '[email protected]'
KEYWORDS = ['keyboard', 'status', 'monitor', 'education']
MAN_FILE = 'man/%s.1' % NAME
DESKTOP_FILE = 'icons/%s.desktop' % NAME
ICON = 'icons/%s.xpm' % NAME
COMMAND = '/usr/bin/%s' % NAME
LANGS = ['pt_BR']
HICOLOR_PNG_SIZES = [16, 24, 32, 48, 64, 128]
SETUP = dict(
name=NAME,
version=VER,
packages=['keymon'],
package_dir={
'keymon': 'src/keymon'},
package_data = {
'keymon': [
'themes/**/*', '*.kbd',
'icons/key-mon.desktop', 'locale/**/*/*.mo'],
},
data_files = [
('share/pixmaps', [ICON]),
('share/icons/hicolor', ['icons/hicolor/%dx%d/apps/%s.png' % (x, x, NAME) for x in HICOLOR_PNG_SIZES]),
('share/icons/hicolor', ['icons/hicolor/scalable/apps/%s.svg' % NAME]),
],
scripts=['src/key-mon'],
author=AUTHOR_NAME,
author_email='[email protected]',
platforms=['POSIX'],
license='Apache 2.0',
keywords=' '.join(KEYWORDS),
url='https://github.com/scottkirkwood/%s' % NAME,
download_url='https://github.com/scottkirkwood/%s/archive/%s.zip' % (NAME, VER),
description=_('A screencast utility that displays your keyboard and mouse status'),
long_description=_("""Key-mon is useful for teaching since it shows the current status of your
keyboard and mouse and you use them in another application. No longer do you need to say
'Now I'm pressing the Ctrl-D key', your students can just see the keystroke for themselves."""),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications',
'Intended Audience :: Education',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Topic :: Education :: Computer Aided Instruction (CAI)',
],
)
if __name__ == '__main__':
setup(**SETUP)