Installation Manual | itree-support-tools¶
GitHub Repository: itree-support-tools
Installation¶
The code is build in an ArcGIS Pro 3.1.0. conda environment with the spatial analyst license enabled.
Clone the repository.
Open Project structure to view the structure of the project.
Set up your Python Environment:
a. Create a new conda environment using the
environment.yml
file or clone the arcgispro-py3 environment from your ArcGIS Pro installation and install the required packages listed in therequirements.txt
file.cd path/to/project/folder conda env create -f environment.yml conda activate project-name
b. (Optional) Install linters using pipx
# install linters using pipx make install-global # test linters make codestyle
note: As
pre-commit
unfortunately often gives acces-denied errors on Windows OS, I would recommend to runmake codestyle
command before you commit your changes. This command runs black, isort and ruff on all files using the configuration specified in the pyproject.toml file.c. Install as a local package
pip install . pip install -e . # for development
installs project packages in development mode
creates a folder package-name.egg-info
Configuration¶
Copy template.env to $user/.env and fill in the variables. ENSURE THAT YOU DO NOT COMMIT .ENV TO THE REPOSITORY
Check that your data is located in the correct folders, look at the Project structure and the Catalog for more details.
Define your municipality in the parameters file.
Run
config.py
in the conda env to test your project config.