Skip to content
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

use uv #8

Merged
merged 1 commit into from
Jul 26, 2024
Merged
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
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ endif

.PHONY: requirements
requirements: .venv ## Install/refresh Python project requirements
$(VENV_BIN)/python -m pip install --upgrade pip
$(VENV_BIN)/python -m pip install --editable .[dev]
$(VENV_BIN)/python -m pip install --upgrade uv
$(VENV_BIN)/uv pip install --editable .[dev]
"$(VENV_BIN)/dbt" deps --project-dir="./dbt" --profiles-dir="./dbt"

.PHONY: build
build:
$(VENV_BIN)/python -m pip install build
$(VENV_BIN)/uv pip install build
$(VENV_BIN)/python -m build

.PHONY: dagster
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ Cutout of the dagster lineage graph:
## Development

* Python >= 3.10 https://www.python.org/downloads/
* pip >= 21.3 (for editable installs, see [PEP 660](https://peps.python.org/pep-0660/))
* `python -m pip install --upgrade pip`

This project uses `pyproject.toml` to describe package metadata
(see [PEP 621](https://peps.python.org/pep-0621/)).
(see [PEP 621](https://peps.python.org/pep-0621/)) and [uv](https://github.com/astral-sh/uv)
to manage dependencies.

### Setup Virtual environment

Following commands create and activate a virtual environment.
The `[dev]` also installs development tools.
The `--editable` makes the CLI script available.
* The `[dev]` also installs development tools.
* The `--editable` makes the CLI script available.

Commands:
* Bash:
```bash
make requirements
Expand All @@ -33,15 +33,15 @@ The `--editable` makes the CLI script available.
```powershell
python -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install --editable .[dev]
python -m pip install --upgrade uv
uv pip install --editable .[dev]
```
* Windows CMD:
```
python -m venv .venv
.venv\Scripts\activate.bat
python -m pip install --upgrade pip
pip install --editable .[dev]
python -m pip install --upgrade uv
uv pip install --editable .[dev]
```

### Dagster
Expand Down
Loading