-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
35 lines (25 loc) · 871 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
default: list-tasks
clean:
rm -rf dist/ tests/.pytest_cache/ node_modules/
find . -name '__pycache__' -delete -print -o -name '*.pyc' -delete -print
test:
poetry run pytest tests/tests.py
install: install-py install-js
release: release-py release-js
install-py:
poetry --version || python3 -m pip install poetry
poetry install
install-js:
npm install
release-py:
poetry build
poetry run twine upload --verbose --repository=crosshash dist/*
release-js:
npm publish
# Default task to get a list of tasks when `make' is run without args.
# <https://stackoverflow.com/questions/4219255>
list-tasks:
@echo Available tasks:
@echo ----------------
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
@echo