-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
101 lines (85 loc) · 3.53 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/usr/bin/env python
from keysign import __version__ as version
from setuptools import setup, find_packages
import setuptools.command.build_py
from keysign.misc.i18n import build_translations
class BuildPyCommand(setuptools.command.build_py.build_py):
def run(self):
setuptools.command.build_py.build_py.run(self)
if __name__ == '__main__':
maintainers = 'Andrei Macavei'
maintainers_emails = ('[email protected]')
data_files = build_translations() + [
('share/applications', ['data/gnome-keysign.desktop']),
# Hm, hicolor/scalable doesn't seem to work so well
#('share/icons/hicolor/scalable', ['data/gnome-keysign.svg']),
('share/icons', ['data/gnome-keysign.svg']),
]
setup(
name = 'gnome-keysign',
version = version,
description = 'OpenPGP key signing helper',
author = maintainers+', Tobias Mueller',
author_email = maintainers_emails+', [email protected]',
# maintainer=maintainers,
# maintainer_email=maintainers_emails,
packages = [
'keysign',
'keysign.compat',
'keysign.network',
'keysign.gpg',
'keysign.misc'],
#package_dir={'keysign': 'keysign'},
#package_data={'keysign': ['data/']},
data_files=data_files,
include_package_data = True,
#scripts = ['gnome-keysign.py'],
install_requires=[
# Note that the dependency on <= 2.2 is only
# to not confuse Ubuntu 14.04's pip as that
# seems incompatible with a newer requests library.
# https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1306991
'requests<=2.2',
'qrcode',
'pygpgme' # this requires libgpgme which is not in cheeseshop
# avahi # no entry in the cheeseshop
],
license='GPLv3+',
long_description=open('README.rst').read(),
entry_points = {
#'console_scripts': [
# 'keysign = keysign.main'
#],
'gui_scripts': [
'gnome-keysign = keysign:main',
'gks-qrcode = keysign.GPGQRCode:main',
],
},
cmdclass = {
'build_py': BuildPyCommand,
},
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: X11 Applications :: GTK',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Information Technology',
'Intended Audience :: Legal Industry',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: GNU General Public License (GPL)',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
# We're still lacking support for 3
#'Programming Language :: Python :: 3',
'Operating System :: POSIX :: Linux',
'Topic :: Desktop Environment',
'Topic :: Communications :: Email',
'Topic :: Multimedia :: Video :: Capture',
'Topic :: Security :: Cryptography',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)