-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
72 lines (54 loc) · 1.49 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
.PHONY: lint \
test-analysis test-data test-markov test \
clean clean-pyc \
install-dev install \
dist
lint: install-dev
python -m black pybbda/ tests/ examples/
python -m flake8 pybbda
python -m flake8 tests
python -m flake8 examples
test-analysis: install-dev
python -m pytest tests/analysis/
test-data: install-dev
python -m pytest tests/data/
test-markov: install
python -m pybbda.analysis.run_expectancy.markov.cli \
-b 0 0.1 0.1 0.1 0.1 0.1 \
-i 1 henderi01_1982
PYBBDA_MAX_OUTS=27 python -m pybbda.analysis.run_expectancy.markov.cli \
-b 0 0.08 0.15 0.05 0.005 0.03 \
-i 1 henderi01_1982 \
-i 4 ruthba01_1927
coverage: install-dev
python -m pytest --cov=pybbda tests/
test: install-dev
python -m pytest tests/
clean-docs:
cd docs && make clean
rm -fr docs/auto_examples
clean-data:
rm -rf pybbda/data/assets/*
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*__pycache__' -exec rm -fr {} +
clean: clean-pyc
rm -fr pybbda.egg-info
rm -fr build
rm -fr dist
rm -fr .pytest_cache
dist: clean
python setup.py bdist_wheel
python setup.py sdist
sdist: clean
python setup.py sdist
docs: install-dev
cd docs && make html
install-data:
PYBBDA_LOG_LEVEL=DEBUG python -m pybbda.data.tools.update --data-source all --min-year 2018 --max-year 2019 \
--num-threads 7 --min-date 2019-05-01 --max-date 2019-05-15 --overwrite --make-dirs
install-dev:
pip install --quiet -r requirements-dev.txt
install: install-dev
pip install .