You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2022/08/06 12:40:09 UTC

[arrow] branch master updated: ARROW-17315: [Release][Docs] Update versions.json by post version bump (#13805)

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 48f778dbdb ARROW-17315: [Release][Docs] Update versions.json by post version bump (#13805)
48f778dbdb is described below

commit 48f778dbdb849a714136860f21c5370722b4777e
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Sat Aug 6 21:39:58 2022 +0900

    ARROW-17315: [Release][Docs] Update versions.json by post version bump (#13805)
    
    Authored-by: Sutou Kouhei <ko...@clear-code.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 dev/release/post-11-bump-versions-test.rb | 30 ++++++++++++++++++++++++++++++
 dev/release/utils-prepare.sh              | 20 ++++++++------------
 docs/source/_static/versions.json         |  8 ++++++--
 r/pkgdown/assets/versions.json            |  8 ++++++--
 4 files changed, 50 insertions(+), 16 deletions(-)

diff --git a/dev/release/post-11-bump-versions-test.rb b/dev/release/post-11-bump-versions-test.rb
index 0745f692b9..6770ca1c22 100644
--- a/dev/release/post-11-bump-versions-test.rb
+++ b/dev/release/post-11-bump-versions-test.rb
@@ -115,6 +115,21 @@ class PostBumpVersionsTest < Test::Unit::TestCase
            "+  url \"https://www.apache.org/dyn/closer.lua?path=arrow/arrow-#{@release_version}.9000/apache-arrow-#{@release_version}.9000.tar.gz\""],
         ],
       },
+      {
+        path: "docs/source/_static/versions.json",
+        hunks: [
+          [
+            "-        \"name\": \"10.0 (dev)\",",
+            "+        \"name\": \"11.0 (dev)\",",
+            "-        \"name\": \"9.0 (stable)\",",
+            "+        \"name\": \"10.0 (stable)\",",
+            "+    {",
+            "+        \"name\": \"9.0\",",
+            "+        \"version\": \"9.0/\"",
+            "+    },",
+          ],
+        ],
+      },
       {
         path: "js/package.json",
         hunks: [
@@ -152,6 +167,21 @@ class PostBumpVersionsTest < Test::Unit::TestCase
            "+# arrow #{@release_version}",],
         ],
       },
+      {
+        path: "r/pkgdown/assets/versions.json",
+        hunks: [
+          [
+            "-        \"name\": \"9.0.0.9000 (dev)\",",
+            "+        \"name\": \"10.0.0.9000 (dev)\",",
+            "-        \"name\": \"9.0.0 (release)\",",
+            "+        \"name\": \"10.0.0 (release)\",",
+            "+    {",
+            "+        \"name\": \"9.0.0\",",
+            "+        \"version\": \"9.0/\"",
+            "+    },",
+          ],
+        ],
+      },
     ]
 
     Dir.glob("go/**/{go.mod,*.go,*.go.*}") do |path|
diff --git a/dev/release/utils-prepare.sh b/dev/release/utils-prepare.sh
index 609325da01..c68632b9d0 100644
--- a/dev/release/utils-prepare.sh
+++ b/dev/release/utils-prepare.sh
@@ -160,16 +160,12 @@ update_versions() {
   git add .
   popd
 
-  case ${type} in
-    release)
-      pushd "${ARROW_DIR}"
-      ${PYTHON:-python3} "dev/release/utils-update-docs-versions.py" \
-                         . \
-                         "${version}" \
-                         "${next_version}"
-      git add docs/source/_static/versions.json
-      git add r/pkgdown/assets/versions.json
-      popd
-      ;;
-  esac
+  pushd "${ARROW_DIR}"
+  ${PYTHON:-python3} "dev/release/utils-update-docs-versions.py" \
+                     . \
+                     "${base_version}" \
+                     "${next_version}"
+  git add docs/source/_static/versions.json
+  git add r/pkgdown/assets/versions.json
+  popd
 }
diff --git a/docs/source/_static/versions.json b/docs/source/_static/versions.json
index 1738afbf23..013df079ec 100644
--- a/docs/source/_static/versions.json
+++ b/docs/source/_static/versions.json
@@ -1,12 +1,16 @@
 [
     {
-        "name": "9.0 (dev)",
+        "name": "10.0 (dev)",
         "version": "dev/"
     },
     {
-        "name": "8.0 (stable)",
+        "name": "9.0 (stable)",
         "version": ""
     },
+    {
+        "name": "8.0",
+        "version": "8.0/"
+    },
     {
         "name": "7.0",
         "version": "7.0/"
diff --git a/r/pkgdown/assets/versions.json b/r/pkgdown/assets/versions.json
index 1e54cbd21a..f1ddd85f05 100644
--- a/r/pkgdown/assets/versions.json
+++ b/r/pkgdown/assets/versions.json
@@ -1,12 +1,16 @@
 [
     {
-        "name": "8.0.0.9000 (dev)",
+        "name": "9.0.0.9000 (dev)",
         "version": "dev/"
     },
     {
-        "name": "8.0.0 (release)",
+        "name": "9.0.0 (release)",
         "version": ""
     },
+    {
+        "name": "8.0.0",
+        "version": "8.0/"
+    },
     {
         "name": "7.0.0",
         "version": "7.0/"