[Subversion] / PEAK / setup.py  

Diff of /PEAK/setup.py

Parent Directory | Revision Log

version 375, Sun Mar 31 20:45:54 2002 UTC version 582, Thu Oct 31 02:08:38 2002 UTC
Line 2 
Line 2 
   
 """Distutils setup file"""  """Distutils setup file"""
   
 from distutils.core import setup, Command  from distutils.core import setup, Command, Extension
 from distutils.command.install_data import install_data  from distutils.command.install_data import install_data
 from distutils.command.sdist import sdist as old_sdist  from distutils.command.sdist import sdist as old_sdist
 import sys  import sys
Line 13 
Line 13 
   
     def finalize_options (self):      def finalize_options (self):
         self.set_undefined_options('install',          self.set_undefined_options('install',
                                    ('install_purelib', 'install_dir'),                                     ('install_lib', 'install_dir'),
                                    ('root', 'root'),                                     ('root', 'root'),
                                    ('force', 'force'),                                     ('force', 'force'),
                                   )                                    )
Line 45 
Line 45 
   
     description = "Run unit tests after installation"      description = "Run unit tests after installation"
   
     user_options = []      user_options = [('test-module=','m','Test module (default=peak.tests)'),]
   
     def initialize_options(self):      def initialize_options(self):
         self.test_names = None          self.test_module = None
   
     def finalize_options(self):      def finalize_options(self):
   
         if self.test_names is None:          if self.test_module is None:
             self.test_names = ['TW.tests.test_suite']              self.test_module = 'peak.api.tests'
   
           self.test_args = [self.test_module+'.test_suite']
   
         if self.verbose:          if self.verbose:
             self.test_names.insert(0,'--verbose')              self.test_args.insert(0,'--verbose')
   
     def run(self):      def run(self):
   
Line 65 
Line 67 
   
         if not self.dry_run:          if not self.dry_run:
             from unittest import main              from unittest import main
             main(None, None, sys.argv[:1]+self.test_names)              main(None, None, sys.argv[:1]+self.test_args)
   
   
   
   
   
Line 85 
Line 85 
     """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"
Line 105 
Line 105 
   
         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',
                   '-i', 'Interface', '-i', 'Persistence', '-i', 'kjbuckets', '.'
             ]              ]
             if not self.verbose: self.happy_options.insert(0,'-q')              if not self.verbose: self.happy_options.insert(0,'-q')
   
Line 120 
Line 121 
         if not self.dry_run:          if not self.dry_run:
             HappyDoc(self.happy_options).run()              HappyDoc(self.happy_options).run()
   
   
 setup(  setup(
       name="PEAK",
     name="TransWarp",      version="0.5a1",
     version="0.2pre1",      description="The Python Enterprise Application Kit",
     description="The TransWarp Software Automation Toolkit",  
   
     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/PEAK/",
     url="http://www.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.running',
     ],          'peak.config', 'peak.storage',
   
           'peak.binding.tests', 'peak.config.tests',
           'peak.metamodels.tests', 'peak.util.tests', 'peak.tests',
   
           'Interface', 'Interface.tests',
           'Interface.Common', 'Interface.Common.tests',
           'Interface.Registry', 'Interface.Registry.tests',
   
           'Persistence',
       ],
     package_dir = {'':'src'},      package_dir = {'':'src'},
   
       ext_modules = [
           Extension("kjbuckets", ["src/kjbuckets/kjbucketsmodule.c"]),
           Extension("Persistence.cPersistence",
               ["src/Persistence/cPersistence.c"]
           )
       ],
     cmdclass = {      cmdclass = {
         'install_data': install_data, 'sdist': sdist, 'happy': happy,          'install_data': install_data, 'sdist': sdist, 'happy': happy,
         'test': test,          'test': test, 'sdist_nodoc': old_sdist,
     },      },
   
     data_files = [      data_files = [
         ('TW/SEF/tests', ['src/TW/SEF/tests/MetaMeta.xml']),          ('peak', ['src/peak/peak.ini']),
           ('peak/metamodels/tests', ['src/peak/metamodels/tests/MetaMeta.xml']),
     ],      ],
 )  )
   


Generate output suitable for use with a patch program
Legend:
Removed from v.375  
changed lines
  Added in v.582

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help