Skip to content

Commit b7e1cda

Browse files
authored
Set release version and base PyTorch version (#1284)
1 parent d560639 commit b7e1cda

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

.circleci/config.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,8 @@ commands:
3232
- run:
3333
name: adding UPLOAD_CHANNEL to BASH_ENV
3434
command: |
35-
our_upload_channel=nightly
36-
# On tags upload to test instead
37-
if [[ -n "${CIRCLE_TAG}" ]] || [[ ${CIRCLE_BRANCH} =~ release/* ]]; then
38-
our_upload_channel=test
39-
fi
40-
echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
35+
# Hardcoded for release branch
36+
echo "export UPLOAD_CHANNEL=test" >> ${BASH_ENV}
4137
install_build_tools_macos:
4238
description: "installs tools required to build torchaudio"
4339
steps:
@@ -62,11 +58,11 @@ binary_common: &binary_common
6258
build_version:
6359
description: "version number of release binary; by default, build a nightly"
6460
type: string
65-
default: ""
61+
default: "0.8.0"
6662
pytorch_version:
6763
description: "PyTorch version to build against; by default, use a nightly"
6864
type: string
69-
default: ""
65+
default: "1.8.0"
7066
# Don't edit these
7167
python_version:
7268
description: "Python version to build against (e.g., 3.8)"
@@ -133,6 +129,7 @@ jobs:
133129
- checkout
134130
- attach_workspace:
135131
at: third_party
132+
- designate_upload_channel
136133
- run: packaging/build_wheel.sh
137134
- store_artifacts:
138135
path: dist
@@ -151,6 +148,7 @@ jobs:
151148
- load_conda_channel_flags
152149
- attach_workspace:
153150
at: third_party
151+
- designate_upload_channel
154152
- run: packaging/build_conda.sh
155153
- store_artifacts:
156154
path: /opt/conda/conda-bld/linux-64
@@ -169,6 +167,7 @@ jobs:
169167
- load_conda_channel_flags
170168
- attach_workspace:
171169
at: third_party
170+
- designate_upload_channel
172171
- run:
173172
# Cannot easily deduplicate this as source'ing activate
174173
# will set environment variables which we need to propagate
@@ -195,6 +194,7 @@ jobs:
195194
- load_conda_channel_flags
196195
- attach_workspace:
197196
at: third_party
197+
- designate_upload_channel
198198
- run:
199199
command: |
200200
curl -o conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
@@ -216,6 +216,7 @@ jobs:
216216
steps:
217217
- checkout
218218
- load_conda_channel_flags
219+
- designate_upload_channel
219220
- run:
220221
name: build
221222
command: |
@@ -236,6 +237,7 @@ jobs:
236237
steps:
237238
- checkout
238239
- load_conda_channel_flags
240+
- designate_upload_channel
239241
- run:
240242
name: build
241243
command: |
@@ -564,6 +566,7 @@ jobs:
564566
at: ~/workspace
565567
- checkout
566568
- load_conda_channel_flags
569+
- designate_upload_channel
567570
- run:
568571
name: Install pytorch-audio
569572
command: .circleci/build_docs/install_wheels.sh

.circleci/config.yml.in

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,8 @@ commands:
3232
- run:
3333
name: adding UPLOAD_CHANNEL to BASH_ENV
3434
command: |
35-
our_upload_channel=nightly
36-
# On tags upload to test instead
37-
if [[ -n "${CIRCLE_TAG}" ]] || [[ ${CIRCLE_BRANCH} =~ release/* ]]; then
38-
our_upload_channel=test
39-
fi
40-
echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
35+
# Hardcoded for release branch
36+
echo "export UPLOAD_CHANNEL=test" >> ${BASH_ENV}
4137
install_build_tools_macos:
4238
description: "installs tools required to build torchaudio"
4339
steps:
@@ -62,11 +58,11 @@ binary_common: &binary_common
6258
build_version:
6359
description: "version number of release binary; by default, build a nightly"
6460
type: string
65-
default: ""
61+
default: "0.8.0"
6662
pytorch_version:
6763
description: "PyTorch version to build against; by default, use a nightly"
6864
type: string
69-
default: ""
65+
default: "1.8.0"
7066
# Don't edit these
7167
python_version:
7268
description: "Python version to build against (e.g., 3.8)"
@@ -133,6 +129,7 @@ jobs:
133129
- checkout
134130
- attach_workspace:
135131
at: third_party
132+
- designate_upload_channel
136133
- run: packaging/build_wheel.sh
137134
- store_artifacts:
138135
path: dist
@@ -151,6 +148,7 @@ jobs:
151148
- load_conda_channel_flags
152149
- attach_workspace:
153150
at: third_party
151+
- designate_upload_channel
154152
- run: packaging/build_conda.sh
155153
- store_artifacts:
156154
path: /opt/conda/conda-bld/linux-64
@@ -169,6 +167,7 @@ jobs:
169167
- load_conda_channel_flags
170168
- attach_workspace:
171169
at: third_party
170+
- designate_upload_channel
172171
- run:
173172
# Cannot easily deduplicate this as source'ing activate
174173
# will set environment variables which we need to propagate
@@ -195,6 +194,7 @@ jobs:
195194
- load_conda_channel_flags
196195
- attach_workspace:
197196
at: third_party
197+
- designate_upload_channel
198198
- run:
199199
command: |
200200
curl -o conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
@@ -216,6 +216,7 @@ jobs:
216216
steps:
217217
- checkout
218218
- load_conda_channel_flags
219+
- designate_upload_channel
219220
- run:
220221
name: build
221222
command: |
@@ -236,6 +237,7 @@ jobs:
236237
steps:
237238
- checkout
238239
- load_conda_channel_flags
240+
- designate_upload_channel
239241
- run:
240242
name: build
241243
command: |
@@ -564,6 +566,7 @@ jobs:
564566
at: ~/workspace
565567
- checkout
566568
- load_conda_channel_flags
569+
- designate_upload_channel
567570
- run:
568571
name: Install pytorch-audio
569572
command: .circleci/build_docs/install_wheels.sh

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@
8484
#
8585
# The short X.Y version.
8686
# TODO: change to [:2] at v1.0
87-
version = 'master '
87+
version = '0.8.0'
8888
# The full version, including alpha/beta/rc tags.
8989
# TODO: verify this works as expected
90-
release = 'master'
90+
release = torchaudio.__version__
9191

9292
# The language for content autogenerated by Sphinx. Refer to documentation
9393
# for a list of supported languages.

0 commit comments

Comments
 (0)