onprema

Run Airflow Locally (uv + zed)

I've found this flow to work pretty well for spinning up specific versions of Airflow locally:

mkdir airflow-2.11.0
cd airflow-2.11.0
astro dev init --airflow-version 2.11.0
uv venv .venv --python 3.10.0           # Might need to use a compatible version of Python
source .venv/bin/activate
uv pip install apache-airflow==2.11.0
zed .

It keeps everything contained in that directory so you can easily remove it when you are done and it won't affect the host system.

Make sure you have something like this in your zed config:

"terminal": {
    "detect_venv": {
      "on": {
        "directories": [".venv", "venv"],
        "activate_script": "default"
      }
    }
  },

#airflow #devops