- Conda install
pyuit
.
conda install -c erdc/label/dev -c conda-forge pyuit
-
Install the extension.
cd django-uit_plus_job python pip install -e .
-
Register a new client on https://www.uitplus.hpc.mil. Set
Return URL
tohttp(s)://<yourtethysportal>/oauth2/complete/UITPlus/
.
Note the generated client id and client secret to add to the Tethys configuration file.
- Add the following to the
portal_config.yml
file:
INSTALLED_APPS:
- uit_plus_job
AUTHENTICATION_BACKENDS:
- uit_plus_job.oauth2.UitPlusOAuth2
OAUTH_CONFIGS:
SOCIAL_AUTH_UITPLUS_KEY: <client-id>
SOCIAL_AUTH_UITPLUS_SECRET: <client-secret>
-
Run migrations:
tethys db migrate
. test.sh <path_to_tethys_manage.py>
CONDA BUILD
conda build -c erdc -c conda-forge conda.recipe