-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (33 loc) · 899 Bytes
/
Makefile
File metadata and controls
41 lines (33 loc) · 899 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
41
# https://python-poetry.org/docs/cli/#version
# major 1.3.0 2.0.0
# minor 2.1.4 2.2.0
# patch 4.1.1 4.1.2
bumprule="patch"
format:
poetry run black -l 120 neph/ test/
dependencies:
poetry install --all-extras --quiet --no-root --with dev
.PHONY: dist
dist:
mkdir -p dist
rm dist/* || true
poetry version $(bumprule)
poetry build -f wheel
git:
$(eval branch := $(shell git branch --show-current))
git add .
git commit -a -m "$(message)"
git push origin $(branch)
push: format dist git
dl_policies:
curl -fSsL "https://github.com/iann0036/iam-dataset/archive/refs/heads/master.zip" -o "neph/data/policies.zip"
.PHONY: test
test:
python -m unittest -v
.PHONY: autodocs
autodocs:
rm -r autodocs/ || true
rm autodocs/neph*.rst || true
sphinx-apidoc -o autodocs/ -d 3 --full neph/
cp sphinx_config.py autodocs/conf.py
PYTHONPATH=$PYTHONPATH:$(CURDIR) $(MAKE) -C autodocs/ html