Skip to content

Commit

Permalink
Merge pull request #538 from ClimateImpactLab/dep_refactor
Browse files Browse the repository at this point in the history
Simplify dependencies: Add optional viz, complete.
  • Loading branch information
brews authored May 31, 2024
2 parents 4ab6af8 + b91d5be commit 6bd32e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
"geopandas",
"h5netcdf",
"matplotlib",
"numpy>=1.7",
"pandas>=0.15",
"pyyaml",
Expand All @@ -33,6 +30,7 @@ dependencies = [
"Bug Tracker" = "https://github.com/ClimateImpactLab/impactlab-tools/issues"

[project.optional-dependencies]
complete = ["impactlab-tools[viz,docs,test]"]
docs = [
"Sphinx",
"sphinx-rtd-theme",
Expand All @@ -42,6 +40,10 @@ test = [
"pytest>=3.0",
"pytest-cov>=2.0",
]
viz = [
"geopandas",
"matplotlib",
]

[tool.pytest.ini_options]
testpaths = [
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# This is only used by Github and Github Actions.
numpy==1.26.3
xarray==2024.5.0
xarray[complete]==2024.5.0
pandas==2.2.1
scipy==1.13.0
h5netcdf==1.3.0
geopandas==0.14.3
matplotlib==3.8.3
Sphinx==7.3.7
Expand Down
4 changes: 4 additions & 0 deletions whatsnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ These are new features and improvements of note in each release.
Unreleased
----------

- Drop unused "h5netcdf" dependency. Make "matplotlib", "geopandas" optional dependencies.

- Add new extras for optional dependencies: ``impactlab-tools[viz]``, ``impactlab-tools[complete]``.

- Minor code cleanup, style update.

- Update ruff lint section format in pyproject.toml
Expand Down

0 comments on commit 6bd32e5

Please sign in to comment.