adding tempita to requires

This commit is contained in:
BJ Dierkes 2009-12-06 16:53:12 -06:00
parent f780476b22
commit a3ad307d6a
6 changed files with 36 additions and 22 deletions

1
TODO
View File

@ -1,3 +1,4 @@
ability to define hooks
ability to register hooks from plugins
documentation
nose tests

View File

@ -8,15 +8,15 @@ Create a new project named helloworld with this command:
Create a new plugin for the helloworld project with this command:
$ paster cement-app helloworld -p myplugin
$ paster cement-plugin helloworld myplugin
Usage:
.. parsed-literal::
paster cement-app [--version][-h|--help]
[-p PLUGIN][--dry-run][-t|--templates *TEMPLATES*]
[--dry-run][-t|--templates *TEMPLATES*]
.. container:: paster-usage
@ -31,7 +31,7 @@ Usage:
"""
# taken mostly from tg.devtools
# Taken mostly from tg.devtools... Thank you!
import sys, os
import re
@ -138,7 +138,7 @@ class CementPluginCommand(command.Command):
Example usage::
$ paster cement-plugin yourproject
$ paster cement-plugin yourproject yourplugin
"""
version = pkg_resources.get_distribution('cement').version
summary = __doc__.splitlines()[0]
@ -147,6 +147,8 @@ Example usage::
group_name = "Cement"
dry_run = False
templates = "cementplugin"
project = None
plugin = None
parser = command.Command.standard_parser(quiet=True)
parser = optparse.OptionParser(

View File

@ -8,16 +8,24 @@
# toggle debug output... can be true, false, yes, no, 1, 0
debug = false
# add any config options you'd like here
myoption = this is my option
# list of plugin names to load (comma separated).
enabled_plugins = clibasic,
# these should probably be changed for production installations if you
# follow the FHS (and you should).
datadir = ./var/lib/{{package}}/data
tmpdir = ./var/lib/{{package}}/tmp
log_file = ./var/lib/{{package}}/log/{{package}}.log
plugin_config_dir = ./etc/{{package}}/plugins.d
plugin_dir = ./var/lib/{{package}}/plugins.d
# list of plugin names to load (comma separated). Note that the 'simple'
# plugin is from within CementExample directly (be it a core plugin if you
# will). The 'example' plugin comes from the CementExamplePlugin and is
# an external 3rd party plugin.
enabled_plugins = clibasic, example,
# this is just a cosmetic option... whether to show 'loading plugin...'
# on application startup.
#
# show_plugin_load = true
# add any config options you'd like here
#
# myoption = this is my option

View File

@ -5,10 +5,10 @@
# config['plugins']['example']['param'] = value
#
#
# Please not that core cement plugins can be loaded from an application
# using the Cement framework. That said, the example.plugin configuration
# file needs to go under the plugins.d configuration directory of the
# application, not under cement itself.
# Please note that core cement plugins can be loaded from any application
# using the Cement framework. That said, plugin configuration files needs to
# go under the plugins.d configuration directory of the application, not under
# cement itself.
debug = false
param1 = value1

View File

@ -5,10 +5,10 @@
# config['plugins']['example']['param'] = value
#
#
# Please not that core cement plugins can be loaded from an application
# using the Cement framework. That said, the example.plugin configuration
# file needs to go under the plugins.d configuration directory of the
# application, not under cement itself.
# Please note that core cement plugins can be loaded from any application
# using the Cement framework. That said, plugin configuration files needs to
# go under the plugins.d configuration directory of the application, not under
# cement itself.
debug = false
param1 = value1
@ -21,4 +21,4 @@ param3 = yes
param4 = 0
# equates to ['my', 'list', 'of', 'values']
param5 = my, list, of, values,
param5 = my,

View File

@ -37,7 +37,10 @@ setup(name='Cement',
include_package_data=True,
zip_safe=False,
install_requires=[
"ConfigObj"
"ConfigObj",
# Only required if you want to use paster
"PasteScript",
"tempita",
],
entry_points="""
[paste.global_paster_command]