Concatenate an option on a target part from several other parts
Project description
.. contents::
.. Note to recipe author!
---------------------
Update the following URLs to point to your:
- code repository
- bug tracker
- questions/comments feedback mail
(do not set a real mail, to avoid spams)
Or remove it if not used.
- Code repository: http://pypi.python.org/pypi
- Questions and comments to somemailing_list
- Report bugs at http://bug.somewhere.com/..
Detailed Documentation
**********************
Supported options
=================
The recipe supports the following options:
.. Note to recipe author!
----------------------
For each option the recipe uses you shoud include a description
about the purpose of the option, the format and semantics of the
values it accepts, whether it is mandatory or optional and what the
default value is if it is omitted.
option
Description for ``option``...
Option is here to identify which option will be the concatenated
target
Description for ``target``...
Target is the target part that will receive the concatenated option from different parts
parts
Description for ``parts``...
Part is the list of different parts from which the option will be concatenated
Example usage
=============
.. Note to recipe author!
----------------------
zc.buildout provides a nice testing environment which makes it
relatively easy to write doctests that both demonstrate the use of
the recipe and test it.
You can find examples of recipe doctests from the PyPI, e.g.
http://pypi.python.org/pypi/zc.recipe.egg
The PyPI page for zc.buildout contains documentation about the test
environment.
http://pypi.python.org/pypi/zc.buildout#testing-support
Below is a skeleton doctest that you can start with when building
your own tests.
We'll start by creating a buildout that uses the recipe::
>>> write('buildout.cfg',
... """
... [buildout]
... parts = test1
...
... [test1]
... recipe = my.macro.concat
... option = %(foo)s
... target = %(bar)s
... parts = test2
... test3
... [test2]
... myconfig = be smart
... [test3]
... myconfig = dont worry
... [test4]
... myconfig =
... """ % { 'foo' : 'myconfig', 'bar' : 'test4'})
Running the buildout gives us::
>>> print 'start', system(buildout)
start...
Installing test1.
<BLANKLINE>
Contributors
************
Serge Renfer, Author
Change history
**************
0.6.4 (2009-04-11)
----------------
added CONTRIBUTORS.txt and CHANGES.txt in SOURCES.txt
0.6.3 (2009-04-11)
----------------
added my/macro/concat/README.txt in SOURCES.txt
0.6.2 (2009-04-11)
----------------
install correct testing
0.1 (xxxx-xx-xx)
----------------
- Created recipe with ZopeSkel
[Serge Renfer]
Download
********
.. Note to recipe author!
---------------------
Update the following URLs to point to your:
- code repository
- bug tracker
- questions/comments feedback mail
(do not set a real mail, to avoid spams)
Or remove it if not used.
- Code repository: http://pypi.python.org/pypi
- Questions and comments to somemailing_list
- Report bugs at http://bug.somewhere.com/..
Detailed Documentation
**********************
Supported options
=================
The recipe supports the following options:
.. Note to recipe author!
----------------------
For each option the recipe uses you shoud include a description
about the purpose of the option, the format and semantics of the
values it accepts, whether it is mandatory or optional and what the
default value is if it is omitted.
option
Description for ``option``...
Option is here to identify which option will be the concatenated
target
Description for ``target``...
Target is the target part that will receive the concatenated option from different parts
parts
Description for ``parts``...
Part is the list of different parts from which the option will be concatenated
Example usage
=============
.. Note to recipe author!
----------------------
zc.buildout provides a nice testing environment which makes it
relatively easy to write doctests that both demonstrate the use of
the recipe and test it.
You can find examples of recipe doctests from the PyPI, e.g.
http://pypi.python.org/pypi/zc.recipe.egg
The PyPI page for zc.buildout contains documentation about the test
environment.
http://pypi.python.org/pypi/zc.buildout#testing-support
Below is a skeleton doctest that you can start with when building
your own tests.
We'll start by creating a buildout that uses the recipe::
>>> write('buildout.cfg',
... """
... [buildout]
... parts = test1
...
... [test1]
... recipe = my.macro.concat
... option = %(foo)s
... target = %(bar)s
... parts = test2
... test3
... [test2]
... myconfig = be smart
... [test3]
... myconfig = dont worry
... [test4]
... myconfig =
... """ % { 'foo' : 'myconfig', 'bar' : 'test4'})
Running the buildout gives us::
>>> print 'start', system(buildout)
start...
Installing test1.
<BLANKLINE>
Contributors
************
Serge Renfer, Author
Change history
**************
0.6.4 (2009-04-11)
----------------
added CONTRIBUTORS.txt and CHANGES.txt in SOURCES.txt
0.6.3 (2009-04-11)
----------------
added my/macro/concat/README.txt in SOURCES.txt
0.6.2 (2009-04-11)
----------------
install correct testing
0.1 (xxxx-xx-xx)
----------------
- Created recipe with ZopeSkel
[Serge Renfer]
Download
********
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file my.macro.concat-0.6.4dev.tar.gz
.
File metadata
- Download URL: my.macro.concat-0.6.4dev.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d3a9838b92d0f9c60129cf2eb7081243e5f3428884676f11ca0e5e39aca55e9 |
|
MD5 | 62c567cb2b367c9ed83c08f138cb0cb9 |
|
BLAKE2b-256 | 91afeca1f8ebed0f765f21dd3208cd52821178567a1db60aa279078d13f85285 |