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 f754691
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Communications",
"Topic :: Education",
"Topic :: Software Development :: Libraries",
Expand Down

0 comments on commit f754691

Please sign in to comment.