diff --git a/grawlix/config.py b/grawlix/config.py index 68b9caa..12c19ee 100644 --- a/grawlix/config.py +++ b/grawlix/config.py @@ -1,7 +1,7 @@ from dataclasses import dataclass from typing import Optional import tomli -import appdirs +from platformdirs import user_config_dir import os @@ -26,7 +26,7 @@ def load_config() -> Config: :returns: Config object """ - config_dir = appdirs.user_config_dir("grawlix", "jo1gi") + config_dir = user_config_dir("grawlix", "jo1gi") config_file = os.path.join(config_dir, "grawlix.toml") if os.path.exists(config_file): try: diff --git a/pyproject.toml b/pyproject.toml index 83ffec8..0dd718f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,21 +6,27 @@ authors = [ description = "CLI tool for downloading ebooks" readme = "README.md" keywords = ["ebook", "cli", "downloader"] +requires-python = ">=3.9" classifiers = [ "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", ] dependencies = [ - "appdirs", - "beautifulsoup4", - "blackboxprotobuf", - "EbookLib", - "httpx", - "importlib-resources", - "lxml", - "pycryptodome", - "rich", - "tomli", + "beautifulsoup4>=4.9.0", + "bbpb>=1.0.0", + "EbookLib>=0.17", + "httpx>=0.23.0", + "importlib-resources>=5.0", + "lxml>=4.6.0", + "platformdirs>=3.0.0", + "pycryptodome>=3.10.0", + "rich>=10.0.0", + "tomli>=1.0.0; python_version<'3.11'", ] dynamic = ["version"]