Skip to content

Commit

Permalink
Merge pull request #79 from seemethere/bump_0_1_3
Browse files Browse the repository at this point in the history
  • Loading branch information
seemethere authored Oct 30, 2020
2 parents dc42a5c + 26e4035 commit a90d461
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
11 changes: 3 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,19 @@ commands:
- run:
name: adding UPLOAD_CHANNEL to BASH_ENV
command: |
our_upload_channel=nightly
# On tags upload to test instead
if [[ -n "${CIRCLE_TAG}" ]]; then
our_upload_channel=test
fi
echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
echo "export UPLOAD_CHANNEL=test" >> ${BASH_ENV}
binary_common: &binary_common
parameters:
# Edit these defaults to do a release`
build_version:
description: "version number of release binary; by default, build a nightly"
type: string
default: "0.1.0"
default: "0.1.3"
pytorch_version:
description: "PyTorch version to build against; by default, use a nightly"
type: string
default: "1.6.0"
default: "1.7.0"
# Don't edit these
python_version:
description: "Python version to build against (e.g., 3.7)"
Expand Down
9 changes: 5 additions & 4 deletions packaging/pkg_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ setup_pip_pytorch_version() {
export PYTORCH_VERSION="$(pip show torch | grep ^Version: | sed 's/Version: *//')"
fi
else
UPLOAD_CHANNEL=${UPLOAD_CHANNEL:-nightly}
pip_install "torch==$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX" \
-f https://download.pytorch.org/whl/torch_stable.html \
-f https://download.pytorch.org/whl/test/torch_test.html \
-f https://download.pytorch.org/whl/nightly/torch_nightly.html
-f "https://download.pytorch.org/whl/${CU_VERSION}/torch_stable.html" \
-f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/${CU_VERSION}/torch_${UPLOAD_CHANNEL}.html"
fi
}

Expand All @@ -244,7 +244,8 @@ setup_conda_pytorch_constraint() {
exit 1
fi
else
export CONDA_CHANNEL_FLAGS="-c pytorch -c pytorch-nightly -c pytorch-test"
UPLOAD_CHANNEL=${UPLOAD_CHANNEL:-nightly}
export CONDA_CHANNEL_FLAGS="-c pytorch -c pytorch-${UPLOAD_CHANNEL}"
fi
if [[ "$CU_VERSION" == cpu ]]; then
export CONDA_PYTORCH_BUILD_CONSTRAINT="- pytorch==$PYTORCH_VERSION${PYTORCH_VERSION_SUFFIX}"
Expand Down

0 comments on commit a90d461

Please sign in to comment.