Skip to content

Commit

Permalink
Change dependency xdg (xdg-base-dirs) to pyxdg
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavakerstrom committed Jan 31, 2025
1 parent 7b61977 commit 1a0fb90
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
28 changes: 14 additions & 14 deletions poetry.lock

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

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ caldav = { version = "^0.11.0", optional = true }
icalendar = { version = "^5.0.13", optional = true }
taskw-ng = { version = "0.2.7", optional = true }
xattr = { version = "^0.9.9", optional = true }
xdg = { version = "^6.0.0", optional = true }
pyxdg = { version = "^0.28", optional = true }

loguru = "^0.5.3"
python-dateutil = "^2.9.0.post0"
Expand All @@ -85,7 +85,7 @@ gkeep = ["gkeepapi"]
notion = ["notion-client"]
asana = ["asana"]
caldav = ["caldav", "icalendar"]
tw = ["taskw-ng", "xdg"]
tw = ["taskw-ng", "pyxdg"]
fs = ["xattr"]

# dev dependencies -------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions syncall/taskwarrior/taskwarrior_side.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from bubop import logger, parse_datetime
from taskw_ng import TaskWarrior
from taskw_ng.warrior import TASKRC
from xdg import xdg_config_home
from xdg.BaseDirectory import xdg_config_home

from syncall.sync_side import ItemType, SyncSide
from syncall.types import TaskwarriorRawItem
Expand Down Expand Up @@ -78,7 +78,7 @@ def __init__(
config_file = None
candidate_config_files = [
Path(TASKRC).expanduser(),
xdg_config_home() / "task" / "taskrc",
f"{xdg_config_home} / task / taskrc",
]
if config_file_override is not None:
if not config_file_override.is_file():
Expand Down

0 comments on commit 1a0fb90

Please sign in to comment.