-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.cmd
More file actions
106 lines (84 loc) · 3.19 KB
/
make.cmd
File metadata and controls
106 lines (84 loc) · 3.19 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: LICENSING :
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Copyright 2020 Esri
::
:: Licensed under the Apache License, Version 2.0 (the "License"); You
:: may not use this file except in compliance with the License. You may
:: obtain a copy of the License at
::
:: http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
:: implied. See the License for the specific language governing
:: permissions and limitations under the License.
::
:: A copy of the license is available in the repository's
:: LICENSE file.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: VARIABLES :
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
SETLOCAL
SET PROJECT_DIR=%cd%
SET PROJECT_NAME=overture-to-arcgis
SET SUPPORT_LIBRARY = overture_to_arcgis
SET CONDA_DIR="%~dp0env"
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: COMMANDS :
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jump to command
GOTO %1
:: Perform data preprocessing steps contained in the make_data.py script.
:data
CALL conda run -p %CONDA_DIR% python scripts/make_data.py
GOTO end
:: Make documentation using MkDocs!
:docs
CALL conda run -p %CONDA_DIR% mkdocs build -f ./docsrc/mkdocs.yml
GOTO end
:: MkDocs live documentation server
:docserve
CALL conda run -p %CONDA_DIR% mkdocs serve -f ./docsrc/mkdocs.yml
GOTO end
:: Build the local environment from the environment file
:env
:: Create new environment from environment file
CALL conda create -p %CONDA_DIR% --clone "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3"
GOTO add_dependencies
:: Add python dependencies from environment.yml to the project environment
:add_dependencies
:: Add more fun stuff from environment file
CALL conda env update -p %CONDA_DIR% -f environment.yml
:: Install the local package in development (experimental) mode
CALL conda run -p %CONDA_DIR% python -m pip install -e .
GOTO end
:: Start Jupyter Label
:jupyter
CALL conda run -p %CONDA_DIR% python -m jupyterlab --ip=0.0.0.0 --allow-root --NotebookApp.token=""
GOTO end
:: Make *.pyt zipped archive with requirements
:pytzip
CALL conda run -p %CONDA_DIR% python -m scripts/make_pyt_archive.py
GOTO end
:: Make the package for uploading
:wheel
:: Build the pip package
CALL conda run -p %CONDA_DIR% python -m build --wheel
GOTO end
:: Run all tests in module
:test
CALL conda run -p %CONDA_DIR% pytest "%~dp0testing"
GOTO end
:: black formatting
:black
CALL conda run -p %CONDA_dIR% black src/ --verbose
GOTO end
:lint
GOTO black
:linter
GOTO black
:end
EXIT /B