-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
95 lines (67 loc) · 1.74 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
clean: clean-pyc clean-ipynb clean-catboost clean-build clean-test
clean-progress_board:
find . -name '*.csv~' -exec rm -f {} +
find . -name '*.lock~' -exec rm -f {} +
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-ipynb:
find . -name '*.ipynb_checkpoints' -exec rm -fr {} +
clean-catboost:
find . -name 'catboost_info' -exec rm -fr {} +
clean-build:
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
clean-test:
cd tests/; \
rm -f .coverage; \
rm -fr htmlcov/
test-search_space:
cd tests/; \
i=0; while [ "$$i" -le 100 ]; do \
i=$$((i + 1));\
pytest -q test_search_spaces.py; \
done
test-pytest:
python -m pytest --durations=10 -x -p no:warnings tests/; \
tox-test:
tox -- -x -p no:warnings -rfEX tests/ \
test-timings:
cd tests/_local_test_timings; \
pytest *.py -x -p no:warnings
test-local: test-timings
test: test-pytest test-local
test-examples:
cd tests; \
python _test_examples.py
test-extensive: test test-local test-examples
push: test
git push
release: reinstall test-extensive
python -m twine upload dist/*
dist:
python setup.py sdist
python setup.py bdist_wheel
ls -l dist
build:
python -m build
install: build
pip install dist/*.whl
uninstall:
pip uninstall -y hyperactive
rm -fr build dist *.egg-info
install-test-requirements:
python -m pip install .[test]
install-build-requirements:
python -m pip install .[build]
install-all-extras:
python -m pip install .[all_extras]
install-editable:
pip install -e .
reinstall: uninstall install
reinstall-editable: uninstall install-editable