示例#1
0
 def post(self, command, output_dir, vars):
     for prereq in ['PasteDeploy']:
         command.insert_into_file(
             os.path.join(output_dir, 'setup.py'),
             'Extra requirements',
             '%r,\n' % prereq,
             indent=True)
     command.insert_into_file(
         os.path.join(output_dir, 'setup.py'),
         'Entry points',
         ('      [paste.app_factory]\n'
          '      main = %(package)s.wsgiapp:make_app\n') % vars,
         indent=False)
     if command.verbose:
         print_('*' * 72)
         print_('* Run "paster serve docs/devel_config.ini" to run the sample application')
         print_('* on http://localhost:8080')
         print_('*' * 72)
示例#2
0
 def post(self, command, output_dir, vars):
     for prereq in ['PasteDeploy']:
         command.insert_into_file(os.path.join(output_dir, 'setup.py'),
                                  'Extra requirements',
                                  '%r,\n' % prereq,
                                  indent=True)
     command.insert_into_file(
         os.path.join(output_dir, 'setup.py'),
         'Entry points',
         ('      [paste.app_factory]\n'
          '      main = %(package)s.wsgiapp:make_app\n') % vars,
         indent=False)
     if command.verbose:
         print_('*' * 72)
         print_(
             '* Run "paster serve docs/devel_config.ini" to run the sample application'
         )
         print_('* on http://localhost:8080')
         print_('*' * 72)
示例#3
0
def test_load_package():
    print_("Path:")
    pprint(sys.path)
    print_(pkg_resources.require("FakeApp"))