Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

dev release fixes (#936)

Akshay Agrawalae77cafc53bf
diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml
index 3d168acbde..565cf6feb2 100644
--- a/.github/workflows/dev-release.yml
+++ b/.github/workflows/dev-release.yml
@@ -19,6 +19,9 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
+ with:
+ # get tag history for version number
+ fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
@@ -46,10 +49,9 @@ jobs:
- name: 🔨 Patch version number
run: |
# patch __init__.py version to be of the form
- # X.Y.dev{n-commits-since-last-tag}+g<sha-short>
- sha_short=`git rev-parse --short ${{ github.sha }}`
+ # X.Y.dev{n-commits-since-last-tag}
n_commits=`git rev-list $(git describe --tags --abbrev=0)..HEAD --count`
- suffix=".dev${n_commits}+g${sha_short}"
+ suffix=".dev${n_commits}"
sed -i "/__version__/s/\"$/${suffix}\"/" marimo/__init__.py
- name: 📦 Build marimo