Skip to content

Commit

Permalink
fixup! Update initialse_virtualenv.py to use uv sync
Browse files Browse the repository at this point in the history
  • Loading branch information
potiuk committed Nov 17, 2024
1 parent bc9e640 commit 7714f2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tools/initialize_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def main():
env["AIRFLOW__DATABASE__SQL_ALCHEMY_POOL_ENABLED"] = "False"
env["AIRFLOW__CORE__DAGS_FOLDER"] = f"{airflow_sources}/empty"
env["AIRFLOW__CORE__PLUGINS_FOLDER"] = f"{airflow_sources}/empty"
subprocess.run(["airflow", "db", "reset", "--yes"], env=env)
subprocess.run(["uv", "run", "airflow", "db", "reset", "--yes"], env=env)

print("\nResetting AIRFLOW sqlite unit test database...")
env = os.environ.copy()
Expand All @@ -177,7 +177,7 @@ def main():
env["AIRFLOW__DATABASE__SQL_ALCHEMY_POOL_ENABLED"] = "False"
env["AIRFLOW__CORE__DAGS_FOLDER"] = f"{airflow_sources}/empty"
env["AIRFLOW__CORE__PLUGINS_FOLDER"] = f"{airflow_sources}/empty"
subprocess.run(["airflow", "db", "reset", "--yes"], env=env)
subprocess.run(["uv", "run", "airflow", "db", "reset", "--yes"], env=env)

print("\nInitialization of environment complete! Go ahead and develop Airflow!")

Expand Down

0 comments on commit 7714f2b

Please sign in to comment.