1#
2#    Postfix queue control python tool (pymailq)
3#
4#    Copyright (C) 2014 Denis Pompilio (jawa) <denis.pompilio@gmail.com>
5#
6#    This file is part of pymailq
7#
8#    This program is free software; you can redistribute it and/or
9#    modify it under the terms of the GNU General Public License
10#    as published by the Free Software Foundation; either version 2
11#    of the License, or (at your option) any later version.
12#
13#    This program is distributed in the hope that it will be useful,
14#    but WITHOUT ANY WARRANTY; without even the implied warranty of
15#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16#    GNU General Public License for more details.
17#
18#    You should have received a copy of the GNU General Public License
19#    along with this program; if not, see <http://www.gnu.org/licenses/>.
20
21import os
22from distutils.core import setup
23
24if __name__ == '__main__':
25    readme_file = os.path.join(os.path.dirname(__file__), 'README.rst')
26    release = "0.9.0"
27    setup(
28        name="pymailq",
29        version=release,
30        url="https://github.com/outini/pymailq",
31        author="Denis Pompilio (jawa)",
32        author_email="denis.pompilio@gmail.com",
33        maintainer="Denis Pompilio (jawa)",
34        maintainer_email="denis.pompilio@gmail.com",
35        description="Postfix queue control python tool",
36        long_description=open(readme_file).read(),
37        license="GPLv2",
38        platforms=['UNIX'],
39        scripts=['bin/pqshell'],
40        packages=['pymailq'],
41        package_dir={'pymailq': 'pymailq'},
42        data_files=[('/usr/local/share/doc/py38-pymailq', ['README.rst', 'LICENSE', 'CHANGES']),
43                    ('/usr/local/share/examples/py38-pymailq', [
44                        'share/doc/examples/pymailq.ini'
45                    ]),
46                    ('/usr/local/man/man1', ['man/pqshell.1'])],
47        keywords=['postfix', 'shell', 'mailq', 'python', 'pqshell', 'postqueue'],
48        classifiers=[
49            'Development Status :: 5 - Production/Stable',
50            'Operating System :: POSIX :: BSD',
51            'Operating System :: POSIX :: Linux',
52            'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
53            'Programming Language :: Python',
54            'Environment :: Console',
55            'Topic :: Utilities',
56            'Topic :: Communications :: Email',
57            'Topic :: System :: Systems Administration',
58            'Topic :: System :: Shells'
59            ]
60        )
61