From a103ee8ee9c8c102b40517445e699565de22431d Mon Sep 17 00:00:00 2001 From: frizzleqq Date: Fri, 26 Jul 2024 18:00:29 +0200 Subject: [PATCH] use uv --- Makefile | 6 +++--- README.md | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 9a64fcd..7ba43ef 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index e37c57e..deb0f36 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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