forked from python-poetry/poetry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add poetry.locations.REPOSITORY_CACHE_DIR
The repository cache directory is used in multiple places in the codebase. This change ensures that the value is reused.
- Loading branch information
Showing
4 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
from .utils._compat import Path | ||
from .utils.appdirs import user_cache_dir | ||
from .utils.appdirs import user_config_dir | ||
|
||
|
||
CACHE_DIR = user_cache_dir("pypoetry") | ||
CONFIG_DIR = user_config_dir("pypoetry") | ||
|
||
REPOSITORY_CACHE_DIR = Path(CACHE_DIR) / "cache" / "repositories" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters