A buildout recipe for patching mainly designed to work with anybox.openerp.recipe
Project description
Detailed Documentation
======================
History
-------
This recipe is a fork of yaco.recipe.patch.
Supported options
-----------------
The recipe supports the following options:
patch
Path to patch
Recipe supports a list of patch one by line.
Eg.
patch = path/sub/patch1.patch # comments are supported too
path/sub/patch2.patch # another one
...
patchlocation
Location to apply patch
binary-patch
Location of patch binary. Use patch in $PATH by default if any is specified.
update_mode
'apply' : patch will be re-applied at each update
'reverse_then_apply': path will be reversed then reapply
'do_nothing' (DEFAULT): ...
Example usage
-------------
We'll start by creating a buildout that uses the recipe::
>>> write('buildout.cfg',
... """
... [buildout]
... parts = testpatch
...
... [testpatch]
... recipe = inouk.recipe.patch
... patch = %(patch)s
... patchlocation = %(patchlocation)s
... """ % { 'patch' : 'patch/example-test.patch', 'example/' : 'value2'}
... update_mode = apply
...)
Running the buildout gives us::
>>> print 'start', system(buildout)
Installing testpatch.
Contributors
============
"Cyril MORISSE", Twitter: @cmorisse
"Assem BAYAHI", http://www.linkedin.com/in/bayahiassem/en
Change history
==============
0.1.2 (2014-06-28)
----------------
- Add readme.txt
- Add support for patches list in patch directive
0.1.1 (2013-06-02)
----------------
- Add support for update and add update_mode parameter
0.1 (2013-05-28)
----------------
- inouk.recipe.patch Initial version. Fork of yaco.recipe.patch
======================
History
-------
This recipe is a fork of yaco.recipe.patch.
Supported options
-----------------
The recipe supports the following options:
patch
Path to patch
Recipe supports a list of patch one by line.
Eg.
patch = path/sub/patch1.patch # comments are supported too
path/sub/patch2.patch # another one
...
patchlocation
Location to apply patch
binary-patch
Location of patch binary. Use patch in $PATH by default if any is specified.
update_mode
'apply' : patch will be re-applied at each update
'reverse_then_apply': path will be reversed then reapply
'do_nothing' (DEFAULT): ...
Example usage
-------------
We'll start by creating a buildout that uses the recipe::
>>> write('buildout.cfg',
... """
... [buildout]
... parts = testpatch
...
... [testpatch]
... recipe = inouk.recipe.patch
... patch = %(patch)s
... patchlocation = %(patchlocation)s
... """ % { 'patch' : 'patch/example-test.patch', 'example/' : 'value2'}
... update_mode = apply
...)
Running the buildout gives us::
>>> print 'start', system(buildout)
Installing testpatch.
Contributors
============
"Cyril MORISSE", Twitter: @cmorisse
"Assem BAYAHI", http://www.linkedin.com/in/bayahiassem/en
Change history
==============
0.1.2 (2014-06-28)
----------------
- Add readme.txt
- Add support for patches list in patch directive
0.1.1 (2013-06-02)
----------------
- Add support for update and add update_mode parameter
0.1 (2013-05-28)
----------------
- inouk.recipe.patch Initial version. Fork of yaco.recipe.patch
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 inouk.recipe.patch-0.1.2.tar.gz
.
File metadata
- Download URL: inouk.recipe.patch-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 323ee4a9ab9153bbf1cb860189279a56016f29e3126d869d282e72224fdc041b |
|
MD5 | c690abb35e2982ccf9a552bc90175215 |
|
BLAKE2b-256 | 05cad7f948f91af4c3235d21812324965cb56d27ade4a178d127cbd34fcc5645 |