1 #!/usr/bin/env python |
1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- |
2 # -*- coding: utf-8 -*- |
3 # Copyright 2007 - 2010, Pascal Volk |
3 # Copyright 2007 - 2012, 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 = [ |
|
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 :: French', |
|
33 'Natural Language :: German', |
|
34 'Operating System :: POSIX', |
|
35 'Operating System :: POSIX :: BSD', |
|
36 'Operating System :: POSIX :: Linux', |
|
37 'Operating System :: POSIX :: Other', |
|
38 'Programming Language :: Python', |
|
39 'Programming Language :: Python :: 2', |
|
40 'Topic :: Communications :: Email', |
|
41 'Topic :: System :: Systems Administration', |
|
42 'Topic :: Utilities'] |
|
43 |
|
44 # sucessfuly tested on: |
|
45 platforms = ['freebsd7', 'linux2', 'openbsd4'] |
17 |
46 |
18 # remove existing MANIFEST |
47 # remove existing MANIFEST |
19 if os.path.exists('MANIFEST'): |
48 if os.path.exists('MANIFEST'): |
20 os.remove('MANIFEST') |
49 os.remove('MANIFEST') |
21 |
50 |
|
51 setup_args = {'name': 'VirtualMailManager', |
|
52 'version': VERSION, |
|
53 'description': descr, |
|
54 'long_description': long_description, |
|
55 'packages': packages, |
|
56 'author': 'Pascal Volk', |
|
57 'author_email': 'user+vmm@localhost.localdomain.org', |
|
58 'license': 'BSD License', |
|
59 'url': 'http://vmm.localdomain.org/', |
|
60 'download_url':'http://sf.net/projects/vmm/files/', |
|
61 'platforms': platforms, |
|
62 'classifiers': classifiers} |
22 |
63 |
23 setup(name='VirtualMailManager', |
64 if 'requires' in DistributionMetadata._METHOD_BASENAMES: |
24 version=VERSION, |
65 setup_args['requires'] = ['psycopg2 (>=2.0)', 'pyPgSQL (>=2.5.1)'] |
25 description='Tool to manage mail domains/accounts/aliases for Dovecot and Postfix', |
66 |
26 long_description=long_description, |
67 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 ) |
|