Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use patch-ng fork instead of unmaintained patch
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
  • Loading branch information
eclipseo authored and Robert-André Mauchin committed Oct 15, 2023
commit 4ae38ce5420ec266fd15d4231dc35006037e8493
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ full =
typecode[full] >= 30.0.1

patch =
patch >= 1.16
patch-ng >= 1.17

testing =
pytest >= 6, != 7.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/extractcode/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def patch_info(location):

Raise an exception if the file is not a patch file or cannot be parsed.
"""
import patch as pythonpatch
import patch_ng as pythonpatch
patchset = pythonpatch.fromfile(location)
if not patchset:
msg = 'Unable to parse patch file: %(location)s' % locals()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from extractcode import patch

try:
import patch as _pythonpatch
import patch_ng as _pythonpatch
except ImportError:
import pytest
pytestmark = pytest.mark.skipif(True, reason="Run only if patch is installed.")
Expand Down