Skip to content

Commit 4ae38ce

Browse files
eclipseoRobert-André Mauchin
authored andcommitted
Use patch-ng fork instead of unmaintained patch
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
1 parent 37197c2 commit 4ae38ce

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ full =
8282
typecode[full] >= 30.0.1
8383

8484
patch =
85-
patch >= 1.16
85+
patch-ng >= 1.17
8686

8787
testing =
8888
pytest >= 6, != 7.0.0

src/extractcode/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def patch_info(location):
134134
135135
Raise an exception if the file is not a patch file or cannot be parsed.
136136
"""
137-
import patch as pythonpatch
137+
import patch_ng as pythonpatch
138138
patchset = pythonpatch.fromfile(location)
139139
if not patchset:
140140
msg = 'Unable to parse patch file: %(location)s' % locals()

tests/test_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from extractcode import patch
1919

2020
try:
21-
import patch as _pythonpatch
21+
import patch_ng as _pythonpatch
2222
except ImportError:
2323
import pytest
2424
pytestmark = pytest.mark.skipif(True, reason="Run only if patch is installed.")

0 commit comments

Comments
 (0)