Skip to content

Commit

Permalink
Merge pull request #141 from Semantics-of-Sustainability/fix/scipy
Browse files Browse the repository at this point in the history
Move NER-related dependencies to extra requirements `ner`.
  • Loading branch information
carschno authored Nov 22, 2024
2 parents 9a3ac3c + f560ce5 commit d18a7ad
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Upgrade pip and install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install .[dev,publishing]
python3 -m pip install .[dev,publishing,ner]
- name: Run unit tests
run: pytest -v
- name: Verify that we can build the package
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- name: Upgrade pip and install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install .[dev,publishing]
python3 -m pip install .[dev,publishing,ner]
- name: Install pandoc using apt
run: sudo apt install pandoc
run: sudo apt install pandoc
- name: Build documentation
run: make coverage doctest html
working-directory: docs
working-directory: docs
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
which python3
python3 --version
- name: Install dependencies
run: python3 -m pip install .[dev]
run: python3 -m pip install .[dev,ner]
- name: Run unit tests with coverage
run: pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml tests/
- name: Correct coverage paths
Expand Down
10 changes: 6 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ install_requires =
datashader
holoviews
pandas
# Dependencies for NER pipeline and time space heat map:
folium~=0.18.0
geopy~=2.4.1
spacy~=3.8.2


[options.data_files]
# This section requires setuptools>=40.6.0
Expand All @@ -86,6 +83,11 @@ dev =
publishing =
twine
wheel
ner =
# Dependencies for NER pipeline and time space heat map:
folium~=0.18.0
geopy~=2.4.1
spacy~=3.8.2

[options.packages.find]
include = tempo_embeddings, tempo_embeddings.*
Expand Down

0 comments on commit d18a7ad

Please sign in to comment.