forked from up42/up42-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (46 loc) · 1.51 KB
/
Makefile
File metadata and controls
57 lines (46 loc) · 1.51 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
SRC := .
env:
mkvirtualenv --python=$(which python3.8) up42-py
workon up42-py
install:
pip install up42-py
install[dev]:
pip install -r $(SRC)/requirements.txt
pip install -e .
pip install -r $(SRC)/requirements-dev.txt
pip install -r $(SRC)/requirements-viz.txt
pip install -r $(SRC)/requirements-docs.txt
unlink $(PWD)/docs/examples; ln -s $(PWD)/examples docs
test:
-rm -r .pytest_cache
black .
python -m pytest --pylint --pylint-rcfile=../../pylintrc --mypy --mypy-ignore-missing-imports --cov=up42/ --cov-report=xml:.coverage-reports/coverage.xml --durations=3
test[live]:
-rm -r .pytest_cache
black .
python -m pytest --pylint --pylint-rcfile=../../pylintrc --mypy --mypy-ignore-missing-imports --cov=up42/ --runlive --durations=5
e2e:
rm -rf project_20abe*/
python $(SRC)/tests/test_e2e_30sec.py
python $(SRC)/tests/test_e2e_catalog.py
rm -rf project_20abe*/
# Preview of mkdocs
serve:
ln -sfn $(PWD)/examples docs
ln -sfn $(PWD)/CHANGELOG.md docs
mkdocs serve
# Manual publication of mkdocs. Not required, docs build pipeline is automated via github actions on docs file change.
gh-pages:
ln -sfn $(PWD)/examples docs
ln -sfn $(PWD)/CHANGELOG.md docs
mkdocs gh-deploy -m "update gh-pages [ci skip]"
package:
python setup.py sdist bdist_wheel
twine check dist/*
upload:
twine upload --skip-existing dist/*
clean:
find . -name "__pycache__" -exec rm -rf {} +
find . -name ".mypy_cache" -exec rm -rf {} +
find . -name ".pytest_cache" -exec rm -rf {} +
find . -name ".coverage" -exec rm -f {} +