diff --git a/pyproject.toml b/pyproject.toml index 7f386bd..2811cd7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,9 +18,6 @@ classifiers = [ "Programming Language :: Python :: 3", ] dependencies = [ - "geopandas", - "h5netcdf", - "matplotlib", "numpy>=1.7", "pandas>=0.15", "pyyaml", @@ -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", @@ -42,6 +40,10 @@ test = [ "pytest>=3.0", "pytest-cov>=2.0", ] +viz = [ + "geopandas", + "matplotlib", +] [tool.pytest.ini_options] testpaths = [ diff --git a/requirements.txt b/requirements.txt index 6668441..086776b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/whatsnew.rst b/whatsnew.rst index 3de1a91..d8249c9 100644 --- a/whatsnew.rst +++ b/whatsnew.rst @@ -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