From 95ca4b9ce4a126ed67980f5eb7096945a9506249 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Sat, 17 Jul 2021 03:22:07 +0800 Subject: [PATCH] Use platformdirs instead of appdirs Use the better maintained `platformdirs` instead of `appdirs`. --- setup.py | 2 +- src/zeep/cache.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 9f5f4d48b..2a19e2c44 100755 --- a/setup.py +++ b/setup.py @@ -3,11 +3,11 @@ from setuptools import setup install_requires = [ - "appdirs>=1.4.0", "attrs>=17.2.0", "cached-property>=1.3.0", "isodate>=0.5.4", "lxml>=4.6.0", + "platformdirs>=1.4.0", "requests>=2.7.0", "requests-toolbelt>=0.7.1", "requests-file>=1.5.1", diff --git a/src/zeep/cache.py b/src/zeep/cache.py index eebb39d12..e484cdc97 100644 --- a/src/zeep/cache.py +++ b/src/zeep/cache.py @@ -7,7 +7,7 @@ import typing from contextlib import contextmanager -import appdirs +import platformdirs import pytz # The sqlite3 is not available on Google App Engine so we handle the @@ -176,7 +176,7 @@ def _is_expired(value, timeout): def _get_default_cache_path(): - path = appdirs.user_cache_dir("zeep", False) + path = platformdirs.user_cache_dir("zeep", False) try: os.makedirs(path) except OSError as exc: