Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
patching.py
contains a set of helper functions for recipe developers to specify patch conditions. Most of them are still not used.This refactor maintains the same API, but does a lot of re-ordering and reformatting to make this library easier for a recipe-writer to adopt. Docstrings and other comments have been added, parameter types are explained, kwargs are avoided for simplicity. None of these affect any existing client.
In addition, there are three functional changes:
distutils.LooseVersion
is deprecated and causing warnings.package.version.Version
takes its place. These do have slightly different semantics, but no-one seems to be using these functions yet, so there are no clients to fix.os.uname()[0]
replaced withplatform.uname.system()
which works cross-platform. Comparison is now case-insensitive.is_windows()
cheekily added, in preparation for win32 support in the long-distant future.