-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (38 loc) · 1 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
.PHONY: test build dev publish
LANGUAGES:=`find conjunto/locale/ -mindepth 1 -maxdepth 1 -type d -printf "--locale %f "`
PYTHON = $(VIRTUAL_ENV)/bin/python3
MANAGE = cd src && django-admin
dev:
$(PYTHON) -m pip install -e ".[dev]"
all: init locale staticfiles
production: localecompile staticfiles
localecompile:
$(MANAGE) compilemessages
setup:
$(PYTHON) -m pip install .
localegen:
# don't --keep-pot
$(MANAGE) makemessages --ignore "static/*" --ignore "medux/static/*" --ignore "build/*" $(LANGUAGES)
$(MANAGE) makemessages -d djangojs --ignore "static/*" --ignore "medux/static/*" --ignore "build/*" $(LANGUAGES)
staticfiles: jsi18n
$(MANAGE) collectstatic --noinput
jsi18n: # TODO
$(MANAGE) compilejsi18n
locale: localegen localecompile
test:
$(PYTHON) -m pytest
coverage:
coverage run -m pytest
#check:
# ruff check .
#
doc:
mkdocs build -d build/doc/
livedocs:
mkdocs serve
clean:
rm -rf dist/* build/*
build: clean
$(PYTHON) -m build
publish: build
$(PYTHON) -m twine upload dist/*