You will need an environment file. See: .env.example
. Contact current maintainers for current variable settings.
- Automated (mac only):
- Run
setup/mac.sh
in parent folder - Follow lima setup steps
- then add run
eval "$(pyenv init -)"
in your current shell and add it to yourrc
file - then run
poetry_setup.sh
- then activate the virtual environment with
poetry shell
- then run:
- python -m pip install gdal==$(gdal-config --version)
- Follow vsc setup steps
- Run
- Manual (linux): See manual setup.
Note: you may want to alias
python3
aspython
in your profile
Assumes:
- Installation section above is completed
app/.env
is correctly configured
Run API with:
make run
Code must pass all unit tests.
make test
Or run continuously with pytest-testmon and pytest-watch (ptw --runner "pytest --testmon"
or ptw -- --testmon
):
make test-watch
Poetry can't install rpy2
Error: ld: library not found for -lpcre2-8
pcre2 should be installed after running mac.sh. This can be verified by running
brew list pcre2
This issue can be resolved by running the following command before poetry_setup.sh
: (adjust path as necessary)
export LIBRARY_PATH="/opt/homebrew/Cellar/pcre2/10.42/lib/:$LIBRARY_PATH"