-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
62 lines (37 loc) · 1.14 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
MAKEFLAGS += --always-make
all: build install test
clean-cover:
rm -rf cover .coverage
clean-tox: clean-cover
rm -rf .stestr .tox
clean: build-clean test-clean clean-tox
upgrade-xpip.build:
pip3 install -i https://pypi.org/simple --upgrade xpip.build
upgrade-xpip.upload:
pip3 install -i https://pypi.org/simple --upgrade xpip.upload
upgrade-xpip: upgrade-xpip.build upgrade-xpip.upload
pip3 install -i https://pypi.org/simple --upgrade xpip.mirror
upload:
xpip-upload --config-file .pypirc dist/*
build-clean:
xpip-build --debug setup --clean
build: build-clean
xpip-build --debug setup --all
install:
pip3 install --force-reinstall --no-deps dist/*.whl
uninstall:
pip3 uninstall -y xarg-python
reinstall: uninstall install
prepare-test:
pip3 install --upgrade pylint flake8 pytest
pylint:
pylint $$(git ls-files xarg/*.py test/*.py example/*.py)
flake8:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
pytest:
pytest
pytest-clean:
rm -rf .pytest_cache
test: prepare-test pylint flake8 pytest
test-clean: pytest-clean