Skip to content

Commit

Permalink
fix: icalendar v6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Oct 2, 2024
1 parent 00c71f8 commit fa92543
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
6 changes: 5 additions & 1 deletion icalevents/icalparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
from icalendar.prop import vDDDLists, vText
from uuid import uuid4

from icalendar.windows_to_olson import WINDOWS_TO_OLSON
from icalendar import use_pytz
from icalendar.timezone.windows_to_olson import WINDOWS_TO_OLSON
from pytz import timezone


use_pytz()


def now():
"""
Get current time.
Expand Down
26 changes: 20 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
icalendar = "5.0.13"
icalendar = "^6.0.0"
python-dateutil = "^2.9.0"
pytz = "^2024.1"
httplib2 = "^0.22.0"
Expand Down

0 comments on commit fa92543

Please sign in to comment.