Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.45 KB

README.md

File metadata and controls

61 lines (42 loc) · 1.45 KB

Getting Started

You will need an environment file. See: .env.example. Contact current maintainers for current variable settings.

Installing

  • 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 your rc 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
  • Manual (linux): See manual setup. Note: you may want to alias python3 as python in your profile

Running

Assumes:

  • Installation section above is completed
  • app/.env is correctly configured

Run API with:

make run

Testing

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

Troubleshooting

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"