setup.py
author Pascal Volk <neverseen@users.sourceforge.net>
Fri, 02 Apr 2010 17:30:44 +0000
branchv0.6.x
changeset 234 e88ba0fb1281
parent 163 1981f285f0c0
child 261 1c2241dde942
permissions -rw-r--r--
VMM: check_localpart() use '%s' instead of %r in error messages.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
     1
#!/usr/bin/env python
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
     2
# -*- coding: utf-8 -*-
162
0ac9ef587769 Updated copyright notices to include the year 2010.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 150
diff changeset
     3
# Copyright 2007 - 2010, Pascal Volk
0
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
     4
# See COPYING for distribution information.
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
     5
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
     6
import os
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
     7
from distutils.core import setup
163
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
     8
from distutils.dist import DistributionMetadata
0
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
     9
150
3e972996da7f Released vmm-0.5.2
Pascal Volk <neverseen@users.sourceforge.net>
parents: 148
diff changeset
    10
VERSION = '0.5.2'
0
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
    11
163
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    12
descr = 'Tool to manage mail domains/accounts/aliases for Dovecot and Postfix'
0
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
    13
long_description = """
117
c96b5768c76d Updated long_description, download_url and platforms.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 102
diff changeset
    14
vmm, a virtual mail manager, is a command line tool for
c96b5768c76d Updated long_description, download_url and platforms.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 102
diff changeset
    15
administrators/postmasters to manage (alias-)domains, accounts,
c96b5768c76d Updated long_description, download_url and platforms.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 102
diff changeset
    16
aliases and relocated users.
c96b5768c76d Updated long_description, download_url and platforms.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 102
diff changeset
    17
It is designed for Dovecot and Postfix with a PostgreSQL backend.
0
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
    18
"""
163
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    19
packages = ['VirtualMailManager', 'VirtualMailManager.ext',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    20
            'VirtualMailManager.constants']
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    21
classifiers = ['Development Status :: 5 - Production/Stable',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    22
               'Environment :: Console',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    23
               'Intended Audience :: System Administrators',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    24
               'License :: OSI Approved :: BSD License',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    25
               'Natural Language :: Dutch',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    26
               'Natural Language :: English',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    27
               'Natural Language :: French',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    28
               'Natural Language :: German',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    29
               'Operating System :: POSIX',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    30
               'Operating System :: POSIX :: BSD',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    31
               'Operating System :: POSIX :: Linux',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    32
               'Operating System :: POSIX :: Other',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    33
               'Programming Language :: Python',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    34
               'Topic :: Communications :: Email',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    35
               'Topic :: System :: Systems Administration',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    36
               'Topic :: Utilities']
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    37
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    38
# sucessfuly tested on:
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    39
platforms = ['freebsd7', 'linux2', 'openbsd4']
0
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
    40
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
    41
# remove existing MANIFEST
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
    42
if os.path.exists('MANIFEST'):
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
    43
    os.remove('MANIFEST')
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
    44
163
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    45
setup_args = {'name': 'VirtualMailManager',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    46
              'version': VERSION,
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    47
              'description': descr,
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    48
              'long_description': long_description,
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    49
              'packages': packages,
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    50
              'author': 'Pascal Volk',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    51
              'author_email': 'neverseen@users.sourceforge.net',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    52
              'license': 'BSD License',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    53
              'url': 'http://vmm.localdomain.org/',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    54
              'download_url':'http://sf.net/projects/vmm/files/',
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    55
              'platforms': platforms,
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    56
              'classifiers': classifiers}
0
bb0aa2102206 Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff changeset
    57
163
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    58
if 'requires' in DistributionMetadata._METHOD_BASENAMES:
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    59
    setup_args['requires'] = ['pyPgSQL']
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    60
1981f285f0c0 setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents: 162
diff changeset
    61
setup(**setup_args)