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
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
import os
import sys
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
dependencies = [
'BeautifulSoup4',
'psutil',
'python-potr',
'pyasn1',
'pycrypto',
'pyjavaproperties',
'pyparsing',
'pgpdump',
'qrcode >= 4.0.1',
'six',
]
# argparse and ordereddict are included in Python starting in 2.7
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
dependencies.append('argparse')
dependencies.append('ordereddict')
if sys.platform == 'darwin':
dependencies.append('PIL')
dependencies.append('pymtp>=0.0.6')
extra_options = dict(
setup_requires=['py2app'],
app=['keysync-gui'],
# Cross-platform applications generally expect sys.argv to
# be used for opening files.
options=dict(
py2app=dict(
argv_emulation=True,
semi_standalone=False,
use_pythonpath=False,
site_packages=True,
frameworks='/sw/lib/libmtp.9.dylib',
iconfile='icons/keysync.icns',
plist={
'CFBundleIdentifier': 'info.guardianproject.keysync',
'CFBundleName': 'KeySync',
'CFBundleLocalizations': ['en'],
'PyRuntimeLocations': ['/System/Library/Frameworks/Python.framework/Versions/2.6/Python'],
},
),
),
)
elif sys.platform == 'win32':
dependencies.append('pyinstaller')
dependencies.append('pywin32')
# PIL doesn't build on Windows, so use Pillow instead, pegged at
# 2.1.0 until pyinstaller supports newer version
dependencies.append('Pillow==2.1.0')
extra_options = dict()
else:
dependencies.append('PIL')
dependencies.append('pymtp>=0.0.6')
extra_options = dict()
setup(name='keysync',
version='0.2.1.1',
description='syncs OTR keys between different IM programs',
long_description=read('README.md'),
author='The Guardian Project',
author_email='support@guardianproject.info',
url='https://guardianproject.info/apps/keysync',
packages=['otrapps'],
scripts=['keysync', 'keysync-gui'],
data_files=[
('share/man/man1', ['man/keysync.1']),
('share/icons/hicolor/128x128/apps', ['icons/128x128/keysync.png']),
('share/icons/hicolor/256x256/apps', ['icons/keysync.png']),
('share/keysync',
['icons/add.png', 'icons/adium.png', 'icons/chatsecure.png',
'icons/gajim.png', 'icons/gnupg.png', 'icons/irssi.png',
'icons/jitsi.png', 'icons/keysync.png', 'icons/kopete.png',
'icons/pidgin.png', 'icons/xchat.png']),
('share/applications', ['keysync.desktop'])
],
license='GPLv3+',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
install_requires=dependencies,
**extra_options
)
|