equal
deleted
inserted
replaced
3 # Copyright 2007 - 2012, 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 |
|
9 |
8 |
10 VERSION = '0.6.1' |
9 VERSION = '0.6.1' |
11 |
10 |
12 descr = 'Tool to manage mail domains/accounts/aliases for Dovecot and Postfix' |
11 descr = 'Tool to manage mail domains/accounts/aliases for Dovecot and Postfix' |
13 long_description = """ |
12 long_description = """ |
41 'Topic :: Communications :: Email', |
40 'Topic :: Communications :: Email', |
42 'Topic :: System :: Systems Administration', |
41 'Topic :: System :: Systems Administration', |
43 'Topic :: Utilities'] |
42 'Topic :: Utilities'] |
44 |
43 |
45 # sucessfuly tested on: |
44 # sucessfuly tested on: |
46 platforms = ['freebsd7', 'linux2', 'openbsd4'] |
45 platforms = ['freebsd7', 'linux2', 'openbsd5'] |
47 |
46 |
48 # remove existing MANIFEST |
47 # remove existing MANIFEST |
49 if os.path.exists('MANIFEST'): |
48 if os.path.exists('MANIFEST'): |
50 os.remove('MANIFEST') |
49 os.remove('MANIFEST') |
51 |
50 |
55 'long_description': long_description, |
54 'long_description': long_description, |
56 'packages': packages, |
55 'packages': packages, |
57 'author': 'Pascal Volk', |
56 'author': 'Pascal Volk', |
58 'author_email': 'user+vmm@localhost.localdomain.org', |
57 'author_email': 'user+vmm@localhost.localdomain.org', |
59 'license': 'BSD License', |
58 'license': 'BSD License', |
|
59 'requires': ['psycopg2 (>=2.0)'], |
60 'url': 'http://vmm.localdomain.org/', |
60 'url': 'http://vmm.localdomain.org/', |
61 'download_url':'http://sf.net/projects/vmm/files/', |
61 'download_url': 'http://sf.net/projects/vmm/files/', |
62 'platforms': platforms, |
62 'platforms': platforms, |
63 'classifiers': classifiers} |
63 'classifiers': classifiers} |
64 |
64 |
65 if 'requires' in DistributionMetadata._METHOD_BASENAMES: |
|
66 setup_args['requires'] = ['psycopg2 (>=2.0)', 'pyPgSQL (>=2.5.1)'] |
|
67 |
|
68 setup(**setup_args) |
65 setup(**setup_args) |