forked from SandAI-org/MagiAttention
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (32 loc) · 680 Bytes
/
makefile
File metadata and controls
40 lines (32 loc) · 680 Bytes
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
.PHONY: refresh build install build_dist json release test clean
refresh: clean build install
build:
python -m build --wheel
install:
pip install .
build_dist:
make clean
python -m build --wheel
pip install dist/*.whl
make test
release:
python -m twine upload dist/*
test:
pytest tests/
coverage:
rm -f .coverage
rm -f .coverage.*
coverage run -m pytest tests/
coverage combine
coverage report
coverage html
clean:
rm -rf __pycache__
rm -rf tests/__pycache__
rm -rf magi_attention/__pycache__
rm -rf magi_attention/version.py
rm -rf build
rm -rf dist
rm -rf magi_attention.egg-info
rm -rf src/magi_attention.egg-info
pip uninstall -y magi_attention