From 6f9488f281c90c4c0398990f9f23790ab56abeb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana?= Date: Sat, 28 Jan 2023 18:51:55 +0100 Subject: [PATCH] Add version command to Makefile --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 69c1059..4db3936 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,12 @@ doc-clean: ## Update documentation audit: ## Audit pip pip-audit +version: + @echo "Current Python version .....: $(shell python --version)" + @echo "Current Bayesclass version .: $(shell python -c "from bayesclass import _version; print(_version.__version__)")" + @echo "Installed Bayesclass version: $(shell pip show bayesclass | grep Version | cut -d' ' -f2)" + @echo "Installed pgmpy version ....: $(shell pip show pgmpy | grep Version | cut -d' ' -f2)" + help: ## Show help message @IFS=$$'\n' ; \ help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/:/'`); \