Unverified Commit dafd6d35 authored by Eli Uriegas's avatar Eli Uriegas Committed by GitHub
Browse files

Cherry picking changes for release improvements (#2352)



* .circleci: Add workflows to run on tag
Signed-off-by: default avatarEli Uriegas <eliuriegas@fb.com>

* packaging: Add backslash to escape
Signed-off-by: default avatarEli Uriegas <eliuriegas@fb.com>
parent efe90f84
This diff is collapsed.
...@@ -86,7 +86,16 @@ def generate_base_workflow(base_workflow_name, python_version, cu_version, ...@@ -86,7 +86,16 @@ def generate_base_workflow(base_workflow_name, python_version, cu_version,
d["wheel_docker_image"] = get_manylinux_image(cu_version) d["wheel_docker_image"] = get_manylinux_image(cu_version)
if filter_branch is not None: if filter_branch is not None:
d["filters"] = {"branches": {"only": filter_branch}} d["filters"] = {
"branches": {
"only": filter_branch
},
"tags": {
# Using a raw string here to avoid having to escape
# anything
"only": r"/v[0-9]+(\.[0-9]+)*-rc[0-9]+/"
}
}
w = f"binary_{os_type}_{btype}_release" if os_type == "win" else f"binary_{os_type}_{btype}" w = f"binary_{os_type}_{btype}_release" if os_type == "win" else f"binary_{os_type}_{btype}"
return {w: d} return {w: d}
......
...@@ -214,7 +214,7 @@ setup_pip_pytorch_version() { ...@@ -214,7 +214,7 @@ setup_pip_pytorch_version() {
else else
pip_install "torch==$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX" \ pip_install "torch==$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX" \
-f https://download.pytorch.org/whl/torch_stable.html \ -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/test/torch_test.html \
-f https://download.pytorch.org/whl/nightly/torch_nightly.html -f https://download.pytorch.org/whl/nightly/torch_nightly.html
fi fi
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment