Skip to content

Exclude .venv from backups when it's not in a cache directory #4948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
probablykasper opened this issue Dec 28, 2021 · 5 comments
Closed
2 tasks done

Exclude .venv from backups when it's not in a cache directory #4948

probablykasper opened this issue Dec 28, 2021 · 5 comments
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged

Comments

@probablykasper
Copy link
Contributor

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

By default .venv folders are in ~/Library/Caches, but they can also be stored in project folders using the virtualenvs.in-project config option. When this happens, cache is being stored in a non-standard location, so it makes sense to let backup solutions know that it should be excluded from backups.

Rust's package manager already does this, and Node.js' package manager is planning to add it. My PR #4599 implements this for Poetry, but there are some mixed opinions so I'm opening this issue for it.

@probablykasper probablykasper added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Dec 28, 2021
@reitzig
Copy link

reitzig commented Jan 4, 2022

I agree with this, although I don't know if there's a truly effective, cross-plattform solution for this.

I'll note that cachedir stands as a proposal, and at the very least a marker-file approach is supported by all backup software I've encountered (and even plain tar).

@probablykasper
Copy link
Contributor Author

probablykasper commented Jan 4, 2022

cachedir / CACHEDIR.TAG seems to be the best you can get. Rust supports this as well

@finswimmer
Copy link
Member

Resolved by #4599

@reitzig
Copy link

reitzig commented Dec 28, 2022

@finswimmer How is this solved by that PR for any platform that's not MacOS?

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants