-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 1.26 KB
/
Makefile
File metadata and controls
43 lines (34 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: install assets lite-build lite-dev lite-test run
VENV = ./venv
BIN = $(VENV)/bin
install:
python3 -m venv venv
${BIN}/pip install -U pip
${BIN}/pip install -e .
${BIN}/pip install -e .[services,hdf5,plugins,blosc2-plugins]
${BIN}/pip install -e .[clients]
${BIN}/pip install -e .[tests]
${BIN}/pip install pre-commit
assets:
rm caterva2/services/static/build/*
npm run build
git add caterva2/services/static/build/
lite-build:
rm .jupyterlite.doit.db caterva2/services/static/jupyterlite -rf
${BIN}/jupyter lite build --output-dir caterva2/services/static/jupyterlite
# Installs our jupyterlite fork from a local copy, for development purposes
# Before doing this you must run "make build" in our jupyterlite fork
lite-dev:
${BIN}/pip uninstall jupyterlite jupyterlite-core -y
${BIN}/pip install ../jupyterlite/dist/jupyterlite_core-*.whl
${BIN}/pip install ../jupyterlite/dist/jupyterlite-*.whl
$(MAKE) lite-build
# Installs our jupyterlite fork from github, useful to test before deployment
lite-test:
rm downloads -rf
gh run -R ironArray/jupyterlite download -n "caterva2 dist" --dir downloads
${BIN}/pip install --force-reinstall downloads/*.whl
$(MAKE) lite-build
# To run the server, for convenience
run:
${BIN}/python3 -m caterva2.services.server