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
release marimo-base to test pypi (#2602)
Akshay Agrawalb993db10739c
diff --git a/.github/workflows/dev-release-marimo-base.yml b/.github/workflows/dev-release-marimo-base.ymlnew file mode 100644index 0000000000..8ff18aa013--- /dev/null+++ b/.github/workflows/dev-release-marimo-base.yml@@ -0,0 +1,71 @@+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_PASSWORD }}+ run: hatch publish --repo test