diff --git a/conda-requirements.txt b/conda-requirements.txt index 0a45513c2..50941a148 100644 --- a/conda-requirements.txt +++ b/conda-requirements.txt @@ -3,6 +3,7 @@ black cachetools conda conda-build +conda-forge-metadata>=0.4.1 conda-forge-pinning conda-smithy>=3.7.6 # this pin is for bot automerge and maint. team bug fixes cryptography>=39 diff --git a/conda_forge_webservices/feedstock_outputs.py b/conda_forge_webservices/feedstock_outputs.py index ded862185..438a2afa1 100644 --- a/conda_forge_webservices/feedstock_outputs.py +++ b/conda_forge_webservices/feedstock_outputs.py @@ -15,6 +15,7 @@ from binstar_client.utils import get_server_api from binstar_client import BinstarError +from conda_forge_metadata.feedstock_outputs import sharded_path as _get_sharded_path import binstar_client.errors from .utils import parse_conda_pkg @@ -26,14 +27,6 @@ PROD = "conda-forge" -def _get_sharded_path(output): - chars = [c for c in output if c.isalnum()] - while len(chars) < 3: - chars.append("z") - - return os.path.join("outputs", chars[0], chars[1], chars[2], output + ".json") - - def is_valid_feedstock_token(user, project, feedstock_token, provider=None): gh_token = get_app_token_for_webservices_only() r = requests.get(