Skip to content

Commit a90d461

Browse files
authored
Merge pull request #79 from seemethere/bump_0_1_3
2 parents dc42a5c + 26e4035 commit a90d461

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.circleci/config.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,19 @@ commands:
3535
- run:
3636
name: adding UPLOAD_CHANNEL to BASH_ENV
3737
command: |
38-
our_upload_channel=nightly
39-
# On tags upload to test instead
40-
if [[ -n "${CIRCLE_TAG}" ]]; then
41-
our_upload_channel=test
42-
fi
43-
echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
38+
echo "export UPLOAD_CHANNEL=test" >> ${BASH_ENV}
4439
4540
binary_common: &binary_common
4641
parameters:
4742
# Edit these defaults to do a release`
4843
build_version:
4944
description: "version number of release binary; by default, build a nightly"
5045
type: string
51-
default: "0.1.0"
46+
default: "0.1.3"
5247
pytorch_version:
5348
description: "PyTorch version to build against; by default, use a nightly"
5449
type: string
55-
default: "1.6.0"
50+
default: "1.7.0"
5651
# Don't edit these
5752
python_version:
5853
description: "Python version to build against (e.g., 3.7)"

packaging/pkg_helpers.bash

+5-4
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ setup_pip_pytorch_version() {
216216
export PYTORCH_VERSION="$(pip show torch | grep ^Version: | sed 's/Version: *//')"
217217
fi
218218
else
219+
UPLOAD_CHANNEL=${UPLOAD_CHANNEL:-nightly}
219220
pip_install "torch==$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX" \
220-
-f https://download.pytorch.org/whl/torch_stable.html \
221-
-f https://download.pytorch.org/whl/test/torch_test.html \
222-
-f https://download.pytorch.org/whl/nightly/torch_nightly.html
221+
-f "https://download.pytorch.org/whl/${CU_VERSION}/torch_stable.html" \
222+
-f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/${CU_VERSION}/torch_${UPLOAD_CHANNEL}.html"
223223
fi
224224
}
225225

@@ -244,7 +244,8 @@ setup_conda_pytorch_constraint() {
244244
exit 1
245245
fi
246246
else
247-
export CONDA_CHANNEL_FLAGS="-c pytorch -c pytorch-nightly -c pytorch-test"
247+
UPLOAD_CHANNEL=${UPLOAD_CHANNEL:-nightly}
248+
export CONDA_CHANNEL_FLAGS="-c pytorch -c pytorch-${UPLOAD_CHANNEL}"
248249
fi
249250
if [[ "$CU_VERSION" == cpu ]]; then
250251
export CONDA_PYTORCH_BUILD_CONSTRAINT="- pytorch==$PYTORCH_VERSION${PYTORCH_VERSION_SUFFIX}"

0 commit comments

Comments
 (0)