-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 658 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 658 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
all: clean format sdist wheel
ls -lah dist
wheel:
pipx run build --wheel .
sdist:
pipx run build --sdist .
whl_file = $(shell ls dist/*.whl)
install: clean wheel
pip3 install "$(whl_file)[tests]" --user
format:
pre-commit run --all-files
linter:
ruff check --force-exclude
sphinx:
cp examples/*.ipynb docs/source/examples/
cp history.md docs/source/history.md
cp README.md docs/source/README.md
$(MAKE) -C docs clean html
rm -rf docs/source/examples/*.ipynb
rm -rf docs/source/history.md
rm -rf docs/source/README.md
clean:
rm -rf build
rm -rf *.egg-info
rm -rf dist
rm -rf faster_coco_eval/*.so
pip3 uninstall faster-coco-eval -y