Update scrape-provider-prices tox target so we also generate sha256 and
sha512 sum files.
This allows users to download and cache values of those files and only
download pricing.json file if the sha sum files have changed.
@@ -124,10 +124,16 @@ basepython: python3.7
deps = requests
demjson
passenv = GCE_API_KEY
+whitelist_externals = sha512sum
+ bash
commands =
python contrib/scrape-gce-prices.py --all
python contrib/scrape-gce-prices.py
python contrib/scrape-ec2-prices.py
+ # We also store the SHa512 sum so users can check if something has changed
+ # by caching and checking the value of the shasum file
+ bash -c "(cd libcloud/data/ ; sha256sum pricing.json > {toxinidir}/libcloud/data/pricing.json.sha256)"
+ bash -c "(cd libcloud/data/ ; sha512sum pricing.json > {toxinidir}/libcloud/data/pricing.json.sha512)"
[testenv:scrape-ec2-prices]
basepython: python3.7
