author | Pascal Volk <user@localhost.localdomain.org> |
Sun, 04 Nov 2012 18:33:11 +0000 | |
branch | v0.7.x |
changeset 637 | ca6621caff2f |
parent 627 | 682431c45b24 |
child 639 | d50fe67778c6 |
permissions | -rw-r--r-- |
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 -*- |
568
14abdd04ddf5
Updated copyright notices to include the year 2012.
Pascal Volk <user@localhost.localdomain.org>
parents:
478
diff
changeset
|
3 |
# Copyright 2007 - 2012, 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 |
|
627
682431c45b24
Released vmm-0.6.1
Pascal Volk <user@localhost.localdomain.org>
parents:
572
diff
changeset
|
10 |
VERSION = '0.6.1' |
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 |
""" |
261
1c2241dde942
setup.py: Added sub-package pycompat to the packages list.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
163
diff
changeset
|
19 |
packages = [ |
1c2241dde942
setup.py: Added sub-package pycompat to the packages list.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
163
diff
changeset
|
20 |
'VirtualMailManager', |
356
61e732e4cb3e
Updated INSTALL and setup.py.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
261
diff
changeset
|
21 |
'VirtualMailManager.cli', |
261
1c2241dde942
setup.py: Added sub-package pycompat to the packages list.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
163
diff
changeset
|
22 |
'VirtualMailManager.ext', |
1c2241dde942
setup.py: Added sub-package pycompat to the packages list.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
163
diff
changeset
|
23 |
] |
356
61e732e4cb3e
Updated INSTALL and setup.py.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
261
diff
changeset
|
24 |
# http://pypi.python.org/pypi?%3Aaction=list_classifiers |
163
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
25 |
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
|
26 |
'Environment :: Console', |
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
27 |
'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
|
28 |
'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
|
29 |
'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
|
30 |
'Natural Language :: English', |
572
3238c58d01ae
Released vmm-0.6.0
Pascal Volk <user@localhost.localdomain.org>
parents:
568
diff
changeset
|
31 |
'Natural Language :: Finnish', |
163
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
32 |
'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
|
33 |
'Natural Language :: German', |
572
3238c58d01ae
Released vmm-0.6.0
Pascal Volk <user@localhost.localdomain.org>
parents:
568
diff
changeset
|
34 |
'Natural Language :: Vietnamese', |
163
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
35 |
'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
|
36 |
'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
|
37 |
'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
|
38 |
'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
|
39 |
'Programming Language :: Python', |
356
61e732e4cb3e
Updated INSTALL and setup.py.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
261
diff
changeset
|
40 |
'Programming Language :: Python :: 2', |
163
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
41 |
'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
|
42 |
'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
|
43 |
'Topic :: Utilities'] |
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
44 |
|
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
45 |
# 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
|
46 |
platforms = ['freebsd7', 'linux2', 'openbsd4'] |
0
bb0aa2102206
Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
47 |
|
bb0aa2102206
Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
48 |
# remove existing MANIFEST |
bb0aa2102206
Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
49 |
if os.path.exists('MANIFEST'): |
bb0aa2102206
Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
50 |
os.remove('MANIFEST') |
bb0aa2102206
Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
51 |
|
163
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
52 |
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
|
53 |
'version': VERSION, |
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
54 |
'description': descr, |
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
55 |
'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
|
56 |
'packages': packages, |
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
57 |
'author': 'Pascal Volk', |
478
6278a7a2a476
Updated the author's e-mail address.
Pascal Volk <user@localhost.localdomain.org>
parents:
369
diff
changeset
|
58 |
'author_email': 'user+vmm@localhost.localdomain.org', |
163
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
59 |
'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
|
60 |
'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
|
61 |
'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
|
62 |
'platforms': platforms, |
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
63 |
'classifiers': classifiers} |
0
bb0aa2102206
Initial import @sf.net
Pascal Volk <neverseen@users.sourceforge.net>
parents:
diff
changeset
|
64 |
|
163
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
65 |
if 'requires' in DistributionMetadata._METHOD_BASENAMES: |
369
4dfc5f3c1f2c
setup.py: Fixed syntax error
Tobias Berling <t-obi@users.sourceforge.net>
parents:
366
diff
changeset
|
66 |
setup_args['requires'] = ['psycopg2 (>=2.0)', 'pyPgSQL (>=2.5.1)'] |
163
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
67 |
|
1981f285f0c0
setup.py: Fixed a UserWarning that may occur with older Python.
Pascal Volk <neverseen@users.sourceforge.net>
parents:
162
diff
changeset
|
68 |
setup(**setup_args) |