Skip to content

Commit 124998c

Browse files
committed
uv -> requirements/*.txt
1 parent fc864bf commit 124998c

File tree

8 files changed

+5303
-4
lines changed

8 files changed

+5303
-4
lines changed

.github/workflows/conda-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
if: steps.cache.outputs.cache-hit != 'true'
5353

5454
- name: Install happypose
55-
run: pip install -e .
55+
run: pip install -r requirements/base.txt
5656

5757
- name: Download pre-trained models required for tests
5858
run: |

.github/workflows/pip-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: pip install -U pip
3131

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

3535
- name: Download pre-trained models required for tests
3636
run: |

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ git clone --branch dev --recurse-submodules https://github.com/agimus-project/ha
2929
cd happypose
3030
conda env create -f environment.yml
3131
conda activate happypose
32-
pip install .
32+
pip install -r requirements/base.txt
3333
```
3434

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

5353
### Install extras:

requirements/base.txt

+1,252
Large diffs are not rendered by default.

requirements/cpu.txt

+1,281
Large diffs are not rendered by default.

requirements/cu124.txt

+1,319
Large diffs are not rendered by default.

requirements/generate.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
set -euxo pipefail
4+
5+
# https://stackoverflow.com/a/246128/1368502
6+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
7+
8+
cd "${SCRIPT_DIR}/.."
9+
10+
uv export > "${SCRIPT_DIR}/base.txt"
11+
uv export --extra cpu > "${SCRIPT_DIR}/cpu.txt"
12+
uv export --extra cu124 > "${SCRIPT_DIR}/cu124.txt"
13+
uv export --extra pypi > "${SCRIPT_DIR}/pypi.txt"

requirements/pypi.txt

+1,434
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)