From 8c6c269d2e203c3a2a0f3870942f20fb4b2fa66b Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Mar 2023 09:36:14 -0800 Subject: [PATCH 1/2] Release 2.0 release scripts changes --- release/promote.sh | 39 +++++++++++++++++++++++++++++++++---- release/release_versions.sh | 9 +++++---- 2 files changed, 40 insertions(+), 8 deletions(-) diff --git a/release/promote.sh b/release/promote.sh index 0550218c7..9745394f0 100644 --- a/release/promote.sh +++ b/release/promote.sh @@ -6,10 +6,11 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source "${DIR}/release_versions.sh" # Make sure to update these versions when doing a release first -PYTORCH_VERSION=${PYTORCH_VERSION:-1.13.1} -TORCHVISION_VERSION=${TORCHVISION_VERSION:-0.14.1} -TORCHAUDIO_VERSION=${TORCHAUDIO_VERSION:-0.13.1} -TORCHTEXT_VERSION=${TORCHTEXT_VERSION:-0.14.1} +PYTORCH_VERSION=${PYTORCH_VERSION:-2.0.0} +TORCHVISION_VERSION=${TORCHVISION_VERSION:-0.15.0} +TORCHAUDIO_VERSION=${TORCHAUDIO_VERSION:-2.0.0} +TORCHTEXT_VERSION=${TORCHTEXT_VERSION:-0.15.0} +TORCHDATA_VERSION=${TORCHDATA_VERSION:-0.6.0} DRY_RUN=${DRY_RUN:-enabled} @@ -70,16 +71,46 @@ promote_pypi() { echo } +# Promote dependencies +promote_s3 "certifi" whl "2022.12.7" +promote_s3 "charset_normalizer" whl "2.1.1" +promote_s3 "cmake" whl "3.25" +promote_s3 "colorama" whl "0.4.6" +promote_s3 "triton" whl "2.0.0" +promote_s3 "pytorch_triton_rocm" whl "2.0.0" +promote_s3 "tqdm" whl "4.64.1" +promote_s3 "Pillow" whl "9.3.0" +# for python 3.8-3.11 +promote_s3 "numpy" whl "1.24.1" +# for python 3.7 - should we remove this dependency ? +promote_s3 "numpy" whl "1.21.6" +promote_s3 "urllib3" whl "1.26.13" +promote_s3 "lit" whl "15.0.7" +# why sympy has 2 depencencies ? todo: comment here +promote_s3 "sympy" whl "1.11.1" +promote_s3 "sympy" whl "1.10.1" +promote_s3 "typing_extensions" whl "4.4.0" +promote_s3 "filelock" whl "3.9.0" +promote_s3 "mpmath" whl "1.2.1" +promote_s3 "idna" whl "3.4" +# why networkx 2 depencencies ? todo: comment here +promote_s3 "networkx" whl "3.0rc1" +promote_s3 "networkx" whl "2.6.3" +promote_s3 "packaging" whl "22.0" +promote_s3 "requests" whl "2.28.1" + # promote_s3 torch whl "${PYTORCH_VERSION}" # promote_s3 torchvision whl "${TORCHVISION_VERSION}" # promote_s3 torchaudio whl "${TORCHAUDIO_VERSION}" # promote_s3 torchtext whl "${TORCHTEXT_VERSION}" +# promote_s3 torchdata whl "${TORCHDATA_VERSION}" # promote_s3 "libtorch-*" libtorch "${PYTORCH_VERSION}" # promote_conda pytorch conda "${PYTORCH_VERSION}" # promote_conda torchvision conda "${TORCHVISION_VERSION}" # promote_conda torchaudio conda "${TORCHAUDIO_VERSION}" # promote_conda torchtext conda "${TORCHTEXT_VERSION}" +# promote_conda torchdata conda "${TORCHDATA_VERSION}" # Uncomment these to promote to pypi LINUX_VERSION_SUFFIX="%2Bcu102" diff --git a/release/release_versions.sh b/release/release_versions.sh index 61660d0bf..f0db2a089 100644 --- a/release/release_versions.sh +++ b/release/release_versions.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash # Make sure to update these versions when doing a release first -PYTORCH_VERSION=${PYTORCH_VERSION:-1.13.1} -TORCHVISION_VERSION=${TORCHVISION_VERSION:-0.14.1} -TORCHAUDIO_VERSION=${TORCHAUDIO_VERSION:-0.13.1} -TORCHTEXT_VERSION=${TORCHTEXT_VERSION:-0.14.1} +PYTORCH_VERSION=${PYTORCH_VERSION:-2.0.0} +TORCHVISION_VERSION=${TORCHVISION_VERSION:-0.15.0} +TORCHAUDIO_VERSION=${TORCHAUDIO_VERSION:-2.0.0} +TORCHTEXT_VERSION=${TORCHTEXT_VERSION:-0.15.0} +TORCHDATA_VERSION=${TORCHDATA_VERSION:-0.6.0} From 88f432ae805ae4fafaa9d781aabe550e9556d524 Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 9 Mar 2023 11:15:57 -0800 Subject: [PATCH 2/2] Release script modifications --- release/promote.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/release/promote.sh b/release/promote.sh index 9745394f0..74d8df3a7 100644 --- a/release/promote.sh +++ b/release/promote.sh @@ -82,20 +82,16 @@ promote_s3 "tqdm" whl "4.64.1" promote_s3 "Pillow" whl "9.3.0" # for python 3.8-3.11 promote_s3 "numpy" whl "1.24.1" -# for python 3.7 - should we remove this dependency ? +# for python 3.7 older pytorch versions promote_s3 "numpy" whl "1.21.6" promote_s3 "urllib3" whl "1.26.13" promote_s3 "lit" whl "15.0.7" -# why sympy has 2 depencencies ? todo: comment here promote_s3 "sympy" whl "1.11.1" -promote_s3 "sympy" whl "1.10.1" promote_s3 "typing_extensions" whl "4.4.0" promote_s3 "filelock" whl "3.9.0" promote_s3 "mpmath" whl "1.2.1" promote_s3 "idna" whl "3.4" -# why networkx 2 depencencies ? todo: comment here -promote_s3 "networkx" whl "3.0rc1" -promote_s3 "networkx" whl "2.6.3" +promote_s3 "networkx" whl "3.0.0" promote_s3 "packaging" whl "22.0" promote_s3 "requests" whl "2.28.1"