From 25716ba02c6de9a0aa3c2bd41a22d95769552f59 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 9 Nov 2021 22:43:37 +0200 Subject: [PATCH] Replace unmaintained appdirs with maintained platformdirs --- README.rst | 4 ++-- requirements.txt | 2 +- setup.py | 2 +- urlextract/cachefile.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 46133c9..824956c 100644 --- a/README.rst +++ b/README.rst @@ -52,14 +52,14 @@ Requirements - IDNA for converting links to IDNA format - uritools for domain name validation -- appdirs for determining user's cache directory +- platformdirs for determining user's cache directory - dnspython to cache DNS results :: pip install idna pip install uritools - pip install appdirs + pip install platformdirs pip install dnspython Example diff --git a/requirements.txt b/requirements.txt index d9d1652..8ba2f4d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ idna uritools pytest -appdirs +platformdirs bump2version filelock dnspython diff --git a/setup.py b/setup.py index c2c3bd7..615e924 100644 --- a/setup.py +++ b/setup.py @@ -67,7 +67,7 @@ def read(readme): install_requires=[ 'idna', 'uritools', - 'appdirs', + 'platformdirs', 'filelock' ], ) diff --git a/urlextract/cachefile.py b/urlextract/cachefile.py index d8449e1..1d89842 100644 --- a/urlextract/cachefile.py +++ b/urlextract/cachefile.py @@ -17,7 +17,7 @@ import idna import filelock -from appdirs import user_cache_dir +from platformdirs import user_cache_dir class CacheFileError(Exception):