Skip to content

Commit

Permalink
Dependencies: Switch from appdirs to platformdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Apr 9, 2023
1 parent 5203e9a commit fad1135
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=================
Expand Down
4 changes: 2 additions & 2 deletions phenodata/ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
import arrow
import shutil
import appdirs
import platformdirs
import logging
import requests_ftp
import dogpile.cache
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fad1135

Please sign in to comment.