Skip to content

Switch to ~/.cache for storing repo artifacts#102

Merged
Innixma merged 1 commit intomainfrom
use_cache_dir
Mar 10, 2025
Merged

Switch to ~/.cache for storing repo artifacts#102
Innixma merged 1 commit intomainfrom
use_cache_dir

Conversation

@Innixma
Copy link
Collaborator

@Innixma Innixma commented Mar 5, 2025

Issue #, if available:

Description of changes:

  • Switch to ~/.cache for storing repo artifacts
  • Previously, the repo artifacts were saved to tabrepo/data/results/
  • Now they are saved to ~/.cache/tabrepo/data/results/

This helps to de-couple the artifacts with the codebase, and adopts a similar logic as used by huggingface and openml.
This also improves usability for TabRepo if installed in non-editable mode (and opens the door for pip install tabrepo in future)

I've verified correctness with both s3 and huggingface download options.

NOTE: For users with existing caches, this will redownload caches in the new location. You will have to manually delete the old cache location to avoid having an extra unused data source.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Innixma Innixma added this to the TabRepo 2.0 milestone Mar 5, 2025
@Innixma Innixma requested a review from geoalgo March 5, 2025 22:23
@Innixma Innixma merged commit d2d3682 into main Mar 10, 2025
1 check passed
@Innixma Innixma deleted the use_cache_dir branch April 16, 2025 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant