Skip to content

Commit

Permalink
CI: Use uv package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 31, 2024
1 parent d053ff2 commit 0321035
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ngr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
## Setup

```shell
pip install --upgrade pueblo
uv pip install --upgrade pueblo
```

After installation, you can verify if it was successful.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down

0 comments on commit 0321035

Please sign in to comment.