Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 854 Bytes

File metadata and controls

31 lines (17 loc) · 854 Bytes

Cross-platform patch utility to apply unified diffs.

How to use?

Download patch.py and run it with Python. It is a self-contained module without external dependencies.

python patch.py diff.patch

You can also run the .zip file.

python patch-1.14.2.zip diff.patch

How to install?

It is better to just stuff patch.py into your repository and use it from here. This way your setup will always be repeatable. If you still want to install it, make sure to use strict dependencies to avoid hitting an API break:

pip install "patch>=1,<2"

With pip 6.x.x and later it is possible to use the alternative syntax:

pip install "patch==1.*"

Other stuff