Skip to content

fix: upgrade caldav for icalendar 7.x compatibility#397

Merged
bigcat88 merged 1 commit intomainfrom
fix/upgrade-caldav-icalendar7-compat
Feb 19, 2026
Merged

fix: upgrade caldav for icalendar 7.x compatibility#397
bigcat88 merged 1 commit intomainfrom
fix/upgrade-caldav-icalendar7-compat

Conversation

@bigcat88
Copy link
Contributor

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

  • Calendar tests pass locally (2/2 passed with both client and app modes)
  • Full test suite passes: 588 passed, 0 failed, 14 skipped
  • Verified caldav 2.x API is backwards compatible — DAVClient and DAVResponse imports and constructor unchanged in nc_py_api/calendar_api.py

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

Upgrade to caldav >=2.2.6 which supports icalendar >6.0.0.
@bigcat88 bigcat88 merged commit 361773e into main Feb 19, 2026
13 checks passed
@bigcat88 bigcat88 deleted the fix/upgrade-caldav-icalendar7-compat branch February 19, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant