setup.py
branchv0.6.x
changeset 163 1981f285f0c0
parent 162 0ac9ef587769
child 261 1c2241dde942
equal deleted inserted replaced
162:0ac9ef587769 163:1981f285f0c0
     3 # Copyright 2007 - 2010, Pascal Volk
     3 # Copyright 2007 - 2010, Pascal Volk
     4 # See COPYING for distribution information.
     4 # See COPYING for distribution information.
     5 
     5 
     6 import os
     6 import os
     7 from distutils.core import setup
     7 from distutils.core import setup
       
     8 from distutils.dist import DistributionMetadata
     8 
     9 
     9 VERSION = '0.5.2'
    10 VERSION = '0.5.2'
    10 
    11 
       
    12 descr = 'Tool to manage mail domains/accounts/aliases for Dovecot and Postfix'
    11 long_description = """
    13 long_description = """
    12 vmm, a virtual mail manager, is a command line tool for
    14 vmm, a virtual mail manager, is a command line tool for
    13 administrators/postmasters to manage (alias-)domains, accounts,
    15 administrators/postmasters to manage (alias-)domains, accounts,
    14 aliases and relocated users.
    16 aliases and relocated users.
    15 It is designed for Dovecot and Postfix with a PostgreSQL backend.
    17 It is designed for Dovecot and Postfix with a PostgreSQL backend.
    16 """
    18 """
       
    19 packages = ['VirtualMailManager', 'VirtualMailManager.ext',
       
    20             'VirtualMailManager.constants']
       
    21 classifiers = ['Development Status :: 5 - Production/Stable',
       
    22                'Environment :: Console',
       
    23                'Intended Audience :: System Administrators',
       
    24                'License :: OSI Approved :: BSD License',
       
    25                'Natural Language :: Dutch',
       
    26                'Natural Language :: English',
       
    27                'Natural Language :: French',
       
    28                'Natural Language :: German',
       
    29                'Operating System :: POSIX',
       
    30                'Operating System :: POSIX :: BSD',
       
    31                'Operating System :: POSIX :: Linux',
       
    32                'Operating System :: POSIX :: Other',
       
    33                'Programming Language :: Python',
       
    34                'Topic :: Communications :: Email',
       
    35                'Topic :: System :: Systems Administration',
       
    36                'Topic :: Utilities']
       
    37 
       
    38 # sucessfuly tested on:
       
    39 platforms = ['freebsd7', 'linux2', 'openbsd4']
    17 
    40 
    18 # remove existing MANIFEST
    41 # remove existing MANIFEST
    19 if os.path.exists('MANIFEST'):
    42 if os.path.exists('MANIFEST'):
    20     os.remove('MANIFEST')
    43     os.remove('MANIFEST')
    21 
    44 
       
    45 setup_args = {'name': 'VirtualMailManager',
       
    46               'version': VERSION,
       
    47               'description': descr,
       
    48               'long_description': long_description,
       
    49               'packages': packages,
       
    50               'author': 'Pascal Volk',
       
    51               'author_email': 'neverseen@users.sourceforge.net',
       
    52               'license': 'BSD License',
       
    53               'url': 'http://vmm.localdomain.org/',
       
    54               'download_url':'http://sf.net/projects/vmm/files/',
       
    55               'platforms': platforms,
       
    56               'classifiers': classifiers}
    22 
    57 
    23 setup(name='VirtualMailManager',
    58 if 'requires' in DistributionMetadata._METHOD_BASENAMES:
    24       version=VERSION,
    59     setup_args['requires'] = ['pyPgSQL']
    25       description='Tool to manage mail domains/accounts/aliases for Dovecot and Postfix',
    60 
    26       long_description=long_description,
    61 setup(**setup_args)
    27       packages=['VirtualMailManager', 'VirtualMailManager.ext',
       
    28           'VirtualMailManager.constants'],
       
    29       author='Pascal Volk',
       
    30       author_email='neverseen@users.sourceforge.net',
       
    31       license='BSD License',
       
    32       url='http://vmm.localdomain.org/',
       
    33       download_url='http://sf.net/projects/vmm/files/',
       
    34       platforms=['freebsd7', 'linux2', 'openbsd4'],
       
    35       classifiers=[
       
    36           'Development Status :: 4 - Beta',
       
    37           'Development Status :: 5 - Production/Stable',
       
    38           'Environment :: Console',
       
    39           'Intended Audience :: System Administrators',
       
    40           'License :: OSI Approved :: BSD License',
       
    41           'Natural Language :: Dutch',
       
    42           'Natural Language :: English',
       
    43           'Natural Language :: French',
       
    44           'Natural Language :: German',
       
    45           'Operating System :: POSIX',
       
    46           'Operating System :: POSIX :: BSD',
       
    47           'Operating System :: POSIX :: Linux',
       
    48           'Operating System :: POSIX :: Other',
       
    49           'Programming Language :: Python',
       
    50           'Topic :: Communications :: Email',
       
    51           'Topic :: System :: Systems Administration',
       
    52           'Topic :: Utilities'
       
    53       ],
       
    54       requires=['pyPgSQL']
       
    55       )