|
|
description = "Run unit tests after installation" |
description = "Run unit tests after installation" |
|
|
user_options = [('test-module=','m','Test module (default=TW.tests)'),] |
user_options = [('test-module=','m','Test module (default=peak.tests)'),] |
|
|
def initialize_options(self): |
def initialize_options(self): |
self.test_module = None |
self.test_module = None |
def finalize_options(self): |
def finalize_options(self): |
|
|
if self.test_module is None: |
if self.test_module is None: |
self.test_module = 'TW.tests' |
self.test_module = 'peak.tests' |
|
|
self.test_args = [self.test_module+'.test_suite'] |
self.test_args = [self.test_module+'.test_suite'] |
|
|
"""Command to generate documentation using HappyDoc |
"""Command to generate documentation using HappyDoc |
|
|
I should probably make this more general, and contribute it to either |
I should probably make this more general, and contribute it to either |
HappyDoc or the distutils, but this does the trick for TW for now... |
HappyDoc or the distutils, but this does the trick for PEAK for now... |
""" |
""" |
|
|
description = "Generate docs using happydoc" |
description = "Generate docs using happydoc" |
|
|
if self.happy_options is None: |
if self.happy_options is None: |
self.happy_options = [ |
self.happy_options = [ |
'-t', 'TransWarp Reference', '-d', self.doc_output_path, |
'-t', 'PEAK Reference', '-d', self.doc_output_path, |
'-i', 'examples', '-i', 'old', '-i', 'tests', '.', |
'-i', 'examples', '-i', 'old', '-i', 'tests', '.', |
] |
] |
if not self.verbose: self.happy_options.insert(0,'-q') |
if not self.verbose: self.happy_options.insert(0,'-q') |
|
|
setup( |
setup( |
|
|
name="TransWarp", |
name="PEAK", |
version="0.2pre1", |
version="0.2pre1", |
description="The TransWarp Software Automation Toolkit", |
description="The Python Enterprise Application Kit", |
|
|
author="Phillip J. Eby", |
author="Phillip J. Eby", |
author_email="transwarp@eby-sarna.com", |
author_email="transwarp@eby-sarna.com", |
|
|
url="http://www.telecommunity.com/TransWarp/", |
url="http://telecommunity.com/TransWarp/", |
|
|
packages=[ |
packages=[ |
'TW', 'TW.API', 'TW.Database', 'TW.MOF', 'TW.SEF', 'TW.UML', 'TW.XMI', |
'peak', 'peak.api', 'peak.binding', 'peak.model', 'peak.metamodels', |
'TW.Utils', 'TW.API.tests', 'TW.Database.tests', 'TW.SEF.tests', |
'peak.metamodels.mof', 'peak.metamodels.uml', 'peak.metamodels.xmi', |
'TW.Utils.tests', 'TW.tests', |
'peak.naming', 'peak.naming.factories', 'peak.util', |
|
|
|
'peak.binding.tests', |
|
'peak.metamodels.tests', 'peak.util.tests', 'peak.tests', |
|
|
|
'Interface', 'Interface.Common', 'Interface.tests', |
], |
], |
|
|
package_dir = {'':'src'}, |
package_dir = {'':'src'}, |
}, |
}, |
|
|
data_files = [ |
data_files = [ |
('TW/SEF/tests', ['src/TW/SEF/tests/MetaMeta.xml']), |
('peak/metamodels/tests', ['src/peak/metamodels/tests/MetaMeta.xml']), |
], |
], |
) |
) |
|
|