Skip to content

Commit 6bd32e5

Browse files
authored
Merge pull request #538 from ClimateImpactLab/dep_refactor
Simplify dependencies: Add optional viz, complete.
2 parents 4ab6af8 + b91d5be commit 6bd32e5

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ classifiers = [
1818
"Programming Language :: Python :: 3",
1919
]
2020
dependencies = [
21-
"geopandas",
22-
"h5netcdf",
23-
"matplotlib",
2421
"numpy>=1.7",
2522
"pandas>=0.15",
2623
"pyyaml",
@@ -33,6 +30,7 @@ dependencies = [
3330
"Bug Tracker" = "https://github.com/ClimateImpactLab/impactlab-tools/issues"
3431

3532
[project.optional-dependencies]
33+
complete = ["impactlab-tools[viz,docs,test]"]
3634
docs = [
3735
"Sphinx",
3836
"sphinx-rtd-theme",
@@ -42,6 +40,10 @@ test = [
4240
"pytest>=3.0",
4341
"pytest-cov>=2.0",
4442
]
43+
viz = [
44+
"geopandas",
45+
"matplotlib",
46+
]
4547

4648
[tool.pytest.ini_options]
4749
testpaths = [

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# This is only used by Github and Github Actions.
22
numpy==1.26.3
3-
xarray==2024.5.0
3+
xarray[complete]==2024.5.0
44
pandas==2.2.1
55
scipy==1.13.0
6-
h5netcdf==1.3.0
76
geopandas==0.14.3
87
matplotlib==3.8.3
98
Sphinx==7.3.7

whatsnew.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ These are new features and improvements of note in each release.
66
Unreleased
77
----------
88

9+
- Drop unused "h5netcdf" dependency. Make "matplotlib", "geopandas" optional dependencies.
10+
11+
- Add new extras for optional dependencies: ``impactlab-tools[viz]``, ``impactlab-tools[complete]``.
12+
913
- Minor code cleanup, style update.
1014

1115
- Update ruff lint section format in pyproject.toml

0 commit comments

Comments
 (0)