Skip to content

Commit

Permalink
Make use of unified cache directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tjelvar-olsson committed Apr 25, 2019
1 parent b9851c7 commit 73a1f27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Added
Changed
^^^^^^^

- Cache environment variable changed from DTOOL_ECS_CACHE_DIRECTORY to DTOOL_CACHE_DIRECTORY
- Default cache directory changed from ``~/.cache/dtool/ecs`` to ``~/.cache/dtool``


Deprecated
^^^^^^^^^^
Expand Down
6 changes: 3 additions & 3 deletions dtool_ecs/storagebroker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""ECSStorageBroker"""

import os
import copy

try:
Expand All @@ -15,6 +14,7 @@
from dtoolcore.utils import (
get_config_value,
generous_parse_uri,
DEFAULT_CACHE_PATH,
)

from dtool_ecs import __version__
Expand Down Expand Up @@ -63,9 +63,9 @@ def __init__(self, uri, config_path=None):
self.http_manifest_key = self._generate_key("http_manifest_key")

self._s3_cache_abspath = get_config_value(
"DTOOL_ECS_CACHE_DIRECTORY",
"DTOOL_CACHE_DIRECTORY",
config_path=config_path,
default=os.path.expanduser("~/.cache/dtool/ecs")
default=DEFAULT_CACHE_PATH
)

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
download_url="{}/tarball/{}".format(url, version),
install_requires=[
"click",
"dtoolcore>=3.4",
"dtoolcore>=3.10",
"dtool_cli",
"boto3",
"dtool-s3",
Expand Down

0 comments on commit 73a1f27

Please sign in to comment.