From d9ad52e118b42da13e66d13a9fedf90ed48f86e6 Mon Sep 17 00:00:00 2001 From: sanyhe Date: Sun, 5 Jan 2025 00:48:48 +0800 Subject: [PATCH] build: v0.7.0 --- geochemistrypi/cli.py | 2 +- pyproject.toml | 26 +++++++++++++------------- requirements/production.txt | 26 +++++++++++++------------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/geochemistrypi/cli.py b/geochemistrypi/cli.py index db48fdcf..a9cb63f0 100644 --- a/geochemistrypi/cli.py +++ b/geochemistrypi/cli.py @@ -78,7 +78,7 @@ def start_mlflow(): else: print(f"[bold green]The 'geopi_tracking' directory is found in the current working directory '{cur_working_dir}'.[bold green]") print("[bold green]Our software will use the 'geopi_tracking' directory in the current working directory to store the tracking data for mlflow.[bold green]") - MLFLOW_STORE_PATH = os.path.join("file:", geopi_tracking_dir) + MLFLOW_STORE_PATH = "file:///" + geopi_tracking_dir print("[bold green]Press [bold magenta]Ctrl + C[/bold magenta] to close mlflow server at any time.[bold green]") start_mlflow_command = f"mlflow ui --backend-store-uri {MLFLOW_STORE_PATH} " subprocess.run(start_mlflow_command, shell=True) diff --git a/pyproject.toml b/pyproject.toml index f46d55fc..2aca5833 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,13 +32,13 @@ dependencies = [ "typer==0.7.0", "ray==2.2.0", "ray[tune]", - "optuna", + "optuna==3.1.1", "pydantic<2.0.0", "scikit-learn==1.1.3", "seaborn==0.11.0", "multipledispatch==0.6.0", "statsmodels==0.13.2", - "scipy", + "scipy==1.10.1", "openpyxl==3.0.10", "pandas==1.5.2", "joblib==1.2.0", @@ -47,18 +47,18 @@ dependencies = [ "xgboost==1.6.2", # required to run XGBoost + FLAML and be compatible with M2 chip on Mac "threadpoolctl==3.1.0", # required to draw 3d plot for KMeans "matplotlib==3.5.2", # required to draw 3d plot for KMeans - "fastapi", # backend framework - "uvicorn", # required to run uvicorn - "python-multipart", # required to run uvicorn - "dash", # required to run dash - "sqlalchemy", # required to run sqlalchemy - "passlib", # required to run passlib + "fastapi==0.95.2", # backend framework + "uvicorn==0.22.0", # required to run uvicorn + "python-multipart==0.0.6", # required to run uvicorn + "dash==2.10.0", # required to run dash + "sqlalchemy==2.0.13", # required to run sqlalchemy + "passlib==1.7.4", # required to run passlib "python-jose[cryptography]", # required to run python-jose - "bcrypt", # required to run bcrypt - "python-dotenv", # required to run python-dotenv - "rich", # color print - "mlflow", # required to run mlflow - "imblearn", + "bcrypt==4.0.1", # required to run bcrypt + "python-dotenv==1.0.0", # required to run python-dotenv + "rich==13.3.5", # color print + "mlflow==2.4.1", # required to run mlflow + "imblearn==0.0", ] [project.optional-dependencies] diff --git a/requirements/production.txt b/requirements/production.txt index 72cfda68..20fdeb3b 100644 --- a/requirements/production.txt +++ b/requirements/production.txt @@ -1,13 +1,13 @@ typer==0.7.0 ray==2.2.0 ray[tune] -optuna +optuna==3.1.1 pydantic<2.0.0 scikit-learn==1.1.3 seaborn==0.11.0 multipledispatch==0.6.0 statsmodels==0.13.2 -scipy +scipy==1.10.1 openpyxl==3.0.10 pandas==1.5.2 joblib==1.2.0 @@ -16,15 +16,15 @@ numpy==1.23.5 xgboost==1.6.2 threadpoolctl==3.1.0 matplotlib==3.5.2 -fastapi -uvicorn -python-multipart -dash -sqlalchemy -passlib +fastapi==0.95.2 +uvicorn==0.22.0 +python-multipart==0.0.6 +dash==2.10.0 +sqlalchemy==2.0.13 +passlib==1.7.4 python-jose[cryptography] -bcrypt -python-dotenv -rich -mlflow -imblearn +bcrypt==4.0.1 +python-dotenv==1.0.0 +rich==13.3.5 +mlflow==2.4.1 +imblearn==0.0