Skip to content

Commit

Permalink
remove cache_path_* arguments (#12927)
Browse files Browse the repository at this point in the history
* remove cache_path_* arguments

* add news

* remove unused import
  • Loading branch information
dholth committed Jul 31, 2023
1 parent 659f1dd commit 1b3f8a2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
2 changes: 0 additions & 2 deletions conda/gateways/repodata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,6 @@ def _repo(self) -> RepoInterface:
return self.repo_interface_cls(
self.url_w_credentials,
repodata_fn=self.repodata_fn,
cache_path_json=self.cache_path_json,
cache_path_state=self.cache_path_state,
cache=self.repo_cache,
)

Expand Down
8 changes: 0 additions & 8 deletions conda/gateways/repodata/jlap/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import logging
import os
from pathlib import Path

from conda.base.context import context
from conda.gateways.connection.download import disable_ssl_verify_warning
Expand Down Expand Up @@ -34,18 +33,11 @@ def __init__(
url: str,
repodata_fn: str | None,
*,
cache_path_json: str | Path,
cache_path_state: str | Path,
cache: RepodataCache,
**kwargs,
) -> None:
log.debug("Using CondaRepoJLAP")

# TODO is there a better way to share these paths
self._cache_path_json = Path(cache_path_json)
self._cache_path_state = Path(cache_path_state)

# replaces self._cache_path_json/state
self._cache = cache

self._url = url
Expand Down
20 changes: 20 additions & 0 deletions news/12927-remove-unused-cache-path-arguments
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* Remove unused cache_path arguments from RepoInterface/JlapRepoInterface;
replaced by cache object. (#12927)

0 comments on commit 1b3f8a2

Please sign in to comment.