1#!/usr/bin/env python
2#    Copyright 2011 Kjell Braden <afflux@pentabarf.de>
3#
4#    This file is part of the python-potr library.
5#
6#    python-potr is free software; you can redistribute it and/or modify
7#    it under the terms of the GNU Lesser General Public License as published by
8#    the Free Software Foundation; either version 3 of the License, or
9#    any later version.
10#
11#    python-potr is distributed in the hope that it will be useful,
12#    but WITHOUT ANY WARRANTY; without even the implied warranty of
13#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14#    GNU Lesser General Public License for more details.
15#
16#    You should have received a copy of the GNU Lesser General Public License
17#    along with this library.  If not, see <http://www.gnu.org/licenses/>.
18
19args = {}
20try:
21    from setuptools import setup
22
23    from setuptools.command.install_lib import install_lib
24
25    args['install_requires']=['pycrypto>=2.1']
26except ImportError:
27    print('\n*** setuptools not found! Falling back to distutils\n\n')
28    from distutils.core import setup
29
30    from distutils.command.install_lib import install_lib
31
32
33setup(
34    packages=['potr', 'potr.compatcrypto'],
35    package_dir={'potr':'src/potr'},
36
37    name='python-potr',
38    version='1.0.1',
39    description='pure Python Off-The-Record encryption',
40    long_description='''Python OTR
41==========
42This is a pure Python OTR implementation; it does not bind to libotr.
43
44Install the potr Python module:
45
46    sudo python setup.py install
47
48**Dependencies**: pycrypto >= 2.1 (see `dlitz/pycrypto <https://github.com/dlitz/pycrypto>`_)
49
50Usage Notes
51===========
52This module uses pycrypto's RNG. If you use this package in your application and your application
53uses ``os.fork()``, make sure to call ``Crypto.Random.atfork()`` in both the parent and the child process.
54
55Reporting bugs
56==============
57Please read the `FAQ <https://github.com/afflux/pure-python-otr/wiki>`_ before submitting your
58issue to the `tracker <https://github.com/afflux/pure-python-otr/issues>`_.''',
59
60    platforms='any',
61    license='LGPLv3+',
62
63    author='Kjell Braden',
64    author_email='afflux@pentabarf.de',
65
66    url='http://python-otr.pentabarf.de',
67
68    classifiers=[
69        'Development Status :: 5 - Production/Stable',
70        'Intended Audience :: Developers',
71        'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
72        'Programming Language :: Python :: 2',
73        'Programming Language :: Python :: 3',
74        'Topic :: Communications :: Chat',
75        'Topic :: Security :: Cryptography',
76        ],
77
78    **args
79)
80