From 032103537159813ec0f6486d6f5160711ab77e6e Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Thu, 31 Oct 2024 21:22:00 +0100 Subject: [PATCH] CI: Use `uv` package manager --- .github/workflows/main.yml | 7 +++++-- .github/workflows/ngr.yml | 7 +++++-- README.md | 2 +- pyproject.toml | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a9734c..11c2fef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,15 +47,18 @@ jobs: cache: 'pip' cache-dependency-path: 'pyproject.toml' + - name: Set up uv + uses: astral-sh/setup-uv@v3 + - name: Set up project run: | # `setuptools 0.64.0` adds support for editable install hooks (PEP 660). # https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400 - pip install --upgrade 'setuptools>=64' + uv pip install --system --upgrade 'setuptools>=64' # Install package in editable mode. - pip install --use-pep517 --prefer-binary --editable='.[all,develop,test]' + uv pip install --system --upgrade --editable='.[all,develop,test]' - name: Run linter and software tests run: | diff --git a/.github/workflows/ngr.yml b/.github/workflows/ngr.yml index 977a2ad..9c08949 100644 --- a/.github/workflows/ngr.yml +++ b/.github/workflows/ngr.yml @@ -58,6 +58,9 @@ jobs: cache: 'pip' cache-dependency-path: 'pyproject.toml' + - name: Set up uv + uses: astral-sh/setup-uv@v3 + # Needed for `pueblo.ngr`. - name: Set up Elixir uses: erlef/setup-beam@v1 @@ -90,10 +93,10 @@ jobs: # `setuptools 0.64.0` adds support for editable install hooks (PEP 660). # https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400 - pip install --upgrade 'setuptools>=64' + uv pip install --system --upgrade 'setuptools>=64' # Install package in editable mode. - pip install --use-pep517 --prefer-binary --editable='.[cli,develop,test]' + uv pip install --system --upgrade --editable='.[cli,develop,test]' - name: Run linter and software tests run: | diff --git a/README.md b/README.md index 5c05397..69aa54c 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ ## Setup ```shell -pip install --upgrade pueblo +uv pip install --upgrade pueblo ``` After installation, you can verify if it was successful. diff --git a/pyproject.toml b/pyproject.toml index 255f025..bbe17be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,7 +95,7 @@ optional-dependencies.fileio = [ ] optional-dependencies.nlp = [ "aiohttp<3.11", - "langchain<0.4", + "langchain>=0.1,<0.4", "langchain-text-splitters<0.4", "unstructured<0.17", ]