forked from Titan-Systems/titan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (30 loc) · 803 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
44
.PHONY: install install-dev test integration style check clean build docs coverage
EDITION ?= standard or enterprise
install:
pip install -e .
install-dev:
pip install -e ".[dev]"
test:
python -m pytest
integration:
python -m pytest --snowflake -m "$(EDITION)"
style:
python -m black .
codespell .
typecheck:
mypy --exclude="titan/resources/.*" --exclude="titan/sql.py" --follow-imports=skip titan/
check: style typecheck test
clean:
rm -rf build dist *.egg-info
find . -name "__pycache__" -type d -exec rm -rf {} +
build:
mkdir -p dist
zip -vrX dist/titan-$(shell python setup.py -V).zip titan/
docs:
python tools/generate_resource_docs.py
coverage: clean
python tools/check_resource_coverage.py
package: clean
python -m build
submit: package
python -m twine upload dist/*