Skip to content

Commit

Permalink
fix: khal is not compatible with icalendar >= 6.0 at the moment of wr…
Browse files Browse the repository at this point in the history
…iting
  • Loading branch information
BartSte committed Jan 18, 2025
1 parent 2610174 commit 4fb46a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ classifiers = [
dependencies = [
"khal>=0.11",
"vdirsyncer",
"orgparse"
"orgparse",

# khal is not compatible with icalendar >= 6.0 at the moment of writing
"icalendar<6.0",
]
version = "0.0.3"
version = "0.0.4"

[project.optional-dependencies]
debug = ["ipdb", "ipython"]
Expand Down
4 changes: 4 additions & 0 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ def runner(get_cli_runner, monkeypatch) -> Generator:

def khal_new(_, args: list) -> str:
result = runner.invoke(main_khal, ['new'] + args)
if result.exit_code:
raise result.exception
return result.output

def khal_list(_, args: list):
result = runner.invoke(main_khal, ['list', '-df', ''] + args)
if result.exit_code:
raise result.exception
return result.output

monkeypatch.setattr(Calendar, 'new_item', khal_new)
Expand Down

0 comments on commit 4fb46a8

Please sign in to comment.