Skip to content

Commit

Permalink
python-magic-bin only compatible with intel osx. add libmagic install…
Browse files Browse the repository at this point in the history
… to macos test deps; only use python-magic-bin for win
  • Loading branch information
leondz committed Aug 1, 2024
1 parent f82fd8a commit 4d616fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

- name: Install dependencies
run: |
brew install libmagic
cd garak
python -m pip install --upgrade pip
pip install -r requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ dependencies = [
"litellm>=1.33.8",
"jsonpath-ng>=1.6.1",
"huggingface_hub>=0.21.0",
'python-magic-bin; sys_platform == "win32" or sys_platform == "darwin"',
'python-magic>=0.4.21; sys_platform != "win32" and sys_platform != "darwin"',
'python-magic-bin; sys_platform == "win32"',
'python-magic>=0.4.21; sys_platform != "win32"',
"lorem==0.1.1",
"xdg-base-dirs>=6.0.1",
]
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fschat>=0.2.36
litellm>=1.33.8
jsonpath-ng>=1.6.1
huggingface_hub>=0.21.0
python-magic-bin; sys_platform == "win32" or sys_platform == "darwin"
python-magic>=0.4.21; sys_platform != "win32" and sys_platform != "darwin"
python-magic-bin; sys_platform == "win32"
python-magic>=0.4.21; sys_platform != "win32"
lorem==0.1.1
xdg-base-dirs>=6.0.1
# tests
Expand Down

0 comments on commit 4d616fb

Please sign in to comment.