-
Notifications
You must be signed in to change notification settings - Fork 2
Migrating your development environment
Every once in a while we upgrade Ra2ce's python version. We do this to guarantee the solution's security and maintainability, however it does have an effect in how our development environment is set up. In this page we will try to help contributors to move forward with their developments.
Important! If the following steps do not work for you please make sure to contact with any of the project maintainers so that we can help you migrate your development environment as well as to update this document.
If you are developing via docker containers then you only need to pull the latest development container from Deltares' Harbor:
docker pull containers.deltares.nl/gfs-dev/ra2ce_dev:latest
This environment already contains the latest python version we support as well as the related required conda dependencies. You can now proceed with the regular poetry installation:
poetry install
Most contributors develop in Ra2ce with a conda environment. If this is your case then you will have to follow the next steps:
- Remove the current environment, to avoid conflicts or not having the required dependencies (as the requested python version) we suggest to completely remove your environment. Aside from manually deleting the directory where the environment is located, you can do this via command line as follows:
- Check your environments:
conda env list
. - With a prefix:
conda env remove -p {path of your environment prefix}
. - (Or) With a name:
conda env remove -n {name of your environment}
.
- Check your environments:
- Ensure your base installation of conda has the latest python packages.
conda activate base conda update -n base python -c conda-forge
conda update -n base
will Update thebase
environment in your machine with the latest version ofpython
via the-c conda-forge
channel. - Install ra2ce development environment in your local checkout.
cd {your ra2ce checkout dir} conda env create -f .config/environment.yml -p .env
- Install ra2ce package.
poetry install