-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
50 lines (35 loc) · 1.43 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
.PHONY: docs tests release
# ================ #
# USEFUL TARGETS #
# ================ #
install:
pip3 install --user -e .
docs:
cd docs && make clean && make html && python3 -m http.server
tests:
pytest
release:
rm -f dist/*
python3 setup.py sdist bdist_wheel
twine upload dist/*
# ================ #
# DEV TARGETS #
# ================ #
install-dev: install
pip3 install --user -r requirements-dev.txt
format:
yapf -ipr --verbose pygclib/
replay:
pygclib replay --task pygclib/tests/test_data/tasks/pwca_brazil_2019_7.xctsk --flights pygclib/tests/test_data/tracks/pwca_brazil_2019_7_few_tracks --output dev_files/replay.pkl dev_files/replay.json
race:
pygclib race --task pygclib/tests/test_data/tasks/pwca_brazil_2019_7.xctsk --flights pygclib/tests/test_data/tracks/pwca_brazil_2019_7_all_tracks --output dev_files/race.pkl
xc:
pygclib xc --flight pygclib/tests/test_data/tracks/xc_col_agnel.igc --airspace pygclib/tests/test_data/airspace/france_airspace.txt --output dev_files/xc_flight.json
convert:
pygclib convert --from_format aixm --to_format openair --input_file dev_files/airspace_aixm.xml --output_file dev_files/airspace_openair.txt
watch:
pygclib watch --path dev_files/race.pkl --pilot all --output dev_files/watchxav.json
optimize:
pygclib optimize --task pygclib/tests/test_data/tasks/pwca_brazil_2019_7.xctsk --output dev_files/optimized.json
crawl:
pygclib crawl --provider PWCA --year 2015 --output -