From cc4f19f9b075552f4d9cdb1ae554134d6a7afe65 Mon Sep 17 00:00:00 2001 From: Wout Bittremieux Date: Tue, 16 Apr 2024 20:22:17 +0200 Subject: [PATCH 1/2] Replace appdirs by platformdirs Fixes #62. --- docs/src/install.md | 2 +- environment.yml | 2 +- setup.cfg | 2 +- spectrum_utils/proforma.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/src/install.md b/docs/src/install.md index 3829c84..a63f53e 100644 --- a/docs/src/install.md +++ b/docs/src/install.md @@ -18,13 +18,13 @@ spectrum_utils supports Python version 3.8 and above. spectrum_utils has the following third-party dependencies: -- [appdirs](https://github.com/ActiveState/appdirs) - [fastobo](https://fastobo.readthedocs.io/) - [Lark](https://lark-parser.readthedocs.io/) - [Matplotlib](https://matplotlib.org/) - [Numba](http://numba.pydata.org/) - [NumPy](https://www.numpy.org/) - [Pandas](https://pandas.pydata.org/) +- [platformdirs](https://github.com/platformdirs/platformdirs) - [Pyteomics](https://pyteomics.readthedocs.io/) - [Vega-Altair](https://altair-viz.github.io/) diff --git a/environment.yml b/environment.yml index 081bf14..98ee250 100644 --- a/environment.yml +++ b/environment.yml @@ -5,12 +5,12 @@ channels: - conda-forge dependencies: - altair - - appdirs - fastobo - lark>=1.0 - matplotlib - numba>=0.57 - numpy - pandas + - platformdirs - pyteomics>=4.5 - python>=3.8 diff --git a/setup.cfg b/setup.cfg index b1478ce..6186d4a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,12 +24,12 @@ packages = find: include_package_data = True python_requires = >=3.8 install_requires = - appdirs fastobo lark>=1.0 matplotlib>=3.5 numba>=0.57 numpy + platformdirs pyteomics>=4.5 [options.extras_require] diff --git a/spectrum_utils/proforma.py b/spectrum_utils/proforma.py index 5f4f8d2..234424c 100644 --- a/spectrum_utils/proforma.py +++ b/spectrum_utils/proforma.py @@ -24,7 +24,7 @@ ) from urllib.error import URLError -import appdirs +import platformdirs import fastobo import lark @@ -35,7 +35,7 @@ # Set to None to disable caching. -cache_dir = appdirs.user_cache_dir("spectrum_utils", False) +cache_dir = platformdirs.user_cache_dir("spectrum_utils", False) # noinspection PyArgumentList From 5d6dd83f0b8e11d741cbbe49e04101194bafd8b5 Mon Sep 17 00:00:00 2001 From: Wout Bittremieux Date: Tue, 16 Apr 2024 20:45:39 +0200 Subject: [PATCH 2/2] Fix linting GitHub Action --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index da40b8f..0757a94 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,8 +22,8 @@ jobs: - name: Lint with black uses: psf/black@stable - with: - options: "--check --diff --line-length 79" + with: + options: "--check --diff --line-length 79" - name: Check for debugging print statements run: |