Skip to content

Commit

Permalink
Add make targets for mike
Browse files Browse the repository at this point in the history
  • Loading branch information
analog-cbarber committed Sep 4, 2023
1 parent c1ddd30 commit 3de9992
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ else
endif
endif

VERSION_FILE := src/whl2conda/VERSION
VERSION := $(file < $(VERSION_FILE))

-include custom.mk

# Whether to run targets in current env or explicitly in $(DEV_ENV)
Expand Down Expand Up @@ -59,13 +62,12 @@ help:
DEV_INSTALL := $(CONDA_RUN) pip install -e . --no-deps --no-build-isolation

createdev:
conda env create -f environment.yml -n $(DEV_ENV) --yes
$(DEV_INSTALL)

conda env create -f environment.yml -n $(DEV_ENV)
$(MAKE) dev-install

updatedev:
conda env update -f environment.yml -n $(DEV_ENV)
$(DEV_INSTALL)
$(MAKE) dev-install

dev-install:
$(DEV_INSTALL)
Expand Down Expand Up @@ -124,6 +126,13 @@ serve-doc: $(CLI_DOCS)
open-doc: doc/whl2conda-cli.md
$(OPEN) site/index.html

mike-build:
$(CONDA_RUN) mike deploy -u $(VERSION) latest
$(CONDA_RUN) mike set-default latest

mike-push:
git push origin gh-pages

#
# Distribution targets
#
Expand Down

0 comments on commit 3de9992

Please sign in to comment.