MAINT: Rebuild example data.

This commit is contained in:
Scott Sanderson
2016-09-20 17:12:09 -04:00
parent d9282ef7e0
commit ccd94e6e64
61 changed files with 9 additions and 28 deletions
+6 -4
View File
@@ -164,13 +164,15 @@ def main(ctx, rebuild_input):
)
# move the new results to the expected path
# note that new_perf_path will be cleaned up dataframe_cache on
# exit.
shutil.rmtree(expected_perf_path)
shutil.copytree(new_perf_path, expected_perf_path)
with tarfile.open(example_path, 'w|gz') as tar:
tar.add(d.getpath('example_data'), 'example_data')
# Clear out all the temporary new perf so it doesn't get added to the
# tarball.
shutil.rmtree(d.getpath('example_data/new_perf/'))
with tarfile.open(example_path, 'w|gz') as tar:
tar.add(d.getpath('example_data'), 'example_data')
if __name__ == '__main__':