Skip to content

Commit 72da256

Browse files
committed
deploy and compile-catalog
1 parent e22adeb commit 72da256

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

Makefile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# shamelessly adapt https://github.com/qiime2/q2-emperor/blob/master/Makefile
2-
.PHONY: all lint test test-cov install dev clean distclean
2+
.PHONY: all lint test test-cov install dev clean distclean compile-catalog deploy
33

44
PYTHON ?= python
55

@@ -24,9 +24,24 @@ test-cov: all
2424
install: all
2525
pip install .
2626

27+
compile-catalog:
28+
pybabel compile -d microsetta_interface/translations --use-fuzzy
29+
2730
dev: all
2831
pip install -e .
2932

33+
ENV_NAME = microsetta-interface
34+
PYTHON_VERSION = 3.11
35+
36+
deploy:
37+
conda env remove -n $(ENV_NAME) --yes 2>/dev/null; \
38+
conda create --yes -n $(ENV_NAME) python=$(PYTHON_VERSION) setuptools=78 && \
39+
conda run -n $(ENV_NAME) conda install --yes -c conda-forge --file ci/conda_requirements.txt && \
40+
conda run -n $(ENV_NAME) pip install -r ci/pip_requirements.txt && \
41+
conda run -n $(ENV_NAME) conda install --yes -c conda-forge gunicorn && \
42+
if [ ! -d .git ]; then export SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0; fi && \
43+
conda run -n $(ENV_NAME) pip install -e . --no-deps
44+
3045
clean: distclean
3146

3247
distclean: ;

0 commit comments

Comments
 (0)