Skip to content

Commit

Permalink
Replace the unmaintained dependency appdirs with platformdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
avalentino committed Mar 29, 2024
1 parent aae43d4 commit 677af34
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ The following people have made contributions to this project:
- [Ronald Scheirer](https://github.com/)
- [Xin Zhang (zxdawn)](https://github.com/zxdawn)
- [Rolf Helge Pfeiffer](https://github.com/HelgeCPH)
- [Antonio Valentino](https://github.com/avalentino)
2 changes: 1 addition & 1 deletion continuous_integration/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
- pytest
- pytest-cov
- responses
- appdirs
- platformdirs
- python-geotiepoints
- pip
- pip:
Expand Down
4 changes: 2 additions & 2 deletions doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ correction in the short wave spectral range.
Both these datasets downloads automagically from `zenodo.org`_ when needed.

On default these static data will reside in the platform specific standard
destination for storing user data, via the use of the appdirs_ package. On
destination for storing user data, via the use of the platformdirs_ package. On
Linux this will be under *~/.local/share/pyspectral*. See further down.


Expand Down Expand Up @@ -174,5 +174,5 @@ And then adjust the *pyspectral.yaml* so data downloading will not be attempted
.. _GCC: http://www.star.nesdis.noaa.gov/smcd/GCC/index.php
.. _instrument response data: http://www.star.nesdis.noaa.gov/smcd/GCC/instrInfo-srf.php
.. _github: http://github.com/pytroll/pyspectral
.. _appdirs: https://github.com/ActiveState/appdirs
.. _platformdirs: https://github.com/platformdirs/platformdirs
.. _zenodo.org: https://zenodo.org
2 changes: 1 addition & 1 deletion pyspectral/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from pathlib import Path

import yaml
from appdirs import AppDirs
from platformdirs import AppDirs

try:
from yaml import UnsafeLoader
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[bdist_rpm]
provides=pyspectral
requires=numpy h5py python-geotiepoints dask PyYAML python-requests python-appdirs
requires=numpy h5py python-geotiepoints dask PyYAML python-requests python-platformdirs
release=1

[bdist_wheel]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
long_description = ''

requires = ['docutils>=0.3', 'numpy', 'scipy', 'python-geotiepoints>=1.1.1',
'h5py>=2.5', 'requests', 'pyyaml', 'appdirs']
'h5py>=2.5', 'requests', 'pyyaml', 'platformdirs']

dask_extra = ['dask[array]']
test_requires = ['pyyaml', 'dask[array]', 'xlrd', 'pytest', 'xarray', 'responses']
Expand Down

0 comments on commit 677af34

Please sign in to comment.