From 7dfbe8d47f085968ad7f25d06bcea5848e306e74 Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Sun, 22 Sep 2024 18:20:01 +0200 Subject: [PATCH] replace deprecated appdirs with platformdirs fork --- docs/configuration.md | 2 +- milc/milc.py | 2 +- requirements-dev.txt | 1 - setup.py | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 05ba859..c26b783 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -32,7 +32,7 @@ Use `cli.save_config()` to save the user's configuration file. It will be writte # Configuration File Location -MILC uses [appdirs](https://github.com/ActiveState/appdirs) to determine the configuration file location. You can set your application's name and author by using `milc.set_metadata`: +MILC uses [platformdirs](https://github.com/tox-dev/platformdirs) to determine the configuration file location. You can set your application's name and author by using `milc.set_metadata`: ```python from milc import set_metadata diff --git a/milc/milc.py b/milc/milc.py index 2ddb1e6..cb3306d 100644 --- a/milc/milc.py +++ b/milc/milc.py @@ -21,8 +21,8 @@ import argcomplete import colorama -from appdirs import user_config_dir from halo import Halo # type: ignore +from platformdirs import user_config_dir from spinners.spinners import Spinners # type: ignore from .ansi import MILCFormatter, ansi_colors, ansi_config, ansi_escape, format_ansi diff --git a/requirements-dev.txt b/requirements-dev.txt index 0bdabc2..46d8ffe 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -7,6 +7,5 @@ mkdocs-material<9 mypy nose2 pygments -types-appdirs semver yapf diff --git a/setup.py b/setup.py index 5ad276c..e4fad9d 100644 --- a/setup.py +++ b/setup.py @@ -46,10 +46,10 @@ ], python_requires='>=3.7', install_requires=[ - "appdirs", "argcomplete", "colorama", "halo", + "platformdirs", "spinners", "types-colorama", ],