Skip to content

Commit e973bfb

Browse files
committed
chore: update makefile install commands
1 parent a0ba8e6 commit e973bfb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PROJECT=invert4geom
2-
STYLE_CHECK_FILES=.
2+
VERSION := $(shell grep -m 1 'version =' pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)
33

4+
print-% : ; @echo $* = $($*)
45
####
56
####
67
# install commands
@@ -17,10 +18,10 @@ remove:
1718
mamba remove --name $(PROJECT) --all
1819

1920
pip_install:
20-
pip install $(PROJECT)[all]
21+
pip install $(PROJECT)[all]==$(VERSION)
2122

2223
conda_install:
23-
mamba create --name $(PROJECT) --yes --force --channel conda-forge $(PROJECT) pytest pytest-cov ipykernel
24+
mamba create --name $(PROJECT) --yes --force --channel conda-forge $(PROJECT)=$(VERSION) pytest pytest-cov ipykernel
2425

2526
####
2627
####

0 commit comments

Comments
 (0)