removed dependency to xdg
This commit is contained in:
parent
91a7ce14d7
commit
4c7bd3cf17
|
@ -1,7 +1,7 @@
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from pathlib import Path
|
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 import create_file_path_field
|
||||||
from yamldataclassconfig.config import YamlDataClassConfig
|
from yamldataclassconfig.config import YamlDataClassConfig
|
||||||
|
|
||||||
|
@ -11,6 +11,4 @@ class Config(YamlDataClassConfig):
|
||||||
root_directory: str = ""
|
root_directory: str = ""
|
||||||
compose_executable: str = ""
|
compose_executable: str = ""
|
||||||
|
|
||||||
FILE_PATH: Path = create_file_path_field(
|
FILE_PATH: Path = create_file_path_field(Path(get_app_dir("doxy")) / "config.yml")
|
||||||
Path(xdg_config_home()) / "doxy/config.yml"
|
|
||||||
)
|
|
||||||
|
|
|
@ -314,14 +314,6 @@ category = "dev"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = "*"
|
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]]
|
[[package]]
|
||||||
name = "yamldataclassconfig"
|
name = "yamldataclassconfig"
|
||||||
version = "1.5.0"
|
version = "1.5.0"
|
||||||
|
@ -337,7 +329,7 @@ pyyaml = "*"
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "1.1"
|
lock-version = "1.1"
|
||||||
python-versions = "^3.10"
|
python-versions = "^3.10"
|
||||||
content-hash = "170eebbe419588237954ba9ca730e93d253a3c4baba92e4a26a88eff89fce121"
|
content-hash = "6bdfca3a7a9351058dae359dae3d4333b91187a9a5535eb3fc49d04ecb771c3c"
|
||||||
|
|
||||||
[metadata.files]
|
[metadata.files]
|
||||||
atomicwrites = []
|
atomicwrites = []
|
||||||
|
@ -417,5 +409,4 @@ typing-extensions = []
|
||||||
typing-inspect = []
|
typing-inspect = []
|
||||||
virtualenv = []
|
virtualenv = []
|
||||||
wcwidth = []
|
wcwidth = []
|
||||||
xdg = []
|
|
||||||
yamldataclassconfig = []
|
yamldataclassconfig = []
|
||||||
|
|
|
@ -12,7 +12,6 @@ python = "^3.10"
|
||||||
click = "^8.1.3"
|
click = "^8.1.3"
|
||||||
rich = "^13.0.1"
|
rich = "^13.0.1"
|
||||||
yamldataclassconfig = "^1.5.0"
|
yamldataclassconfig = "^1.5.0"
|
||||||
xdg = "^5.1.1"
|
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
doxy = "doxy.cli:main"
|
doxy = "doxy.cli:main"
|
||||||
|
|
Loading…
Reference in New Issue