whl2conda diff¶
Usage¶
usage: whl2conda diff [-h] [-T <tool>] [-A ...] [--json] [--all] [--strict]
[--ignore <category>] [--run-export <name>]
<package1> <package2>
Compare the content of two conda packages
By default, this semantically analyzes the differences between the two packages and reports notable and unexpected differences, suppressing differences that are expected when comparing a package generated by this tool against an equivalent package built from a recipe (e.g. from conda-forge). Exits with a non-zero status if any unexpected differences are found.
Alternatively, if a diff tool is specified with -T, this will unpack each conda package into temporary directories, normalize the layout of files to minimize line differences, and run the specified diff tool and arguments.
positional arguments¶
options¶
-h, --help
show this help message and exit
-T <tool>, --diff-tool <tool>
Diff tool to use instead of semantic analysis.
The tool is expected to take positional arguments
for each directory. Additional arguments may be
passed after --args.
-A ..., --args ...
All remaining arguments passed to diff tool
Analysis options¶
These options apply to semantic analysis (no -T).
--json Write analysis results as JSON instead of a text report
--all Also report expected differences
--strict Treat notable differences as errors
--ignore <category>
Ignore differences in the given category. May be repeated.
Categories: package-name, package-version, build-string, build-number, noarch-vs-platform, license, about-field, timestamp, dep-missing, dep-extra, dep-run-export, dep-version, dep-unrenamed, python-pin, file-missing, file-extra, file-content, binary-content, pycache, entry-point, dist-info-metadata, dist-info-other, info-extra-file
--run-export <name>
Additional dependency name to treat as a benign run-export
when only present in the second package. May be repeated.