Skip to content

Commit 4b92fa4

Browse files
committed
uv: break-system-packages
1 parent 198e45d commit 4b92fa4

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ jobs:
124124
125125
- name: Install dependencies
126126
run: |
127-
uv pip install --upgrade --editable .
127+
uv pip install .
128128
129129
- name: Sanity checks
130-
run: PWNLIB_NOTERM=1 python -bb -c 'from pwn import *; print(pwnlib.term.term_mode)'
130+
run: PWNLIB_NOTERM=1 uv run python -bb -c 'from pwn import *; print(pwnlib.term.term_mode)'
131131

132132
- name: Install documentation dependencies
133133
run: uv pip install -r docs/requirements.txt
@@ -142,23 +142,23 @@ jobs:
142142
# by setting LD_LIBRARY_PATH and gdb's python becoming unable to load built-in modules
143143
# like _socket. This is a workaround.
144144
unset LD_LIBRARY_PATH
145-
PWNLIB_NOTERM=1 python -bb -m coverage run -m sphinx -b doctest docs/source docs/build/doctest
145+
PWNLIB_NOTERM=1 uv run python -bb -m coverage run -m sphinx -b doctest docs/source docs/build/doctest
146146
147147
- name: Coverage running examples
148148
run: |
149149
export TERM=linux
150150
set -x
151-
python -bb travis/coverage_chdir.py examples/fmtstr examples/fmtstr/exploit.py
152-
python -bb travis/coverage_chdir.py examples/fmtstr examples/fmtstr/exploit2.py || : # can fail randomly?
153-
python -bb -m coverage run examples/asm.py
154-
python -bb -m coverage run examples/asm.py
155-
python -bb -m coverage run examples/text.py
151+
uv run python -bb travis/coverage_chdir.py examples/fmtstr examples/fmtstr/exploit.py
152+
uv run python -bb travis/coverage_chdir.py examples/fmtstr examples/fmtstr/exploit2.py || : # can fail randomly?
153+
uv run python -bb -m coverage run examples/asm.py
154+
uv run python -bb -m coverage run examples/asm.py
155+
uv run python -bb -m coverage run examples/text.py
156156
# for f in examples/sigreturn_corefile_*.py; do coverage run "$f"; done # XXX something is wrong
157157
158158
- name: Coverage running commandline tools
159159
run: |
160160
export TERM=linux
161-
pwn() { ( set +x; cmd=$1; shift; PYTHONUNBUFFERED=1 exec python -bb -m coverage run -m pwnlib.commandline."$cmd" "$@" ) }
161+
pwn() { ( set +x; cmd=$1; shift; PYTHONUNBUFFERED=1 exec uv run python -bb -m coverage run -m pwnlib.commandline."$cmd" "$@" ) }
162162
set -x
163163
164164
pwn cyclic 32
@@ -287,18 +287,18 @@ jobs:
287287
288288
- name: Install dependencies
289289
run: |
290-
uv pip install --upgrade --editable .
290+
uv pip install .
291291
292292
- name: Sanity checks
293-
run: PWNLIB_NOTERM=1 python -c 'from pwn import *; print(pwnlib.term.term_mode)'
293+
run: PWNLIB_NOTERM=1 uv run python -c 'from pwn import *; print(pwnlib.term.term_mode)'
294294

295295
- name: Install documentation dependencies
296296
run: uv pip install -r docs/requirements.txt
297297

298298
- name: Coverage Doctests (Android Only)
299299
run: |
300300
source .android.env
301-
PWNLIB_NOTERM=1 python -bb -m coverage run -m sphinx -b doctest docs/source docs/build/doctest docs/source/adb.rst
301+
PWNLIB_NOTERM=1 uv run python -bb -m coverage run -m sphinx -b doctest docs/source docs/build/doctest docs/source/adb.rst
302302
303303
- uses: actions/upload-artifact@v4
304304
with:
@@ -324,19 +324,19 @@ jobs:
324324
325325
- name: Install dependencies
326326
run: |
327-
uv pip install --upgrade --editable .
327+
uv pip install .
328328
329329
- name: Install documentation dependencies
330330
run: uv pip install -r docs/requirements.txt
331331

332332
- name: Sanity checks
333333
run: |
334-
python -bb -c 'from pwn import *'
335-
python -bb examples/text.py
334+
uv run python -bb -c 'from pwn import *'
335+
uv run python -bb examples/text.py
336336
337337
- name: Coverage doctests
338338
run: |
339-
python -bb -m coverage run -m sphinx -b doctest docs/source docs/build/doctest
339+
uv run python -bb -m coverage run -m sphinx -b doctest docs/source docs/build/doctest
340340
341341
- uses: actions/upload-artifact@v4
342342
with:
@@ -359,7 +359,7 @@ jobs:
359359

360360
- name: Install coveralls
361361
run: |
362-
pip install --break-system-packages tomli coveralls || pip install tomli coveralls
362+
uv pip install tomli coveralls || pip install tomli coveralls
363363
364364
- name: Upload coverage to coveralls.io
365365
run: |

0 commit comments

Comments
 (0)