diff --git a/conda-store-server/conda_store_server/__init__.py b/conda-store-server/conda_store_server/__init__.py index 5737a0e60..3d47b5931 100644 --- a/conda-store-server/conda_store_server/__init__.py +++ b/conda-store-server/conda_store_server/__init__.py @@ -1,11 +1,12 @@ import datetime import typing -from pathlib import Path + +import platformdirs __version__ = "2024.3.1" -CONDA_STORE_DIR = Path.home() / ".conda-store" +CONDA_STORE_DIR = platformdirs.user_data_path(appname="conda-store") class BuildKey: diff --git a/conda-store-server/environment-dev.yaml b/conda-store-server/environment-dev.yaml index b7dc836ad..10f543c64 100644 --- a/conda-store-server/environment-dev.yaml +++ b/conda-store-server/environment-dev.yaml @@ -33,6 +33,7 @@ dependencies: - jinja2 - python-multipart - alembic + - platformdirs # artifact storage - minio # installer diff --git a/conda-store-server/environment-macos-dev.yaml b/conda-store-server/environment-macos-dev.yaml index 3cab8855d..d475ab25f 100644 --- a/conda-store-server/environment-macos-dev.yaml +++ b/conda-store-server/environment-macos-dev.yaml @@ -33,6 +33,7 @@ dependencies: - jinja2 - python-multipart - alembic + - platformdirs # artifact storage - minio # installer diff --git a/conda-store-server/environment-windows-dev.yaml b/conda-store-server/environment-windows-dev.yaml index 3cab8855d..d475ab25f 100644 --- a/conda-store-server/environment-windows-dev.yaml +++ b/conda-store-server/environment-windows-dev.yaml @@ -33,6 +33,7 @@ dependencies: - jinja2 - python-multipart - alembic + - platformdirs # artifact storage - minio # installer diff --git a/conda-store-server/environment.yaml b/conda-store-server/environment.yaml index f3b8e40f9..d78492aea 100644 --- a/conda-store-server/environment.yaml +++ b/conda-store-server/environment.yaml @@ -18,6 +18,7 @@ dependencies: - redis-py - sqlalchemy<=1.4.47 - alembic + - platformdirs - psycopg2 - pymysql - requests