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

jiayu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git


The following commit(s) were added to refs/heads/main by this push:
     new 2590ac7  chore(dev/release): Add release instructions and run RAT tool 
(#104)
2590ac7 is described below

commit 2590ac77d8985bf1c17b02d5e8d767d8a490f7e0
Author: Dewey Dunnington <[email protected]>
AuthorDate: Wed Sep 17 19:36:42 2025 -0500

    chore(dev/release): Add release instructions and run RAT tool (#104)
    
    Co-authored-by: Copilot <[email protected]>
---
 .github/workflows/packaging.yml                    |  10 +-
 c/CMakeLists.txt                                   |  17 +++
 dev/release/README.md                              | 131 ++++++++++++++++++
 dev/release/check-rat-report.py                    |  58 ++++++++
 .../release/rat_exclude_files.txt                  |  11 +-
 dev/release/run-rat.sh                             |  42 ++++++
 dev/release/sign-assets.sh                         | 148 +++++++++++++++++++++
 dev/release/upload-candidate.sh                    |  83 ++++++++++++
 dev/release/upload-release.sh                      |  54 ++++++++
 docs/geopandas-interop.ipynb                       |  19 +++
 docs/geopandas-interop.md                          |  19 +++
 docs/overture-examples.ipynb                       |  19 +++
 docs/overture-examples.md                          |  19 +++
 docs/programming-guide.ipynb                       |  19 +++
 docs/programming-guide.md                          |  19 +++
 docs/quickstart-python.ipynb                       |  19 +++
 docs/quickstart-python.md                          |  19 +++
 docs/requirements.txt                              |  17 +++
 docs/stylesheets/extra.css                         |  19 +++
 r/sedonadb/src/Makevars.win.in                     |  17 +++
 r/sedonadb/src/rust/.cargo/config.toml             |  17 +++
 rust/sedona-common/src/error.rs                    |  17 +++
 rust/sedona-expr/src/utils.rs                      |  17 +++
 rust/sedona-geoparquet/src/metadata.rs             |   1 +
 rust/sedona-geoparquet/src/options.rs              |  17 +++
 rust/sedona-geoparquet/src/writer.rs               |  17 +++
 rust/sedona-schema/src/matchers.rs                 |  17 +++
 27 files changed, 856 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml
index 7101606..a1c88a4 100644
--- a/.github/workflows/packaging.yml
+++ b/.github/workflows/packaging.yml
@@ -53,10 +53,13 @@ jobs:
             # In the case of a tag, the version in Cargo.toml is already 
correct
             VERSION=${GITHUB_REF_NAME#apache-sedona-db-}
             VERSION=${VERSION%-rc*}
+          elif [[ "${GITHUB_REF##*/}" =~ ^branch-[0-9]+\.[0-9]+\.[0-9]+$ ]]; 
then
+            VERSION="${GITHUB_REF##*/branch-}"
           else
             # Set an alpha version and save it to env
             VERSION=$(python ci/scripts/set_dev_version.py)
           fi
+
           echo "VERSION=${VERSION}" >> $GITHUB_ENV
 
       - name: Create archive
@@ -66,6 +69,11 @@ jobs:
             apache-sedona-db-${VERSION} \
             $(git log -n 1 --format=%h)
 
+      - name: Run Release Audit Tool
+        shell: bash
+        run: |
+          dev/release/run-rat.sh apache-sedona-db-${{ env.VERSION }}.tar.gz
+
       - uses: actions/upload-artifact@v4
         with:
           name: source
@@ -171,7 +179,7 @@ jobs:
           gh release create "${RELEASE_TAG}" \
             --repo ${{ github.repository }} \
             --prerelease \
-            --title "sedona-db ${RELEASE_TAG}" \
+            --title "SedonaDB ${RELEASE_TAG}" \
             ${UPLOAD}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt
index abf146e..25546a3 100644
--- a/c/CMakeLists.txt
+++ b/c/CMakeLists.txt
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 cmake_minimum_required(VERSION 3.14)
 project(sedonadb_c)
 
diff --git a/dev/release/README.md b/dev/release/README.md
new file mode 100644
index 0000000..f6eda14
--- /dev/null
+++ b/dev/release/README.md
@@ -0,0 +1,131 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Releasing SedonaDB
+
+## Creating a release
+
+Create a release branch on the corresponding remote pointing to the official 
Apache
+repository (i.e., <https://github.com/apache/sedona-db>). This step must be 
done by
+a committer.
+
+```shell
+git pull upstream main
+git branch -b branch-0.1.0
+git push upstream -u branch-0.1.0:branch-0.1.0
+```
+
+This push should cause two CI runs to begin:
+
+- <https://github.com/apache/sedona-db/actions/workflows/packaging.yml>
+- <https://github.com/apache/sedona-db/actions/workflows/python-wheels.yml>
+
+The verification run will create the release source tarball and documentation,
+which from the Apache release's perspective are the only artifacts that are
+being verified. The Python wheels (and the tests that are run as they are 
created)
+are considered a "packaging" step (i.e., the artifacts aren't uploaded to the
+release or voted on), although those CI jobs are important to ensuring
+the release is ready for a vote.
+
+When the state of the `branch-x.x.x` branch is clean and checks are complete,
+the release candidate tag can be created:
+
+```shell
+git tag -a apache-sedona-db-0.1.0-rc0 -m "Tag Apache SedonaDB 0.1.0-rc0"
+git push upstream apache-sedona-db-0.1.0-rc0
+```
+
+This will trigger another packaging CI run that, if successful, will create a
+pre-release at <https://github.com/apache/sedona-db/releases> with the release
+artifacts uploaded from the CI run.
+
+After the release has been created with the appropriate artifacts, the assets
+need to be signed with signatures uploaded as release assets. The GPG_KEY_ID
+must have its public component listed in the
+[Apache Sedona KEYS file](https://dist.apache.org/repos/dist/dev/sedona/KEYS).
+
+```shell
+# sign-assets.sh <version> <rc_number>
+GPG_KEY_ID=your_gpg_key_id dev/release/sign-assets.sh 0.1.0 0
+```
+
+After the assets are signed, they can be committed and uploaded to the
+dev/sedona directory of the Apache distribution SVN. A helper script
+is provided:
+
+```shell
+# upload-candidate.sh <version> <rc_number>
+APACHE_USERNAME=your_apache_username dev/release/upload-candidate.sh 0.1.0 0
+```
+
+## Vote
+
+An email must now be sent to `[email protected]` calling on developers to 
follow
+the release verification instructions and vote appropriately on the source 
release.
+
+## Publish
+
+### Upload/tag source release
+
+After a successful release vote, the tarball needs to be uploaded to the 
official
+Apache release repository. A helper script is provided:
+
+```shell
+# upload-release.sh <version> <rc_number>
+APACHE_USERNAME=your_apache_username dev/release/upload-release.sh 0.1.0 0
+```
+
+An official GitHub tag must also be created:
+
+```shell
+git tag -a apache-sedona-db-0.1.0 -m "SedonaDB 0.1.0" 
apache-sedona-db-0.1.0-rc0
+git push upstream apache-sedona-db-0.1.0
+```
+
+The prerelease located at 
<https://github.com/apache/sedona-db/releases/tag/apache-sedona-db-0.1.0-rc0>
+can now be edited to point to the official release tag and the GitHub release 
published
+from the UI.
+
+### Publish Python package
+
+Locate the latest run identifier for the appropriate run of the python-wheels 
workflow
+that was run on the release branch:
+<https://github.com/apache/sedona-db/actions/workflows/python-wheels.yml>. The
+artifacts can be downloaded and extracted with `gh run download`.
+
+```shell
+# Clear the wheels directory
+rm -rf wheels
+mkdir wheels
+
+# Download assets from the latest `branch-x.x.x` branch run,
+# remove the pyodide wheels (which will be rejected by PyPI)
+pushd wheels
+gh run download 15963020465
+popd
+```
+
+Use `twine` to upload the release to PyPI. This will require a token created
+in the PyPI UI.
+
+```shell
+# pip install twine
+twine upload wheels/**/*.whl
+rm -rf wheels
+```
diff --git a/dev/release/check-rat-report.py b/dev/release/check-rat-report.py
new file mode 100644
index 0000000..88c900c
--- /dev/null
+++ b/dev/release/check-rat-report.py
@@ -0,0 +1,58 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import fnmatch
+import re
+import sys
+import xml.etree.ElementTree as ET
+
+if len(sys.argv) != 3:
+    sys.stderr.write("Usage: %s exclude_globs.lst rat_report.xml\n" % 
sys.argv[0])
+    sys.exit(1)
+
+exclude_globs_filename = sys.argv[1]
+xml_filename = sys.argv[2]
+
+globs = [line.strip() for line in open(exclude_globs_filename, "r")]
+
+tree = ET.parse(xml_filename)
+root = tree.getroot()
+resources = root.findall("resource")
+
+all_ok = True
+for r in resources:
+    approvals = r.findall("license-approval")
+    if not approvals or approvals[0].attrib["name"] == "true":
+        continue
+    clean_name = re.sub("^[^/]+/", "", r.attrib["name"])
+    excluded = False
+    for g in globs:
+        if fnmatch.fnmatch(clean_name, g):
+            excluded = True
+            break
+    if not excluded:
+        sys.stdout.write(
+            "NOT APPROVED: %s (%s): %s\n"
+            % (clean_name, r.attrib["name"], approvals[0].attrib["name"])
+        )
+        all_ok = False
+
+if not all_ok:
+    sys.exit(1)
+
+print("OK")
+sys.exit(0)
diff --git a/ci/scripts/rat/license_ignore.txt 
b/dev/release/rat_exclude_files.txt
similarity index 63%
rename from ci/scripts/rat/license_ignore.txt
rename to dev/release/rat_exclude_files.txt
index daf8efe..ab4302c 100644
--- a/ci/scripts/rat/license_ignore.txt
+++ b/dev/release/rat_exclude_files.txt
@@ -11,9 +11,10 @@ c/sedona-s2geography/s2geography/*
 c/sedona-s2geography/s2geometry/*
 c/sedona-tg/src/tg/*
 Cargo.lock
-ci/scripts/rat/license_*.txt
-DESCRIPTION
-LICENSE
-NAMESPACE
-sedonadb-win.def
+ci/scripts/windows/Cargo.lock
+dev/release/rat_exclude_files.txt
+r/sedonadb/.Rbuildignore
+r/sedonadb/DESCRIPTION
+r/sedonadb/NAMESPACE
+r/sedonadb/src/sedonadb-win.def
 submodules/geoarrow-data/*
diff --git a/dev/release/run-rat.sh b/dev/release/run-rat.sh
new file mode 100755
index 0000000..602eaf0
--- /dev/null
+++ b/dev/release/run-rat.sh
@@ -0,0 +1,42 @@
+#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+RAT_VERSION=0.13
+
+# download apache rat
+if [ ! -f apache-rat-${RAT_VERSION}.jar ]; then
+  curl -s 
https://repo1.maven.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar
 > apache-rat-${RAT_VERSION}.jar
+fi
+
+RAT="java -jar apache-rat-${RAT_VERSION}.jar -x "
+
+RELEASE_DIR=$(cd "$(dirname "$BASH_SOURCE")"; pwd)
+
+# generate the rat report
+$RAT $1 > rat.txt
+python $RELEASE_DIR/check-rat-report.py $RELEASE_DIR/rat_exclude_files.txt 
rat.txt > filtered_rat.txt
+cat filtered_rat.txt
+UNAPPROVED=`cat filtered_rat.txt  | grep "NOT APPROVED" | wc -l`
+
+if [ "0" -eq "${UNAPPROVED}" ]; then
+  echo "No unapproved licenses"
+else
+  echo "${UNAPPROVED} unapproved licences. Check rat report: rat.txt"
+  exit 1
+fi
diff --git a/dev/release/sign-assets.sh b/dev/release/sign-assets.sh
new file mode 100755
index 0000000..415f48e
--- /dev/null
+++ b/dev/release/sign-assets.sh
@@ -0,0 +1,148 @@
+#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+set -eu
+
+main() {
+    local -r source_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+    local -r source_top_dir="$( cd "${source_dir}/../../" && pwd )"
+    pushd "${source_top_dir}"
+
+    if [ "$#" -ne 2 ]; then
+        echo "Usage: $0 <version> <rc-num>"
+        exit 1
+    fi
+
+    local -r version="$1"
+    local -r rc_number="$2"
+    local -r tag="apache-sedona-db-${version}-rc${rc_number}"
+    local -r tarball="apache-sedona-db-${version}"
+
+    : ${REPOSITORY:="apache/sedona-db"}
+
+    if [[ ! -f "${source_dir}/.env" ]]; then
+        echo "You must create ${source_dir}/.env"
+        echo "You can use ${source_dir}/.env.example as a template"
+    fi
+
+    source "${source_dir}/.env"
+
+    header "Looking for GitHub Actions workflow on ${REPOSITORY}:${tag}"
+    local run_id=""
+    while [[ -z "${run_id}" ]]
+    do
+        echo "Waiting for run to start..."
+        run_id=$(gh run list \
+                    --repo "${REPOSITORY}" \
+                    --workflow=packaging.yaml \
+                    --json 'databaseId,event,headBranch,status' \
+                    --jq ".[] | select(.event == \"push\" and .headBranch == 
\"${tag}\") | .databaseId" | \
+                    head -n 1)
+        sleep 1
+    done
+
+    header "Found GitHub Actions workflow with ID: ${run_id}"
+    gh run watch --repo "${REPOSITORY}" --exit-status ${run_id}
+    gh run view --repo "${REPOSITORY}" "${run_id}"
+
+    header "Downloading assets from release"
+    local -r download_dir="packages/${tag}"
+    mkdir -p "${download_dir}"
+    gh release download \
+       "${tag}" \
+       --repo "${REPOSITORY}" \
+       --dir "${download_dir}" \
+       --skip-existing
+
+    header "Upload signatures for source"
+    upload_asset_signatures "${tag}" $(find "${download_dir}" -type f \( -name 
'apache-sedona-db-*.tar.gz' \))
+
+    header "Upload signatures for docs"
+    upload_asset_signatures "${tag}" "${download_dir}/docs.tgz"
+
+    popd
+}
+
+header() {
+    echo "============================================================"
+    echo "${1}"
+    echo "============================================================"
+}
+
+sign_asset() {
+    local -r asset="$1"
+    local -r sigfile="${asset}.asc"
+
+    if [[ -f "${sigfile}" ]]; then
+        if env LANG=C gpg --verify "${sigfile}" "${asset}" >/dev/null 2>&1; 
then
+            echo "Valid signature at $(basename "${sigfile}"), skipping"
+            return
+        fi
+        rm "${sigfile}"
+    fi
+
+    gpg \
+        --armor \
+        --detach-sign \
+        --local-user "${GPG_KEY_ID}" \
+        --output "${sigfile}" \
+        "${asset}"
+    echo "Generated $(basename "${sigfile}")"
+}
+
+sum_asset() {
+    local -r asset="$1"
+    local -r sumfile="${asset}.sha512"
+
+    local -r digest=$(cd $(dirname "${asset}"); shasum --algorithm 512 
$(basename "${asset}"))
+    if [[ -f "${sumfile}" ]]; then
+        if [[ "${digest}" = $(cat "${sumfile}") ]]; then
+            echo "Valid digest at $(basename "${sumfile}"), skipping"
+            return
+        fi
+    fi
+
+    echo "${digest}" > "${sumfile}"
+    echo "Generated $(basename "${sumfile}")"
+}
+
+upload_asset_signatures() {
+    local -r tag="${1}"
+    shift 1
+
+    local -r assets=("$@")
+
+    for asset in "${assets[@]}"; do
+        sign_asset "${asset}"
+        sum_asset "${asset}"
+    done
+
+    gh release upload \
+       --repo "${REPOSITORY}" \
+       "${tag}" \
+       "${assets[@]/%/.asc}" \
+       "${assets[@]/%/.sha512}"
+
+    # Clean up
+    for asset in "${assets[@]}"; do
+        rm -f "${asset}" "${asset}.asc" "${asset}.sha512"
+    done
+}
+
+main "$@"
diff --git a/dev/release/upload-candidate.sh b/dev/release/upload-candidate.sh
new file mode 100755
index 0000000..f72e45a
--- /dev/null
+++ b/dev/release/upload-candidate.sh
@@ -0,0 +1,83 @@
+#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+
+set -eu
+
+main() {
+    local -r source_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+    local -r source_top_dir="$( cd "${source_dir}/../../" && pwd )"
+
+    if [ "$#" -ne 2 ]; then
+        echo "Usage: $0 <version> <rc-num>"
+        exit 1
+    fi
+    local -r version="$1"
+    local -r rc_number="$2"
+    local -r tag="apache-sedona-db-${version}-rc${rc_number}"
+    local -r tarball="apache-sedona-db-${version}.tar.gz"
+
+    : ${REPOSITORY:="apache/sedona-db"}
+
+    if [[ ! -f "${source_dir}/.env" ]]; then
+        echo "You must create ${source_dir}/.env"
+        echo "You can use ${source_dir}/.env.example as a template"
+    fi
+
+    source "${source_dir}/.env"
+
+    header "Downloading assets from release"
+    local -r download_dir="packages/${tag}"
+    mkdir -p "${download_dir}"
+    gh release download \
+       "${tag}" \
+       --dir "${download_dir}" \
+       --pattern "${tarball}*" \
+       --repo "${REPOSITORY}" \
+       --skip-existing
+
+    echo "Uploading to dist.apache.org"
+
+    # check out the arrow RC folder
+    svn co --depth=empty https://dist.apache.org/repos/dist/dev/sedona tmp
+
+    # add the release candidate for the tag
+    mkdir -p "tmp/${tag}"
+
+    # copy the rc tarball into the tmp dir
+    cp ${download_dir}/${tarball}* "tmp/${tag}"
+
+    # commit to svn
+    svn add "tmp/${tag}"
+    svn ci --username=$APACHE_USERNAME -m "Apache SedonaDB ${version} 
RC${rc_number}" "tmp/${tag}"
+
+    # clean up
+    rm -rf tmp
+    rm -rf "${download_dir}"
+
+    echo "Uploaded at https://dist.apache.org/repos/dist/dev/sedona/${tag}";
+}
+
+header() {
+    echo "============================================================"
+    echo "${1}"
+    echo "============================================================"
+}
+
+main "$@"
diff --git a/dev/release/upload-release.sh b/dev/release/upload-release.sh
new file mode 100755
index 0000000..13e10be
--- /dev/null
+++ b/dev/release/upload-release.sh
@@ -0,0 +1,54 @@
+#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+set -eu
+
+main() {
+    local -r source_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+    if [ "$#" -ne 2 ]; then
+        echo "Usage: $0 <version> <rc-num>"
+        exit 1
+    fi
+    local -r version="$1"
+    local -r rc_number="$2"
+    local -r tag="apache-sedona-db-${version}-rc${rc_number}"
+
+    if [[ ! -f "${source_dir}/.env" ]]; then
+        echo "You must create ${source_dir}/.env"
+        echo "You can use ${source_dir}/.env.example as a template"
+    fi
+
+    source "${source_dir}/.env"
+
+    rc_id="apache-sedona-db-${version}-rc${rc_number}"
+    release_id="apache-sedona-db-${version}"
+    echo "Moving dev/ to release/"
+    svn \
+        mv \
+        --username=$APACHE_USERNAME \
+        -m "Apache SedonaDB ${version}" \
+        https://dist.apache.org/repos/dist/dev/sedona/${rc_id} \
+        https://dist.apache.org/repos/dist/release/sedona/${release_id}
+
+    echo "Success! The release is available here:"
+    echo "  https://dist.apache.org/repos/dist/release/sedona/${release_id}";
+}
+
+main "$@"
diff --git a/docs/geopandas-interop.ipynb b/docs/geopandas-interop.ipynb
index cef23d9..0559c35 100644
--- a/docs/geopandas-interop.ipynb
+++ b/docs/geopandas-interop.ipynb
@@ -5,6 +5,25 @@
    "id": "caa5f2d5-28bb-4ce9-8a11-92646b3a9f6c",
    "metadata": {},
    "source": [
+    "<!---\n",
+    "  Licensed to the Apache Software Foundation (ASF) under one\n",
+    "  or more contributor license agreements.  See the NOTICE file\n",
+    "  distributed with this work for additional information\n",
+    "  regarding copyright ownership.  The ASF licenses this file\n",
+    "  to you under the Apache License, Version 2.0 (the\n",
+    "  \"License\"); you may not use this file except in compliance\n",
+    "  with the License.  You may obtain a copy of the License at\n",
+    "\n",
+    "    http://www.apache.org/licenses/LICENSE-2.0\n";,
+    "\n",
+    "  Unless required by applicable law or agreed to in writing,\n",
+    "  software distributed under the License is distributed on an\n",
+    "  \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n",
+    "  KIND, either express or implied.  See the License for the\n",
+    "  specific language governing permissions and limitations\n",
+    "  under the License.\n",
+    "-->\n",
+    "\n",
     "# GeoPandas interoperability\n",
     "\n",
     "This example shows how to read a GeoJSON file with GeoPandas and then 
convert the GeoPandas DataFrame to a SedonaDB DataFrame.\n",
diff --git a/docs/geopandas-interop.md b/docs/geopandas-interop.md
index fd7bb58..0473f94 100644
--- a/docs/geopandas-interop.md
+++ b/docs/geopandas-interop.md
@@ -1,3 +1,22 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
 # GeoPandas interoperability
 
 This example shows how to read a GeoJSON file with GeoPandas and then convert 
the GeoPandas DataFrame to a SedonaDB DataFrame.
diff --git a/docs/overture-examples.ipynb b/docs/overture-examples.ipynb
index 6ac9014..115147d 100644
--- a/docs/overture-examples.ipynb
+++ b/docs/overture-examples.ipynb
@@ -5,6 +5,25 @@
    "id": "8239e8eb-724c-44df-b651-c2dd02f1d96c",
    "metadata": {},
    "source": [
+    "<!---\n",
+    "  Licensed to the Apache Software Foundation (ASF) under one\n",
+    "  or more contributor license agreements.  See the NOTICE file\n",
+    "  distributed with this work for additional information\n",
+    "  regarding copyright ownership.  The ASF licenses this file\n",
+    "  to you under the Apache License, Version 2.0 (the\n",
+    "  \"License\"); you may not use this file except in compliance\n",
+    "  with the License.  You may obtain a copy of the License at\n",
+    "\n",
+    "    http://www.apache.org/licenses/LICENSE-2.0\n";,
+    "\n",
+    "  Unless required by applicable law or agreed to in writing,\n",
+    "  software distributed under the License is distributed on an\n",
+    "  \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n",
+    "  KIND, either express or implied.  See the License for the\n",
+    "  specific language governing permissions and limitations\n",
+    "  under the License.\n",
+    "-->\n",
+    "\n",
     "# SedonaDB Overture Examples\n",
     "\n",
     "This notebook shows how to query the Overture data with SedonaDB!"
diff --git a/docs/overture-examples.md b/docs/overture-examples.md
index a06b618..1fef42d 100644
--- a/docs/overture-examples.md
+++ b/docs/overture-examples.md
@@ -1,3 +1,22 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
 # SedonaDB Overture Examples
 
 This notebook shows how to query the Overture data with SedonaDB!
diff --git a/docs/programming-guide.ipynb b/docs/programming-guide.ipynb
index 93c7208..0c3867d 100644
--- a/docs/programming-guide.ipynb
+++ b/docs/programming-guide.ipynb
@@ -5,6 +5,25 @@
    "id": "1932983e-1cd2-41d0-a5eb-0537b3ac3feb",
    "metadata": {},
    "source": [
+    "<!---\n",
+    "  Licensed to the Apache Software Foundation (ASF) under one\n",
+    "  or more contributor license agreements.  See the NOTICE file\n",
+    "  distributed with this work for additional information\n",
+    "  regarding copyright ownership.  The ASF licenses this file\n",
+    "  to you under the Apache License, Version 2.0 (the\n",
+    "  \"License\"); you may not use this file except in compliance\n",
+    "  with the License.  You may obtain a copy of the License at\n",
+    "\n",
+    "    http://www.apache.org/licenses/LICENSE-2.0\n";,
+    "\n",
+    "  Unless required by applicable law or agreed to in writing,\n",
+    "  software distributed under the License is distributed on an\n",
+    "  \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n",
+    "  KIND, either express or implied.  See the License for the\n",
+    "  specific language governing permissions and limitations\n",
+    "  under the License.\n",
+    "-->\n",
+    "\n",
     "# SedonaDB Guide\n",
     "\n",
     "This page explains how to process vector data with SedonaDB.\n",
diff --git a/docs/programming-guide.md b/docs/programming-guide.md
index 9ab922d..493603a 100644
--- a/docs/programming-guide.md
+++ b/docs/programming-guide.md
@@ -1,3 +1,22 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
 # SedonaDB Guide
 
 This page explains how to process vector data with SedonaDB.
diff --git a/docs/quickstart-python.ipynb b/docs/quickstart-python.ipynb
index 931b35c..56dcc17 100644
--- a/docs/quickstart-python.ipynb
+++ b/docs/quickstart-python.ipynb
@@ -5,6 +5,25 @@
    "id": "6a8168a4",
    "metadata": {},
    "source": [
+    "<!---\n",
+    "  Licensed to the Apache Software Foundation (ASF) under one\n",
+    "  or more contributor license agreements.  See the NOTICE file\n",
+    "  distributed with this work for additional information\n",
+    "  regarding copyright ownership.  The ASF licenses this file\n",
+    "  to you under the Apache License, Version 2.0 (the\n",
+    "  \"License\"); you may not use this file except in compliance\n",
+    "  with the License.  You may obtain a copy of the License at\n",
+    "\n",
+    "    http://www.apache.org/licenses/LICENSE-2.0\n";,
+    "\n",
+    "  Unless required by applicable law or agreed to in writing,\n",
+    "  software distributed under the License is distributed on an\n",
+    "  \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n",
+    "  KIND, either express or implied.  See the License for the\n",
+    "  specific language governing permissions and limitations\n",
+    "  under the License.\n",
+    "-->\n",
+    "\n",
     "# Python Quickstart\n",
     "\n",
     "SedonaDB for Python can be installed from [PyPI](https://pypi.org):\n",
diff --git a/docs/quickstart-python.md b/docs/quickstart-python.md
index 836d2bd..bdcf260 100644
--- a/docs/quickstart-python.md
+++ b/docs/quickstart-python.md
@@ -1,3 +1,22 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
 # Python Quickstart
 
 SedonaDB for Python can be installed from [PyPI](https://pypi.org):
diff --git a/docs/requirements.txt b/docs/requirements.txt
index ccd5da6..a6fd740 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 mike
 mkdocs-git-revision-date-localized-plugin
 mkdocs-glightbox
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index a7ad722..b18d0b4 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -1,3 +1,22 @@
+/*
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+*/
+
 /* ==========================================================================
    Global Color and Font Variables
    ========================================================================== 
*/
diff --git a/r/sedonadb/src/Makevars.win.in b/r/sedonadb/src/Makevars.win.in
index 3144a58..aaee642 100644
--- a/r/sedonadb/src/Makevars.win.in
+++ b/r/sedonadb/src/Makevars.win.in
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 TARGET = @TARGET@
 
 PROFILE = @PROFILE@
diff --git a/r/sedonadb/src/rust/.cargo/config.toml 
b/r/sedonadb/src/rust/.cargo/config.toml
index 3d8bdda..39353f3 100644
--- a/r/sedonadb/src/rust/.cargo/config.toml
+++ b/r/sedonadb/src/rust/.cargo/config.toml
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 # On Windows, link.exe fails when the artifact contains unresolved symbols
 # (i.e., R's API, which cannot be used without a real R session). This option
 # makes the linker ignore these problems.
diff --git a/rust/sedona-common/src/error.rs b/rust/sedona-common/src/error.rs
index 1448c99..101db2c 100644
--- a/rust/sedona-common/src/error.rs
+++ b/rust/sedona-common/src/error.rs
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 /// Macro to create Sedona Internal Error that avoids the misleading error 
message from
 /// DataFusionError::Internal.
 #[macro_export]
diff --git a/rust/sedona-expr/src/utils.rs b/rust/sedona-expr/src/utils.rs
index 25081a9..2f28558 100644
--- a/rust/sedona-expr/src/utils.rs
+++ b/rust/sedona-expr/src/utils.rs
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 use std::sync::Arc;
 
 use datafusion_expr::Operator;
diff --git a/rust/sedona-geoparquet/src/metadata.rs 
b/rust/sedona-geoparquet/src/metadata.rs
index 406d195..b4be970 100644
--- a/rust/sedona-geoparquet/src/metadata.rs
+++ b/rust/sedona-geoparquet/src/metadata.rs
@@ -14,6 +14,7 @@
 // KIND, either express or implied.  See the License for the
 // specific language governing permissions and limitations
 // under the License.
+
 /// Strongly-typed structs corresponding to the metadata provided by the 
GeoParquet specification.
 ///
 /// This is a slightly modified version of 
geoarrow-rs/rust/geoarrow-geoparquet (modified
diff --git a/rust/sedona-geoparquet/src/options.rs 
b/rust/sedona-geoparquet/src/options.rs
index 93965b1..20fe4bd 100644
--- a/rust/sedona-geoparquet/src/options.rs
+++ b/rust/sedona-geoparquet/src/options.rs
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 use datafusion::config::TableParquetOptions;
 
 /// [TableParquetOptions] wrapper with GeoParquet-specific options
diff --git a/rust/sedona-geoparquet/src/writer.rs 
b/rust/sedona-geoparquet/src/writer.rs
index eb5e140..0071233 100644
--- a/rust/sedona-geoparquet/src/writer.rs
+++ b/rust/sedona-geoparquet/src/writer.rs
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 use std::sync::Arc;
 
 use datafusion::{
diff --git a/rust/sedona-schema/src/matchers.rs 
b/rust/sedona-schema/src/matchers.rs
index ba725c8..57a74dd 100644
--- a/rust/sedona-schema/src/matchers.rs
+++ b/rust/sedona-schema/src/matchers.rs
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
 use std::{fmt::Debug, iter::zip, sync::Arc};
 
 use arrow_schema::DataType;


Reply via email to