-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
63 lines (38 loc) · 1.13 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
all: bump clean sdist test upload
NAME:=$(shell poetry version -n | awk '{print $1}')
VERSION:=$(shell poetry version -n | awk '{print $2}')
clean:
rm -vrf *.egg-info dist build
bump:
poetry build
install:
poetry install
upload: clean sdist
poetry publish
.venv/bin/python: install
.venv: .venv/bin/python
uml:
docker run --rm -v $(shell pwd):/mnt -w /mnt hrektts/plantuml \
java -jar /usr/local/share/java/plantuml.jar \
-tsvg -o docs/source/_static 'resources/uml/*/**.puml'
sdist: bump uml
rm -fr dist
python3 setup.py sdist bdist_wheel
test: .venv
poetry run pytest -vv
develop: clean
poetry install
poetry run pre-commit install
mypy:
poetry run mypy
reformat:
poetry run gray aiomisc*
translate: .venv
make -C docs/ gettext
sphinx-intl update -p docs/build/gettext -l ru -d docs/source/locale
build-docs: translate
make -C docs/ -e BUILDDIR="build/en" html
make -C docs/ -e SPHINXOPTS="-D language='ru'" -e BUILDDIR="build/ru" html
docs: build-docs
python -m webbrowser -t "file://$(shell pwd)/docs/build/en/html/index.html"
python -m webbrowser -t "file://$(shell pwd)/docs/build/ru/html/index.html"