From e973bfb74557e5fd3a8e3be57bd187be9bc4139f Mon Sep 17 00:00:00 2001 From: mdtanker Date: Thu, 21 Nov 2024 10:25:33 -0500 Subject: [PATCH] chore: update makefile install commands --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3c5d04e..c4d7f0f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ PROJECT=invert4geom -STYLE_CHECK_FILES=. +VERSION := $(shell grep -m 1 'version =' pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3) +print-% : ; @echo $* = $($*) #### #### # install commands @@ -17,10 +18,10 @@ remove: mamba remove --name $(PROJECT) --all pip_install: - pip install $(PROJECT)[all] + pip install $(PROJECT)[all]==$(VERSION) conda_install: - mamba create --name $(PROJECT) --yes --force --channel conda-forge $(PROJECT) pytest pytest-cov ipykernel + mamba create --name $(PROJECT) --yes --force --channel conda-forge $(PROJECT)=$(VERSION) pytest pytest-cov ipykernel #### ####