forked from hyperactive-project/Hyperactive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
78 lines (58 loc) · 1.52 KB
/
Makefile
File metadata and controls
78 lines (58 loc) · 1.52 KB
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
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_:
python -m pytest -x -p no:warnings -rfEX tests/; \
python ./tests/test_dashboards/_test_progress_board.py \
test: clean-progress_board test_ clean-progress_board
test-local:
cd tests/local; \
pytest _test_packages.py -p no:warnings; \
pytest _test_performance.py -p no:warnings
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
install:
pip install .
develop:
pip install -e .
reinstall:
pip uninstall -y hyperactive
rm -fr build dist hyperactive.egg-info
python setup.py bdist_wheel
pip install dist/*