File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
44PYTHON ?= python
55
@@ -24,9 +24,24 @@ test-cov: all
2424install : all
2525 pip install .
2626
27+ compile-catalog :
28+ pybabel compile -d microsetta_interface/translations --use-fuzzy
29+
2730dev : 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+
3045clean : distclean
3146
3247distclean : ;
You can’t perform that action at this time.
0 commit comments