Skip to content

Commit 290e910

Browse files
authored
[Release 2.0] Release only changes (#7284)
1 parent e606473 commit 290e910

File tree

3 files changed

+15
-23
lines changed

3 files changed

+15
-23
lines changed

.circleci/config.yml

Lines changed: 6 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ commands:
3939
- run:
4040
name: adding UPLOAD_CHANNEL to BASH_ENV
4141
command: |
42-
our_upload_channel=nightly
43-
# On tags upload to test instead
44-
if [[ -n "${CIRCLE_TAG}" ]]; then
45-
our_upload_channel=test
46-
fi
42+
our_upload_channel=test
4743
echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
4844

4945
brew_update:
@@ -146,7 +142,7 @@ commands:
146142
default: true
147143
steps:
148144
- pip_install:
149-
args: --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu
145+
args: --pre torch -f https://download.pytorch.org/whl/test/cpu/torch_test.html
150146
descr: Install PyTorch from nightly releases
151147
- pip_install:
152148
args: --no-build-isolation <<# parameters.editable >> --editable <</ parameters.editable >> .
@@ -194,11 +190,11 @@ binary_common: &binary_common
194190
build_version:
195191
description: "version number of release binary; by default, build a nightly"
196192
type: string
197-
default: ""
193+
default: "0.15.0"
198194
pytorch_version:
199195
description: "PyTorch version to build against; by default, use a nightly"
200196
type: string
201-
default: ""
197+
default: "2.0.0"
202198
# Don't edit these
203199
python_version:
204200
description: "Python version to build against (e.g., 3.8)"
@@ -645,7 +641,7 @@ jobs:
645641
set -x
646642
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
647643
- pip_install:
648-
args: $(ls ~/workspace/torchvision*.whl) --pre -f https://download.pytorch.org/whl/nightly/torch_nightly.html
644+
args: $(ls ~/workspace/torchvision*.whl) --pre -f https://download.pytorch.org/whl/test/torch_test.html
649645
- run:
650646
name: smoke test
651647
command: |
@@ -714,7 +710,7 @@ jobs:
714710
conda create -yn python${PYTHON_VERSION} python=${PYTHON_VERSION}
715711
conda activate python${PYTHON_VERSION}
716712
- pip_install:
717-
args: $(ls ~/workspace/torchvision*.whl) --pre -f https://download.pytorch.org/whl/nightly/torch_nightly.html
713+
args: $(ls ~/workspace/torchvision*.whl) --pre -f https://download.pytorch.org/whl/test/torch_test.html
718714
- run:
719715
name: smoke test
720716
command: |

packaging/pkg_helpers.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ setup_pip_pytorch_version() {
198198
if [[ -z "$PYTORCH_VERSION" ]]; then
199199
# Install latest prerelease version of torch, per our nightlies, consistent
200200
# with the requested cuda version
201-
pip_install --pre torch -f "https://download.pytorch.org/whl/nightly/${WHEEL_DIR}torch_nightly.html"
201+
pip_install --pre torch -f "https://download.pytorch.org/whl/test/${WHEEL_DIR}torch_test.html"
202202
if [[ "$CUDA_VERSION" == "cpu" ]]; then
203203
# CUDA and CPU are ABI compatible on the CPU-only parts, so strip
204204
# in this case
@@ -219,13 +219,13 @@ setup_pip_pytorch_version() {
219219
# You MUST have populated PYTORCH_VERSION_SUFFIX before hand.
220220
setup_conda_pytorch_constraint() {
221221
if [[ -z "$PYTORCH_VERSION" ]]; then
222-
export CONDA_CHANNEL_FLAGS="${CONDA_CHANNEL_FLAGS} -c pytorch-nightly -c pytorch"
222+
export CONDA_CHANNEL_FLAGS="${CONDA_CHANNEL_FLAGS} -c pytorch-test -c pytorch"
223223
PYTHON="python"
224224
# Check if we have python 3 instead and prefer that
225225
if python3 --version >/dev/null 2>/dev/null; then
226226
PYTHON="python3"
227227
fi
228-
export PYTORCH_VERSION="$(conda search --json 'pytorch[channel=pytorch-nightly]' | \
228+
export PYTORCH_VERSION="$(conda search --json 'pytorch[channel=pytorch-test]' | \
229229
${PYTHON} -c "import os, sys, json, re; cuver = os.environ.get('CU_VERSION'); \
230230
cuver_1 = cuver.replace('cu', 'cuda') if cuver != 'cpu' else cuver; \
231231
cuver_2 = (cuver[:-1] + '.' + cuver[-1]).replace('cu', 'cuda') if cuver != 'cpu' else cuver; \

0 commit comments

Comments
 (0)