mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
This reverts commit 3eb3f4ed5580010a7961d996ccc6ee19c7ccbb5e. Also reverts https://github.com/pytorch/pytorch/pull/144164 Manual revert because the above causes merge conflicts Reverting in favor of https://github.com/pytorch/test-infra/pull/6159 Pull Request resolved: https://github.com/pytorch/pytorch/pull/144706 Approved by: https://github.com/janeyx99, https://github.com/atalman, https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
d782e46a36
commit
0dca756832
@ -68,29 +68,17 @@ s3_upload() {
|
||||
local pkg_type
|
||||
extension="$1"
|
||||
pkg_type="$2"
|
||||
s3_key_prefix="${pkg_type}/${UPLOAD_CHANNEL}"
|
||||
s3_root_dir="${UPLOAD_BUCKET}/${pkg_type}/${UPLOAD_CHANNEL}"
|
||||
if [[ -z ${UPLOAD_SUBFOLDER:-} ]]; then
|
||||
s3_upload_dir="${UPLOAD_BUCKET}/${s3_key_prefix}/"
|
||||
s3_upload_dir="${s3_root_dir}/"
|
||||
else
|
||||
s3_key_prefix="${s3_key_prefix}/${UPLOAD_SUBFOLDER}"
|
||||
s3_upload_dir="${UPLOAD_BUCKET}/${s3_key_prefix}/"
|
||||
s3_upload_dir="${s3_root_dir}/${UPLOAD_SUBFOLDER}/"
|
||||
fi
|
||||
(
|
||||
for pkg in ${PKG_DIR}/*.${extension}; do
|
||||
(
|
||||
set -x
|
||||
${AWS_S3_CP} --no-progress --acl public-read "${pkg}" "${s3_upload_dir}"
|
||||
if [[ ${pkg_type} == "whl" ]]; then
|
||||
dry_run_arg="--dry-run"
|
||||
if [[ "${DRY_RUN}" = "disabled" ]]; then
|
||||
dry_run_arg=""
|
||||
fi
|
||||
uv run scripts/release/upload_metadata_file.py \
|
||||
--package "${pkg}" \
|
||||
--bucket "${UPLOAD_BUCKET}" \
|
||||
--key-prefix "${s3_key_prefix}" \
|
||||
${dry_run_arg}
|
||||
fi
|
||||
)
|
||||
done
|
||||
)
|
||||
@ -98,7 +86,7 @@ s3_upload() {
|
||||
|
||||
# Install dependencies (should be a no-op if previously installed)
|
||||
conda install -yq anaconda-client
|
||||
pip install -q awscli uv
|
||||
pip install -q awscli
|
||||
|
||||
case "${PACKAGE_TYPE}" in
|
||||
conda)
|
||||
|
Reference in New Issue
Block a user