1 #!/usr/bin/env python |
|
2 # -*- coding: utf-8 -*- |
|
3 # Copyright 2007 - 2014, Pascal Volk |
|
4 # See COPYING for distribution information. |
|
5 |
|
6 import os |
|
7 from distutils.core import setup |
|
8 from distutils.dist import DistributionMetadata |
|
9 |
|
10 VERSION = '0.6.2' |
|
11 |
|
12 descr = 'Tool to manage mail domains/accounts/aliases for Dovecot and Postfix' |
|
13 long_description = """ |
|
14 vmm, a virtual mail manager, is a command line tool for |
|
15 administrators/postmasters to manage (alias-)domains, accounts, |
|
16 aliases and relocated users. |
|
17 It is designed for Dovecot and Postfix with a PostgreSQL backend. |
|
18 """ |
|
19 packages = [ |
|
20 'VirtualMailManager', |
|
21 'VirtualMailManager.cli', |
|
22 'VirtualMailManager.ext', |
|
23 'VirtualMailManager.pycompat', |
|
24 ] |
|
25 # http://pypi.python.org/pypi?%3Aaction=list_classifiers |
|
26 classifiers = ['Development Status :: 5 - Production/Stable', |
|
27 'Environment :: Console', |
|
28 'Intended Audience :: System Administrators', |
|
29 'License :: OSI Approved :: BSD License', |
|
30 'Natural Language :: Dutch', |
|
31 'Natural Language :: English', |
|
32 'Natural Language :: Finnish', |
|
33 'Natural Language :: French', |
|
34 'Natural Language :: German', |
|
35 'Natural Language :: Vietnamese', |
|
36 'Operating System :: POSIX', |
|
37 'Operating System :: POSIX :: BSD', |
|
38 'Operating System :: POSIX :: Linux', |
|
39 'Operating System :: POSIX :: Other', |
|
40 'Programming Language :: Python', |
|
41 'Programming Language :: Python :: 2', |
|
42 'Topic :: Communications :: Email', |
|
43 'Topic :: System :: Systems Administration', |
|
44 'Topic :: Utilities'] |
|
45 |
|
46 # sucessfuly tested on: |
|
47 platforms = ['freebsd7', 'linux2', 'openbsd4'] |
|
48 |
|
49 # remove existing MANIFEST |
|
50 if os.path.exists('MANIFEST'): |
|
51 os.remove('MANIFEST') |
|
52 |
|
53 setup_args = {'name': 'VirtualMailManager', |
|
54 'version': VERSION, |
|
55 'description': descr, |
|
56 'long_description': long_description, |
|
57 'packages': packages, |
|
58 'author': 'Pascal Volk', |
|
59 'author_email': 'user+vmm@localhost.localdomain.org', |
|
60 'license': 'BSD License', |
|
61 'url': 'http://vmm.localdomain.org/', |
|
62 'download_url':'http://sf.net/projects/vmm/files/', |
|
63 'platforms': platforms, |
|
64 'classifiers': classifiers} |
|
65 |
|
66 if 'requires' in DistributionMetadata._METHOD_BASENAMES: |
|
67 setup_args['requires'] = ['psycopg2 (>=2.0)', 'pyPgSQL (>=2.5.1)'] |
|
68 |
|
69 setup(**setup_args) |
|