From fad113597f2498f80a8fef512e08862671e3da3b Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 10 Apr 2023 01:34:20 +0200 Subject: [PATCH] Dependencies: Switch from `appdirs` to `platformdirs` --- CHANGES.rst | 1 + phenodata/ftp.py | 4 ++-- setup.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index e55f66c..7396fa9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,7 @@ development - Improve documentation - CI: Add GHA configuration to invoke software tests - CI/Tests: Fix installation on Python 3.7 to 3.9 +- Dependencies: Switch from ``appdirs`` to ``platformdirs`` 2020-12-29 0.11.0 ================= diff --git a/phenodata/ftp.py b/phenodata/ftp.py index d8119e7..fe14d3c 100644 --- a/phenodata/ftp.py +++ b/phenodata/ftp.py @@ -6,7 +6,7 @@ import sys import arrow import shutil -import appdirs +import platformdirs import logging import requests_ftp import dogpile.cache @@ -20,7 +20,7 @@ class CacheManager(object): def __init__(self): # Path to cache directory, system agnostic - self.cache_path = os.path.join(appdirs.user_cache_dir(appname='phenodata', appauthor=False), 'dwd-ftp') + self.cache_path = os.path.join(platformdirs.user_cache_dir(appname='phenodata', appauthor=False), 'dwd-ftp') if sys.version_info.major >= 3: self.cache_path = os.path.join(self.cache_path, 'py{}'.format(sys.version_info.major)) if not os.path.exists(self.cache_path): diff --git a/setup.py b/setup.py index eaf41d3..fcf14a4 100644 --- a/setup.py +++ b/setup.py @@ -6,13 +6,13 @@ CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = [ - 'appdirs>=1.4.3,<2', 'arrow>=0.12.1,<0.18', # Verified to work on 0.17.0. 'attrs>=17.4.0', 'docopt>=0.6.2', 'dogpile.cache>=0.6.5,<1', # Verified to work on 1.1.1. 'future', 'pandas>=0.23.4,<1.3', # Verified to work on 1.2.0. + 'platformdirs<4', 'requests>=2.18.4,<3', 'requests-ftp>=0.3.1,<4', # Verified to work on 0.3.1. 'tabulate>=0.8.2,<0.9', # Verified to work on 0.8.7.