Unverified Commit a2085b85 authored by moto's avatar moto Committed by GitHub
Browse files

Fbsync (#1038)

* Import torchaudio #1034 70f429a4

Summary: Import torchaudio #1027 0cf4b8a9

Reviewed By: vincentqb, cpuhrsch

Differential Revision: D24958707

fbshipit-source-id: d06dd6b59197cc2c16bec5a9012cbf33a172b6b3

* Import torchaudio #1066 4406a6bb

Summary: Import up to #1066

Reviewed By: cpuhrsch

Differential Revision: D25373068

fbshipit-source-id: 890d36a25259b93428b3037c3123ff5a2cacfa04
parent 69d716c9
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
# shellcheck disable=SC1091
source ./packaging/pkg_helpers.bash source ./packaging/pkg_helpers.bash
export NO_CUDA_PACKAGE=1 export NO_CUDA_PACKAGE=1
setup_env 0.8.0 setup_env 0.8.0
...@@ -10,4 +11,3 @@ pushd docs ...@@ -10,4 +11,3 @@ pushd docs
pip install -r requirements.txt pip install -r requirements.txt
make html make html
popd popd
...@@ -4,7 +4,7 @@ set -ex ...@@ -4,7 +4,7 @@ set -ex
if [ "$2" == "" ]; then if [ "$2" == "" ]; then
echo call as $0 "<src>" "<target branch>" echo call as "$0" "<src>" "<target branch>"
echo where src is the built documentation and echo where src is the built documentation and
echo branch should be "master" or "1.7" or so echo branch should be "master" or "1.7" or so
exit 1 exit 1
...@@ -13,24 +13,21 @@ fi ...@@ -13,24 +13,21 @@ fi
src=$1 src=$1
target=$2 target=$2
set -ex
echo "committing docs from ${src} to ${target}" echo "committing docs from ${src} to ${target}"
git checkout gh-pages git checkout gh-pages
mkdir -p ./$target mkdir -p ./"${target}"
rm -rf ./$target/* rm -rf ./"${target}"/*
cp -r ${src}/build/html/* ./$target cp -r "${src}/build/html/"* ./"$target"
if [ "$target" == "master" ]; then if [ "${target}" == "master" ]; then
mkdir -p ./_static mkdir -p ./_static
rm -rf ./_static/* rm -rf ./_static/*
cp -r ${src}/build/html/_static/* ./_static cp -r "${src}/build/html/_static/"* ./_static
git add --all ./_static || true git add --all ./_static || true
fi fi
git add --all ./$target || true git add --all ./"${target}" || true
git config user.email "soumith+bot@pytorch.org" git config user.email "soumith+bot@pytorch.org"
git config user.name "pytorchbot" git config user.name "pytorchbot"
# If there aren't changes, don't make a commit; push is no-op # If there aren't changes, don't make a commit; push is no-op
git commit -m "auto-generating sphinx docs" || true git commit -m "auto-generating sphinx docs" || true
git push -u origin gh-pages git push -u origin gh-pages
#!/usr/bin/env bash
set -ex set -ex
# shellcheck disable=SC1091
source ./packaging/pkg_helpers.bash source ./packaging/pkg_helpers.bash
export NO_CUDA_PACKAGE=1 export NO_CUDA_PACKAGE=1
setup_env 0.8.0 setup_env 0.8.0
...@@ -6,4 +10,3 @@ setup_wheel_python ...@@ -6,4 +10,3 @@ setup_wheel_python
setup_pip_pytorch_version setup_pip_pytorch_version
# pytorch is already installed # pytorch is already installed
pip install --no-deps ~/workspace/torchaudio* pip install --no-deps ~/workspace/torchaudio*
...@@ -74,23 +74,25 @@ def build_workflow_pair(btype, os_type, python_version, filter_branch, prefix='' ...@@ -74,23 +74,25 @@ def build_workflow_pair(btype, os_type, python_version, filter_branch, prefix=''
return w return w
def build_doc_job(filter_branch): def build_doc_job(filter_branch):
job = { job = {
"name": "build_docs", "name": "build_docs",
"python_version": "3.8", "python_version": "3.8",
"requires": ["binary_linux_wheel_py3.8",], "requires": ["binary_linux_wheel_py3.8", ],
} }
if filter_branch: if filter_branch:
job["filters"] = gen_filter_branch_tree(filter_branch) job["filters"] = gen_filter_branch_tree(filter_branch)
return [{"build_docs": job}] return [{"build_docs": job}]
def upload_doc_job(filter_branch): def upload_doc_job(filter_branch):
job = { job = {
"name": "upload_docs", "name": "upload_docs",
"context": "org-member", "context": "org-member",
"python_version": "3.8", "python_version": "3.8",
"requires": ["build_docs",], "requires": ["build_docs", ],
} }
if filter_branch: if filter_branch:
...@@ -184,7 +186,7 @@ def unittest_workflows(indentation=6): ...@@ -184,7 +186,7 @@ def unittest_workflows(indentation=6):
if i == 0 and os_type == "linux" and device_type == "cpu": if i == 0 and os_type == "linux" and device_type == "cpu":
jobs.append({ jobs.append({
f"stylecheck": { "stylecheck": {
"name": f"stylecheck_py{python_version}", "name": f"stylecheck_py{python_version}",
"python_version": python_version, "python_version": python_version,
} }
......
...@@ -178,15 +178,15 @@ class COMMONVOICE(Dataset): ...@@ -178,15 +178,15 @@ class COMMONVOICE(Dataset):
url = os.path.join(version, language + ext_archive) url = os.path.join(version, language + ext_archive)
else: else:
raise ValueError( raise ValueError(
'Allowed language values are ``"tatar"``, ``"english"``, ``"german"``,' 'Allowed language values are "tatar", "english", "german",'
'``"french"``, ``"welsh"``, ``"breton"``, ``"chuvash"``, ``"turkish"``, ``"kyrgyz"``,' '"french", "welsh", "breton", "chuvash", "turkish", "kyrgyz",'
'``"irish"``, ``"kabyle"``, ``"catalan"``, ``"taiwanese"``, ``"slovenian"``,' '"irish", "kabyle", "catalan", "taiwanese", "slovenian",'
'``"italian"``, ``"dutch"``, ``"hakha chin"``, ``"esperanto"``, ``"estonian"``,' '"italian", "dutch", "hakha chin", "esperanto", "estonian",'
'``"persian"``, ``"portuguese"``, ``"basque"``, ``"spanish"``, ``"chinese"``,' '"persian", "portuguese", "basque", "spanish", "chinese",'
'``"mongolian"``, ``"sakha"``, ``"dhivehi"``, ``"kinyarwanda"``, ``"swedish"``,' '"mongolian", "sakha", "dhivehi", "kinyarwanda", "swedish",'
'``"russian"``, ``"indonesian"``, ``"arabic"``, ``"tamil"``, ``"interlingua"``,' '"russian", "indonesian", "arabic", "tamil", "interlingua",'
'``"latvian"``, ``"japanese"``, ``"votic"``, ``"abkhaz"``, ``"cantonese"`` and' '"latvian", "japanese", "votic", "abkhaz", "cantonese" and'
'``"romansh sursilvan"``.' '"romansh sursilvan".'
) )
# Get string representation of 'root' in case Path object is passed # Get string representation of 'root' in case Path object is passed
......
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