Skip to content

Commit 361773e

Browse files
authored
fix: upgrade caldav for icalendar 7.x compatibility (#397)
## Summary - Upgrade `caldav` dependency from `==1.3.6` to `>=2.2.6` to fix incompatibility with `icalendar>=7.0.0` - `caldav` 1.3.6 accesses `icalendar.cal.component_factory` as a dict, but icalendar 7.x refactored it into a module, causing `TypeError: 'module' object is not subscriptable` in all calendar operations ## Test plan - [x] Calendar tests pass locally (2/2 passed with both client and app modes) - [x] Full test suite passes: **588 passed, 0 failed, 14 skipped** - [x] Verified `caldav` 2.x API is backwards compatible — `DAVClient` and `DAVResponse` imports and constructor unchanged in `nc_py_api/calendar_api.py`
1 parent 8e8cf61 commit 361773e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ optional-dependencies.bench = [
6161
"py-cpuinfo",
6262
]
6363
optional-dependencies.calendar = [
64-
"caldav==1.3.6",
64+
"caldav>=2.2.6",
6565
]
6666
optional-dependencies.dev = [
6767
"nc-py-api[bench,calendar,dev-min]",

0 commit comments

Comments
 (0)