-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (59 loc) · 2.31 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
64
65
66
67
68
69
70
71
72
MAKEFLAGS += --always-make
all: build install test
clean: build-clean test-clean
build-clean:
rm -rf build
rm -rf dist
rm -rf *.egg-info
build-xpip.mirror:
python3 setup-mirror.py check sdist bdist_wheel --universal
build-xpip.upload:
python3 setup-upload.py check sdist bdist_wheel --universal
build-xpip.build:
python3 setup-build.py check sdist bdist_wheel --universal
build: build-clean build-xpip.mirror build-xpip.upload build-xpip.build
install-xpip.mirror:
pip3 install --force-reinstall --no-deps dist/xpip.mirror-*.whl
install-xpip.upload:
pip3 install --force-reinstall --no-deps dist/xpip.upload-*.whl
install-xpip.build:
pip3 install --force-reinstall --no-deps dist/xpip.build-*.whl
install: install-xpip.mirror install-xpip.upload install-xpip.build
uninstall-xpip.mirror:
pip3 uninstall -y xpip.mirror
uninstall-xpip.upload:
pip3 uninstall -y xpip.upload
uninstall-xpip.build:
pip3 uninstall -y xpip.build
uninstall: uninstall-xpip.mirror uninstall-xpip.upload uninstall-xpip.build
reinstall-xpip.mirror: uninstall-xpip.mirror install-xpip.mirror
reinstall-xpip.upload: uninstall-xpip.upload install-xpip.upload
reinstall-xpip.build: uninstall-xpip.build install-xpip.build
reinstall: reinstall-xpip.mirror reinstall-xpip.upload reinstall-xpip.build
upload-xpip.mirror:
python3 -m twine check dist/xpip.mirror-*
python3 -m twine upload --verbose --config-file .pypirc --repository xpip.mirror dist/xpip.mirror-*
upload-xpip.upload:
python3 -m twine check dist/xpip.upload-*
python3 -m twine upload --verbose --config-file .pypirc --repository xpip.upload dist/xpip.upload-*
upload-xpip.build:
python3 -m twine check dist/xpip.build-*
python3 -m twine upload --verbose --config-file .pypirc --repository xpip.build dist/xpip.build-*
upload: upload-xpip.mirror upload-xpip.upload upload-xpip.build
prepare-test:
pip3 install --upgrade pylint flake8 pytest
pylint:
pylint $$(git ls-files xpip_build/*.py)
pylint $$(git ls-files xpip_mirror/*.py)
pylint $$(git ls-files xpip_upload/*.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 xpip_build
pytest xpip_mirror
pytest xpip_upload
pytest-clean:
rm -rf .pytest_cache
test: prepare-test pylint flake8 pytest
test-clean: pytest-clean