Skip to main content

Yet, another buildout recipe for patching

Project description

.. contents::

.. Note to recipe author!
---------------------


- Code repository: git://github.com/ant30/yaco-recipe-patch.git
- Report bugs at http://github.com/ant30/yaco.recipe.patch/issues


Detailed Documentation
**********************

Supported options
=================

The recipe supports the following options:

patch
Path to patch

patchlocation
Location to apply patch

binary-patch
Location of patch binary. Use patch in $PATH by default if any is specified.


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 = testpatch
...
... [testpatch]
... recipe = yaco.recipe.patch
... patch = %(patch)s
... patchlocation = %(patchlocation)s
... """ % { 'patch' : 'patch/example-test.patch', 'example/' : 'value2'})

Running the buildout gives us::

>>> print 'start', system(buildout)
Installing testpatch.



Contributors
************

"", Author


Change history
**************

0.1 (2010-07-23)
----------------

- Created recipe with ZopeSkel
[""]

Download
********

Project details


Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page