setup.py: PEP-314-ified. v0.7.x
authorPascal Volk <user@localhost.localdomain.org>
Tue, 06 Nov 2012 19:46:06 +0000
branchv0.7.x
changeset 639 d50fe67778c6
parent 638 0de0b9e75c9f
child 640 ebacd11563b0
setup.py: PEP-314-ified. Distutils setup() function now has the 'requires` keyword parameter.
setup.py
--- a/setup.py	Mon Nov 05 21:57:37 2012 +0000
+++ b/setup.py	Tue Nov 06 19:46:06 2012 +0000
@@ -5,7 +5,6 @@
 
 import os
 from distutils.core import setup
-from distutils.dist import DistributionMetadata
 
 VERSION = '0.6.1'
 
@@ -43,7 +42,7 @@
                'Topic :: Utilities']
 
 # sucessfuly tested on:
-platforms = ['freebsd7', 'linux2', 'openbsd4']
+platforms = ['freebsd7', 'linux2', 'openbsd5']
 
 # remove existing MANIFEST
 if os.path.exists('MANIFEST'):
@@ -57,12 +56,10 @@
               'author': 'Pascal Volk',
               'author_email': 'user+vmm@localhost.localdomain.org',
               'license': 'BSD License',
+              'requires': ['psycopg2 (>=2.0)'],
               'url': 'http://vmm.localdomain.org/',
-              'download_url':'http://sf.net/projects/vmm/files/',
+              'download_url': 'http://sf.net/projects/vmm/files/',
               'platforms': platforms,
               'classifiers': classifiers}
 
-if 'requires' in DistributionMetadata._METHOD_BASENAMES:
-    setup_args['requires'] = ['psycopg2 (>=2.0)', 'pyPgSQL (>=2.5.1)']
-
 setup(**setup_args)