Skip to content

feat(uv compat): optionally use uv #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,20 @@ What you'll be using:
git clone https://github.com/TobikoData/sqlmesh-demos.git # clone the repo
cd sqlmesh-demos # go to the root directory
python -m venv venv # create virtual environment
source venv/bin/activate # activate it
source venv/bin/activate || source venv/Scripts/activate # activate it
pip install -r requirements.txt # install dependencies
source venv/bin/activate # reactivate virtual environment
```

or with [uv](https://docs.astral.sh/uv/):

```bash
git clone https://github.com/TobikoData/sqlmesh-demos.git # clone the repo
cd sqlmesh-demos # go to the root directory
uv sync # create virtual environment and install dependencies
source venv/bin/activate | source venv/Scripts/activate # activate the virtual environment
```

**Setup your BigQuery Service Account:**

![service_account](./images/bigquery_service_account.png)
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[project]
name = "sqlmesh-demos"
description = "A simple, loveable, and complete SQLMesh demo project with the goal of running multiple, realistic scenarios very fast. "
readme = "README.md"
requires-python = ">=3.8,<3.13"
version = "0.1.0"
dependencies = ["sqlmesh[web,postgres,github,bigquery]==0.131.0"]

[dependency-groups]
dev = [
"pytest==8.1.1"
]