From 4c7bd3cf173032a5d17cbd8763efe4c033e26bca Mon Sep 17 00:00:00 2001 From: jpk Date: Thu, 12 Jan 2023 15:48:07 +0100 Subject: [PATCH] removed dependency to xdg --- doxy/config.py | 6 ++---- poetry.lock | 11 +---------- pyproject.toml | 1 - 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/doxy/config.py b/doxy/config.py index c606b83..acd4e1f 100644 --- a/doxy/config.py +++ b/doxy/config.py @@ -1,7 +1,7 @@ from dataclasses import dataclass from pathlib import Path -from xdg import xdg_config_home +from click import get_app_dir from yamldataclassconfig import create_file_path_field from yamldataclassconfig.config import YamlDataClassConfig @@ -11,6 +11,4 @@ class Config(YamlDataClassConfig): root_directory: str = "" compose_executable: str = "" - FILE_PATH: Path = create_file_path_field( - Path(xdg_config_home()) / "doxy/config.yml" - ) + FILE_PATH: Path = create_file_path_field(Path(get_app_dir("doxy")) / "config.yml") diff --git a/poetry.lock b/poetry.lock index f0562ea..5969fc8 100644 --- a/poetry.lock +++ b/poetry.lock @@ -314,14 +314,6 @@ category = "dev" optional = false python-versions = "*" -[[package]] -name = "xdg" -version = "5.1.1" -description = "Variables defined by the XDG Base Directory Specification" -category = "main" -optional = false -python-versions = ">=3.6,<4.0" - [[package]] name = "yamldataclassconfig" version = "1.5.0" @@ -337,7 +329,7 @@ pyyaml = "*" [metadata] lock-version = "1.1" python-versions = "^3.10" -content-hash = "170eebbe419588237954ba9ca730e93d253a3c4baba92e4a26a88eff89fce121" +content-hash = "6bdfca3a7a9351058dae359dae3d4333b91187a9a5535eb3fc49d04ecb771c3c" [metadata.files] atomicwrites = [] @@ -417,5 +409,4 @@ typing-extensions = [] typing-inspect = [] virtualenv = [] wcwidth = [] -xdg = [] yamldataclassconfig = [] diff --git a/pyproject.toml b/pyproject.toml index 5233e07..a2c27fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,6 @@ python = "^3.10" click = "^8.1.3" rich = "^13.0.1" yamldataclassconfig = "^1.5.0" -xdg = "^5.1.1" [tool.poetry.scripts] doxy = "doxy.cli:main"