-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmake.bat
55 lines (47 loc) · 881 Bytes
/
make.bat
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
@echo off
setlocal enabledelayedexpansion
IF "%1%" == "docs" (
cd docsrc/ && make github
ECHO "Docs updated!"
GOTO end
)
IF "%1" == "test" (
pytest tests/
ECHO "Tests completed!"
GOTO end
)
IF "%1" == "plots" (
cd src/visions/visualisation/
python plot_circular_packing.py
python plot_summary.py
python plot_typesets.py
ECHO "Plots completed!"
GOTO end
)
IF "%1" == "pypi_package" (
make install
check-manifest
python setup.py sdist bdist_wheel
twine check dist/*
twine upload --skip-existing dist/*
ECHO "PyPi package completed"
GOTO end
)
IF "%1" == "lint" (
pre-commit run --all-files
GOTO end
)
IF "%1" == "install" (
pip install -e .
GOTO end
)
IF "%1%" == "all" (
make lint
make install
make plots
make docs
make test
GOTO end
)
ECHO "No command matched"
:end