-
Notifications
You must be signed in to change notification settings - Fork 178
/
Makefile
44 lines (33 loc) · 906 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
44
refresh: clean build install build_dist release
build:
python setup.py build
install:
python setup.py install
build_dist:
make clean
python setup.py sdist bdist_wheel
pip install dist/*.whl
release:
python -m twine upload dist/*
# lint:
# flake8 pyiqa/ --count --max-line-length=127 --ignore=W293,W503,W504,E126,E741
# test calibration and forward inference
test:
pytest tests/ -m calibration -v
pytest tests/test_metric_general.py::test_forward -v
pytest tests/test_metric_general.py::test_cpu_gpu_consistency -v
test_cs:
pytest tests/test_metric_general.py::test_cpu_gpu_consistency -v
test_grad:
pytest tests/test_metric_general.py::test_gradient_backward -v
test_dataset:
pytest tests/test_datasets_general.py -v
test_all:
pytest tests/ -v
clean:
rm -rf __pycache__
rm -rf pyiqa/__pycache__
rm -r pyiqa.egg-info
rm -rf build
rm -rf dist
pip uninstall -y pyiqa || true