removed dependency to xdg

This commit is contained in:
jpk 2023-01-12 15:48:07 +01:00
parent 91a7ce14d7
commit 4c7bd3cf17
3 changed files with 3 additions and 15 deletions

View File

@ -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")

11
poetry.lock generated
View File

@ -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 = []

View File

@ -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"