-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (31 loc) · 982 Bytes
/
Makefile
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 install-extras install-docs build local-pypi jupyterlite-dev jupyterlab-dev format test test-core clean
install:
poetry install
install-extras:
poetry install -E regular
install-docs:
poetry install -E docs
update:
poetry update
build:
poetry run python -m build
local-pypi: build
cp dist/* local-pypi/skillsnetwork/
poetry run python local-pypi/pypi-server.py --directory local-pypi
jupyterlite-dev:
poetry install
poetry run jupyter lite serve
jupyterlab-dev:
poetry install -E regular
poetry run jupyter lab --ServerApp.password='' --ServerApp.token=''
format:
poetry run black .
test:
poetry run pytest -rP tests/
test-core:
poetry run pytest tests/ -k 'test_skillsnetwork.py'
clean:
rm *.ipynb || echo "no notebooks to clean up"
rm dist/* || echo "no builds to clean up"
rm local-pypi/skillsnetwork/skillsnetwork* || echo "no local pypi files to clean up"
echo "done cleaning"