Skip to content

Commit

Permalink
Define optional gis dependencies in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Aug 25, 2024
1 parent 6be2940 commit 09eb5b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test_gis_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Install dependencies
run: |
pip install mesa mesa-geo --pre
pip install
pip install .[test_gis]
pip install pytest
- name: Test with pytest
run: pytest -rA -Werror test_examples.py
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ license = {file = "LICENSE"}
readme = "README.rst"
requires-python = ">=3.8"

[project.optional-dependencies]
test = [""]
test_gis = [
"momepy",
]

[build-system]
requires = [
"setuptools",
Expand Down

0 comments on commit 09eb5b5

Please sign in to comment.