setup.py 2.55 KB
Newer Older
1
#!/usr/bin/env python3
louiz’'s avatar
louiz’ committed
2
from distutils.core import setup, Extension
3
import os, sys
louiz’'s avatar
louiz’ committed
4

mathieui's avatar
mathieui committed
5
module_poopt = Extension('poezio.poopt',
mathieui's avatar
mathieui committed
6
                    extra_compile_args=['-Wno-declaration-after-statement'],
mathieui's avatar
mathieui committed
7
                    sources = ['src/pooptmodule.c'])
louiz’'s avatar
louiz’ committed
8

9 10 11 12 13 14 15 16

current_dir = os.path.dirname(__file__)

# Create a link to the config file (for packaging purposes)
if not os.path.exists(os.path.join(current_dir, 'src', 'default_config.cfg')):
    os.link(os.path.join(current_dir, 'data', 'default_config.cfg'),
            os.path.join(current_dir, 'src',  'default_config.cfg'))

mathieui's avatar
mathieui committed
17
setup(name="poezio",
mathieui's avatar
mathieui committed
18
       version="0.8.3-dev",
mathieui's avatar
mathieui committed
19 20
       description="A console XMPP client",
       long_description=
21 22 23 24 25 26
       "Poezio is a Free chat client aiming to reproduce the ease of use of most "
       "IRC clients (e.g. weechat, irssi) while using the XMPP network."
       "\n"
       "Documentation is available at http://doc.poez.io/0.8.",


louiz’'s avatar
louiz’ committed
27
       ext_modules = [module_poopt],
28
       url = 'http://poez.io/',
mathieui's avatar
mathieui committed
29
       license = 'zlib',
30
       download_url = 'https://dev.louiz.org/projects/poezio/files',
mathieui's avatar
mathieui committed
31

louiz’'s avatar
louiz’ committed
32 33
       author = 'Florent Le Coz',
       author_email = 'louiz@louiz.org',
mathieui's avatar
mathieui committed
34 35 36 37

       maintainer = 'Mathieu Pasquet',
       maintainer_email = 'mathieui@mathieui.net',

mathieui's avatar
mathieui committed
38
       classifiers = ['Development Status :: 2 - Pre-Alpha',
39
                       'Topic :: Communications :: Chat',
mathieui's avatar
mathieui committed
40 41 42 43 44
                       'Environment :: Console :: Curses',
                       'Intended Audience :: End Users/Desktop',
                       'License :: OSI Approved :: zlib/libpng License',
                       'Natural Language :: English',
                       'Operating System :: Unix',
45
                       'Programming Language :: Python :: 3'
mathieui's avatar
mathieui committed
46
                    ],
47
       keywords = ['jabber', 'xmpp', 'client', 'chat', 'im', 'console'],
48 49
       packages = ['poezio', 'poezio_plugins', 'poezio_plugins.gpg', 'poezio_themes'],
       package_dir = {'poezio': 'src', 'poezio_plugins': 'plugins', 'poezio_themes': 'data/themes'},
50
       package_data = {'poezio': ['default_config.cfg']},
51
       scripts = ['scripts/poezio', 'scripts/poezio_gpg_export'],
52
       data_files = [('share/man/man1/', ['data/poezio.1'])],
53 54 55 56 57

       install_requires = ['sleekxmpp==1.2.4',
                           'dnspython3>=1.11.1'],
       extras_require = {'OTR plugin': 'python-potr>=1.0',
                         'Screen autoaway plugin': 'pyinotify==0.9.4'}
mathieui's avatar
mathieui committed
58
)
59 60 61 62 63

# Remove the link afterwards
if os.path.exists(os.path.join(current_dir, 'src', 'default_config.cfg')):
    os.unlink(os.path.join(current_dir, 'src', 'default_config.cfg'))