2019.3.22 • Published 5 years ago

repo-cache v2019.3.22

Weekly downloads
1
License
Unlicense
Repository
-
Last release
5 years ago

npm.io

store cache files outside of repo

Installation

$ [sudo] pip install repo-cache

Benefits

  • separate generated and manual created files
  • easier to search
  • less backup files

How it works

$REPO_CACHE_HOME/<repo-sha1>/<key>

Config

$REPO_CACHE_HOME - default is $XDG_CACHE_HOME/repo-cache, i.g.: ~/.cache/repo-cache

CLI

usage: repo-cache

Examples

$ path="$(repo-cache)"/requirements.txt
~/.cache/repo-cache/<repo-sha1>/requirements.txt
$ pipreqs --ignore tests --print . > "$path"
$ ln -fs "$path" requirements.txt
$ ln -fs "$(repo-cache)" .cache # symlink cache folder for debug
$ echo ".cache" >> ~/.gitignore

Related projects