forked from gaogaotiantian/objprint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 647 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 647 Bytes
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
refresh: clean build install lint
build:
python setup.py build
install:
python setup.py install
build_dist:
make clean
python setup.py sdist bdist_wheel
pip install dist/*.whl
make test
release:
python -m twine upload dist/*
lint:
flake8 --exclude src/objprint/executing.py src/ tests/ --count --max-line-length=127 --ignore=W503
mypy src/ --exclude src/objprint/executing\.py --follow-imports=skip
test:
python -m unittest
clean:
rm -rf __pycache__
rm -rf tests/__pycache__
rm -rf src/objprint/__pycache__
rm -rf build
rm -rf dist
rm -rf objprint.egg-info
rm -rf src/objprint.egg-info
pip uninstall -y objprint || true