Skip to content

Commit

Permalink
Set os-specific dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrandje committed Sep 22, 2023
1 parent f1d3967 commit 9f8089d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Add libmagic for python-magic on linux
run: sudo apt-get install libmagic1
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Add libmagic for python-magic on linux
run: sudo apt-get install libmagic1
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ appdirs = "^1.4.4"
owslib = "^0.28.1"
matplotlib = "^3.7.1"
python-dotenv = "^1.0.0"
python-magic-bin = "^0.4.14"
python-magic-bin = {version = "^0.4.14", markers = "sys_platform == 'win32'"}
python-magic = {version = "^0.4.14", markers = "sys_platform == 'linux'"}
requests-cache = "^1.1.0"
unidecode = "^1.3.6"
charset-normalizer = "^3.2.0"
Expand Down

0 comments on commit 9f8089d

Please sign in to comment.