This repository has been archived by the owner on Jan 2, 2020. It is now read-only.
forked from andreimacavei/gnome-signing
-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
112 lines (97 loc) · 3.52 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
102
103
104
105
106
107
108
109
110
111
112
#!/usr/bin/env python
#
from setuptools import setup
from setuptools.command.install import install
#import py2exe
import os
import sys
# Just in case we're attempting to execute this setup.py
# when cwd != thisdir...
os.chdir(os.path.dirname(os.path.realpath(__file__)))
with open(os.path.join('keysign', '_version.py')) as f:
# This should define __version__
exec(f.read())
setup(
name = 'gnome-keysign',
version = __version__,
description = 'OpenPGP key signing helper',
author = 'Tobias Mueller',
author_email = '[email protected]',
url = 'http://wiki.gnome.org/GnomeKeysign',
packages = [
'keysign',
'keysign.compat',
'keysign.network',
],
py_modules = [
'monkeysign.msgfmt',
'monkeysign.translation',
'monkeysign.gpg',
],
package_dir={
'keysign': 'keysign',
'monkeysign': 'monkeysign/monkeysign'},
#package_data={'keysign': ['data/*']},
data_files=[
( 'share/applications',
['data/gnome-keysign.desktop']),
( 'share/appdata',
['data/gnome-keysign.appdata.xml']),
( 'share/icons/hicolor/scalable/apps',
['data/gnome-keysign.svg']),
],
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',
# But this version seems to be requiring an old pyopenssl
# with SSLv3 support which doesn't work with Ubuntu's 16.04.
# So let's require a more modern requests.
'requests>=2.6',
'qrcode',
#'monkeysign', # Apparently not in the cheeseshop
# avahi # Also no entry in the cheeseshop
# dbus # dbus-python is in the cheeseshop but not pip-able
],
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',
],
},
classifiers = [
# Maybe not yet...
#'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Information Technology',
'Intended Audience :: Legal Industry',
'Intended Audience :: Telecommunications Industry',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
# I think we are only 2.7 compatible
'Programming Language :: Python :: 2.7',
# We're still lacking support for 3
#'Programming Language :: Python :: 3',
'License :: OSI Approved :: GNU General Public License (GPL)',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX :: Linux',
'Environment :: X11 Applications :: GTK',
'Topic :: Desktop Environment',
'Natural Language :: English',
'Topic :: Communications :: Email',
'Topic :: Multimedia :: Video :: Capture',
'Topic :: Security :: Cryptography',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)