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: use hatch for main release (#2521)
Myles Scolnick4b98f6a0fe7c
diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.ymlindex 971d886bc2..ec0d71892e 100644--- a/.github/workflows/dev-release.yml+++ b/.github/workflows/dev-release.yml@@ -71,7 +71,7 @@ jobs:env:HATCH_INDEX_USER: ${{ secrets.TEST_PYPI_USER }}HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_PASSWORD }}- run: hatch publish --repo test || true+ run: hatch publish --repo test- name: 📦 Update package.json version from CLIworking-directory: frontenddiff --git a/.github/workflows/marimo-bot.yml b/.github/workflows/marimo-bot.ymlindex 7587d254d4..c2c5cbe0fb 100644--- a/.github/workflows/marimo-bot.yml+++ b/.github/workflows/marimo-bot.yml@@ -86,7 +86,7 @@ jobs:env:HATCH_INDEX_USER: ${{ secrets.TEST_PYPI_USER }}HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_PASSWORD }}- run: hatch publish --repo test || true+ run: hatch publish --repo test- name: 📦 Update package.json version from CLIworking-directory: frontenddiff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.ymlindex dc86d8f38f..55395dd726 100644--- a/.github/workflows/playwright.yml+++ b/.github/workflows/playwright.yml@@ -64,10 +64,10 @@ jobs:- name: 📦 Build frontendrun: make fe- - name: 🐍 Setup Python 3.10+ - name: 🐍 Setup Python 3.12uses: actions/setup-python@v5with:- python-version: '3.10'+ python-version: '3.12'cache: 'pip'# We tried to add uv, but marimo is unable todiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 636af2c576..349c10008e 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -48,34 +48,22 @@ jobs:- name: 📦 Build frontendrun: make fe- - name: 🐍 Setup Python 3.12- uses: actions/setup-python@v5- with:- python-version: '3.12'- cache: 'pip'-- # This does not work when running `marimo --version`- # - name: 🐍 Setup uv- # uses: yezz123/setup-uv@v4- # with:- # uv-venv: marimo-venv+ - name: 🥚 Install Hatch+ uses: pypa/hatch@install- name: 📦 Build marimo- run: |- pip install build twine- pip install .- python -m build+ run: hatch build- name: 📤 Upload to PyPIenv:- TWINE_USERNAME: ${{ secrets.PYPI_USER }}- TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}- run: twine upload --skip-existing dist/*+ HATCH_INDEX_USER: ${{ secrets.PYPI_USER }}+ HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }}+ run: hatch publish- name: 🔨 Get versionid: get_versionrun: |- echo "marimo_version=$(python -m marimo --version)" >> $GITHUB_OUTPUT+ echo "marimo_version=$(hatch version)" >> $GITHUB_OUTPUT- name: 📦 Update package.json version from CLIworking-directory: frontenddiff --git a/.github/workflows/test_cli.yaml b/.github/workflows/test_cli.yamlindex bd89cc8ae5..879f3c38f1 100644--- a/.github/workflows/test_cli.yaml+++ b/.github/workflows/test_cli.yaml@@ -99,7 +99,7 @@ jobs:- name: Install Python depsrun: |python -m pip install --upgrade pip- pip install pytest pytest-asyncio+ pip install pytest pytest-asyncio nbformat- name: Download wheeluses: actions/download-artifact@v3@@ -112,7 +112,12 @@ jobs:- name: Test CLIshell: bash- run: pytest -v tests/_cli/test_cli.py tests/_cli/test_cli_export.py+ run: |+ pytest -v \+ tests/_cli/test_cli.py \+ tests/_cli/test_cli_export.py \+ tests/_cli/test_cli_config.py \+ tests/_cli/test_cli_development.pytest_examples:needs: [changes, build_wheel]diff --git a/tests/_cli/test_cli.py b/tests/_cli/test_cli.pyindex be81dac61d..ef2d043e37 100644--- a/tests/_cli/test_cli.py+++ b/tests/_cli/test_cli.py@@ -669,7 +669,6 @@ def test_cli_run_sandbox_prompt() -> None:p.kill()[email protected](reason="Need to release -y to PyPI")def test_cli_edit_sandbox_prompt_yes() -> None:port = _get_port()path = os.path.join(DIR_PATH, "cli_data", "sandbox.py")@@ -691,7 +690,6 @@ def test_cli_edit_sandbox_prompt_yes() -> None:p.kill()[email protected](reason="Need to release -y to PyPI")def test_cli_run_sandbox_prompt_yes() -> None:port = _get_port()path = os.path.join(DIR_PATH, "cli_data", "sandbox.py")