Skip to content

Commit

Permalink
uv -> requirements/*.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Nov 25, 2024
1 parent fc864bf commit 124998c
Show file tree
Hide file tree
Showing 8 changed files with 5,303 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/conda-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'

- name: Install happypose
run: pip install -e .
run: pip install -r requirements/base.txt

- name: Download pre-trained models required for tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pip-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: pip install -U pip

- name: Install happypose
run: pip install ".[cpu,pypi]"
run: pip install -r requirements/cpu.txt -r requirements/pypi.txt

- name: Download pre-trained models required for tests
run: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ git clone --branch dev --recurse-submodules https://github.com/agimus-project/ha
cd happypose
conda env create -f environment.yml
conda activate happypose
pip install .
pip install -r requirements/base.txt
```

### Example with uv
Expand All @@ -47,7 +47,7 @@ git clone --branch dev --recurse-submodules https://github.com/agimus-project/ha
cd happypose
python -m venv .venv
source .venv/bin/activate
pip install .[cpu,pypi] # you *must* choose between cpu / cu124
pip install -r requirements/pypi.txt -r requirements/cpu.txt # you *must* choose between cpu / cu124
```

### Install extras:
Expand Down
1,252 changes: 1,252 additions & 0 deletions requirements/base.txt

Large diffs are not rendered by default.

1,281 changes: 1,281 additions & 0 deletions requirements/cpu.txt

Large diffs are not rendered by default.

1,319 changes: 1,319 additions & 0 deletions requirements/cu124.txt

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions requirements/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -euxo pipefail

# https://stackoverflow.com/a/246128/1368502
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

cd "${SCRIPT_DIR}/.."

uv export > "${SCRIPT_DIR}/base.txt"
uv export --extra cpu > "${SCRIPT_DIR}/cpu.txt"
uv export --extra cu124 > "${SCRIPT_DIR}/cu124.txt"
uv export --extra pypi > "${SCRIPT_DIR}/pypi.txt"
1,434 changes: 1,434 additions & 0 deletions requirements/pypi.txt

Large diffs are not rendered by default.

0 comments on commit 124998c

Please sign in to comment.