diff --git a/lock-deps.sh b/lock-deps.sh new file mode 100755 index 0000000..0246887 --- /dev/null +++ b/lock-deps.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +set -x +uv lock --upgrade +uv pip compile pyproject.toml --upgrade --universal -o requirements.txt --python-version 3.10 --group dev diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..12ab1aa --- /dev/null +++ b/requirements.txt @@ -0,0 +1,48 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile pyproject.toml --universal -o requirements.txt --python-version 3.10 --group dev +certifi==2026.4.22 + # via requests +charset-normalizer==3.4.7 + # via requests +click==8.3.3 + # via portable-python (pyproject.toml) +colorama==0.4.6 ; sys_platform == 'win32' + # via + # click + # pytest +coverage==7.13.5 + # via pytest-cov +exceptiongroup==1.3.1 ; python_full_version < '3.11' + # via pytest +idna==3.13 + # via requests +iniconfig==2.3.0 + # via pytest +packaging==26.2 + # via pytest +pluggy==1.6.0 + # via + # pytest + # pytest-cov +pygments==2.20.0 + # via pytest +pytest==9.0.3 + # via pytest-cov +pytest-cov==7.1.0 + # via portable-python (pyproject.toml:dev) +pyyaml==6.0.3 + # via portable-python (pyproject.toml) +requests==2.33.1 + # via portable-python (pyproject.toml) +runez==5.9.1 + # via portable-python (pyproject.toml) +tomli==2.4.1 ; python_full_version <= '3.11' + # via + # coverage + # pytest +typing-extensions==4.15.0 ; python_full_version < '3.11' + # via exceptiongroup +urllib3==2.6.3 + # via + # portable-python (pyproject.toml) + # requests diff --git a/tests/test_inspector.py b/tests/test_inspector.py index 90029bc..4b8b6be 100644 --- a/tests/test_inspector.py +++ b/tests/test_inspector.py @@ -49,7 +49,7 @@ def test_inspect_python(temp_folder, monkeypatch): OTOOL_SAMPLE = """ .../test-sample.so: ....../foo/bar.dylib (compatibility version 8.0.0, current version 8.4.0) - /usr/local/opt/gdbm/lib/libgdbm_compat.4.dylib (compatibility version 5.0.0, current version 5.0.0) + /some/path/gdbm/lib/libgdbm_compat.4.dylib (compatibility version 5.0.0, current version 5.0.0) @rpath/libssl.45.dylib (compatibility version 46.0.0, current version 46.1.0) /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0) @@ -84,7 +84,7 @@ def test_inspect_lib(logged): assert str(info1) == "_dbm*!.so" info1.parse_otool(OTOOL_SAMPLE) r = info1.represented() - assert r == "_dbm*!.so foo/bar.dylib:8.4.0 /usr/local/opt/gdbm/lib/libgdbm_compat.4.dylib:5.0.0 ncurses:5.4.0" + assert r == "_dbm*!.so foo/bar.dylib:8.4.0 /some/path/gdbm/lib/libgdbm_compat.4.dylib:5.0.0 ncurses:5.4.0" rv = info1.represented(verbose=True) assert "[base] @rpath/libssl.45.dylib 46.1.0" in rv