-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (33 loc) · 946 Bytes
/
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
SHELL := /bin/bash
PYTHON = python3
TEST_PATH = ./tests/
FLAKE8_EXCLUDE = venv,.venv,.eggs,.tox,.git,__pycache__,*.pyc
clean:
@find . -name '*.pyc' -exec rm --force {} +
@find . -name '*.pyo' -exec rm --force {} +
@find . -name '*~' -exec rm --force {} +
@rm -rf build
@rm -rf dist
@rm -rf *.egg-info
@rm -f *.sqlite
@rm -rf .cache
init:
@pip install --upgrade pip
@pip install -e .
init-dev: init
@pip install -e .[dev]
docu:
@${PYTHON} setup.py build_sphinx
test:
@${PYTHON} -m pytest ${TEST_PATH}
check:
@${PYTHON} -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude ${FLAKE8_EXCLUDE}
@${PYTHON} -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=132 --statistics --exclude ${FLAKE8_EXCLUDE}
build: init-dev check test docu
@${PYTHON} -m build
install:
@${PYTHON} setup.py install
docker-build:
@docker build . -t xmlasdict
release: build
@${PYTHON} setup.py release