forked from OzymandiasTheGreat/emoji-keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·47 lines (41 loc) · 1.35 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
#!/usr/bin/env python3
import os
from setuptools import setup
from lib.emoji_shared import version
src_dir = os.path.dirname(__file__)
with open(os.path.join(src_dir, 'README.md')) as fd:
long_description = fd.read()
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications',
'Environment :: X11 Applications :: GTK',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Utilities']
data_files = [('share/applications', ['lib/data/emoji-keyboard.desktop'])]
if os.geteuid() == 0:
data_files.append(
('/etc/xdg/autostart', ['lib/data/emoji-keyboard.desktop']))
setup(
name='emoji-keyboard',
version=version,
description='Virtual keyboard-like emoji picker',
long_description=long_description,
url='https://github.com/OzymandiasTheGreat/emoji-keyboard',
author='Tomas Ravinskas',
author_email='[email protected]',
license='GPLv3+',
classifiers=classifiers,
packages=['emoji_keyboard'],
package_dir={'emoji_keyboard': 'lib'},
package_data={'emoji_keyboard': [
'data/*.json',
'data/*/*.svg',
'data/emoji-keyboard.desktop']},
data_files=data_files,
scripts=['emoji-keyboard'],
install_requires=['evdev']
)