Skip to content

Use patch-ng fork instead of unmaintained patch #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
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