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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
chore: release marimo-base to pypi (#2605)
Akshay Agrawal7471d15ee94d
diff --git a/.github/workflows/dev-release-marimo-base.yml b/.github/workflows/dev-release-marimo-base.ymldeleted file mode 100644index 2a3f3728fd..0000000000--- a/.github/workflows/dev-release-marimo-base.yml+++ /dev/null@@ -1,71 +0,0 @@-name: Publish marimo-base dev release--# Publish development release to test pypi on pushes to main-on:- push:- branches:- - main--env:- TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}- TURBO_TEAM: marimo--jobs:- publish_dev_release:- name: 📤 Publish dev release for marimo-base- runs-on: ubuntu-latest- defaults:- run:- shell: bash-- steps:- - name: 🛑 Cancel Previous Runs- uses: styfle/[email protected]-- - name: ⬇️ Checkout repo- uses: actions/checkout@v4- with:- # get tag history for version number- fetch-depth: 0-- - name: 🥚 Install Hatch- uses: pypa/hatch@install-- # Python build tools generally only allow building one project- # per Python project. This modifies the pyproject.toml- # to build marimo-base, a slimmed down marimo distribution with- # no static artifacts.- #- # Adapted from https://github.com/cvxpy/cvxpy/blob/297278e2a88db3c0084750052a16e60672074da3/.github/workflows/build.yml#L169C1-L180C1- - name: Adapt pyproject.toml to build marimo-base- run: |- # Mac has a different syntax for sed -i, this works across oses- sed -i.bak -e 's/name = "marimo"/name = "marimo-base"/g' pyproject.toml- # Remove static artifacts- sed -i.bak '/artifacts = /d' pyproject.toml- rm -rf pyproject.toml.bak-- # patch __init__.py version to be of the form- # X.Y.<Z+1>-dev{n-commits-since-last-tag}- - name: 🔨 Patch version number- run: |- # Get the version number and increment patch- # - assumes version is on a line of the form __version__ == "x.y.z"- incremented_version=`grep '__version__' marimo/__init__.py | awk '{print $3}' | awk -F. '{printf "%d.%d.%d", $1, $2, $3+1}'`- # Get the number of commits since last tag- n_commits=`git rev-list $(git describe --tags --abbrev=0)..HEAD --count`- # Form the new version, which is one patch ahead of the last version- # so installing from Test PyPI does the right thing- MARIMO_VERSION="${incremented_version}-dev${n_commits}"- # Set the version in the environment for later steps- echo "MARIMO_VERSION=$MARIMO_VERSION" >> $GITHUB_ENV- sed -i "s/__version__ = \".*\"/__version__ = \"$MARIMO_VERSION\"/" marimo/__init__.py-- - name: 📦 Build marimo- run: hatch build-- - name: 📤 Upload to TestPyPI- env:- HATCH_INDEX_USER: ${{ secrets.TEST_PYPI_USER }}- HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_MARIMO_BASE_PASSWORD }}- run: hatch publish --repo testdiff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.ymlindex ec0d71892e..a5ca035415 100644--- a/.github/workflows/dev-release.yml+++ b/.github/workflows/dev-release.yml@@ -1,4 +1,4 @@-name: Publish dev release+name: Publish dev release of marimo-base# Publish development release to test pypi on pushes to mainon:@@ -48,6 +48,20 @@ jobs:- name: 🥚 Install Hatchuses: pypa/hatch@install+ # Python build tools generally only allow building one project+ # per Python project. This modifies the pyproject.toml+ # to build marimo-base, a slimmed down marimo distribution with+ # no static artifacts.+ #+ # Adapted from https://github.com/cvxpy/cvxpy/blob/297278e2a88db3c0084750052a16e60672074da3/.github/workflows/build.yml#L169C1-L180C1+ - name: Adapt pyproject.toml to build marimo-base+ run: |+ # Mac has a different syntax for sed -i, this works across oses+ sed -i.bak -e 's/name = "marimo"/name = "marimo-base"/g' pyproject.toml+ # Remove static artifacts+ sed -i.bak '/artifacts = /d' pyproject.toml+ rm -rf pyproject.toml.bak+# patch __init__.py version to be of the form# X.Y.<Z+1>-dev{n-commits-since-last-tag}- name: 🔨 Patch version number@@ -70,7 +84,7 @@ jobs:- name: 📤 Upload to TestPyPIenv:HATCH_INDEX_USER: ${{ secrets.TEST_PYPI_USER }}- HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_PASSWORD }}+ HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_MARIMO_BASE_PASSWORD }}run: hatch publish --repo test- name: 📦 Update package.json version from CLIdiff --git a/.github/workflows/marimo-bot.yml b/.github/workflows/marimo-bot.ymlindex c2c5cbe0fb..ea61cbd2d0 100644--- a/.github/workflows/marimo-bot.yml+++ b/.github/workflows/marimo-bot.yml@@ -62,6 +62,20 @@ jobs:- name: 🥚 Install Hatchuses: pypa/hatch@install+ # Python build tools generally only allow building one project+ # per Python project. This modifies the pyproject.toml+ # to build marimo-base, a slimmed down marimo distribution with+ # no static artifacts.+ #+ # Adapted from https://github.com/cvxpy/cvxpy/blob/297278e2a88db3c0084750052a16e60672074da3/.github/workflows/build.yml#L169C1-L180C1+ - name: Adapt pyproject.toml to build marimo-base+ run: |+ # Mac has a different syntax for sed -i, this works across oses+ sed -i.bak -e 's/name = "marimo"/name = "marimo-base"/g' pyproject.toml+ # Remove static artifacts+ sed -i.bak '/artifacts = /d' pyproject.toml+ rm -rf pyproject.toml.bak+# patch __init__.py version to be of the form# X.Y.Z-dev9{4random digits}# This must be a valid semver version from@@ -85,7 +99,7 @@ jobs:- name: 📤 Upload to TestPyPIenv:HATCH_INDEX_USER: ${{ secrets.TEST_PYPI_USER }}- HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_PASSWORD }}+ HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_MARIMO_BASE_PASSWORD }}run: hatch publish --repo test- name: 📦 Update package.json version from CLIdiff --git a/.github/workflows/release-marimo-base.yml b/.github/workflows/release-marimo-base.ymlnew file mode 100644index 0000000000..7dda76bfeb--- /dev/null+++ b/.github/workflows/release-marimo-base.yml@@ -0,0 +1,55 @@+name: Publish marimo-base release++# release a new version of marimo-base on tag push+on:+ push:+ tags:+ - '[0-9]+.[0-9]+.[0-9]+'+ workflow_dispatch: {}++env:+ TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}+ TURBO_TEAM: marimo+ REGISTRY: ghcr.io+ IMAGE_NAME: marimo-team/marimo++jobs:+ publish_release:+ name: 📤 Publish release+ runs-on: ubuntu-latest+ defaults:+ run:+ shell: bash++ steps:+ - name: 🛑 Cancel Previous Runs+ uses: styfle/[email protected]++ - name: ⬇️ Checkout repo+ uses: actions/checkout@v4++ - name: 🥚 Install Hatch+ uses: pypa/hatch@install++ # Python build tools generally only allow building one project+ # per Python project. This modifies the pyproject.toml+ # to build marimo-base, a slimmed down marimo distribution with+ # no static artifacts.+ #+ # Adapted from https://github.com/cvxpy/cvxpy/blob/297278e2a88db3c0084750052a16e60672074da3/.github/workflows/build.yml#L169C1-L180C1+ - name: Adapt pyproject.toml to build marimo-base+ run: |+ # Mac has a different syntax for sed -i, this works across oses+ sed -i.bak -e 's/name = "marimo"/name = "marimo-base"/g' pyproject.toml+ # Remove static artifacts+ sed -i.bak '/artifacts = /d' pyproject.toml+ rm -rf pyproject.toml.bak++ - name: 📦 Build marimo-base+ run: hatch build++ - name: 📤 Upload to PyPI+ env:+ HATCH_INDEX_USER: ${{ secrets.PYPI_USER }}+ HATCH_INDEX_AUTH: ${{ secrets.PYPI_MARIMO_BASE_PASSWORD }}+ run: hatch publish