/spec-diff

A quick repo to display a spec diff

Primary LanguageHTML

spec-diff

Testing Python's difflib to look at html output for a spec, both with json and text.

Generation

spack spec --json python@2.7 > spec1.json
spack spec --json python@3.9 > spec2.json

spack spec python@2.7 > spec1.txt
spack spec python@3.9 > spec2.txt

Html Output

python diff.py -m spec1.txt spec2.txt > index.html 
python diff.py -m spec1.json spec2.json > json.html 

View

The json is nice!