First, set up the Python environment using pyenv:
pyenv install 3.11.5
pyenv virtualenv 3.11.5 py-biolm
pyenv activate py-biolmThen, install the development dependencies:
pip install -r requirements_dev.txtFinally, run the Makefile to complete the setup:
make installThis installs the biolmai package itself in editable mode. This allows you to make changes to the package and see those changes reflected without needing to reinstall the package:
It runs the command: pip install -e .. The -e flag stands for "editable mode". This is a useful setup for development as it means any changes you make to the package code will be immediately available in your environment, without needing to reinstall the package each time you make a change.
Set the token in your shell to authenticate your requests to the BioLM API:
export BIOLMAI_TOKEN=<your_token>The token can be obtained from your BioLM account: Get your BioLM API token.
Run biolmai status to verify that the token is set correctly.
Use this command to run the automated tests:
RS=118 make testThe RS environment variable sets the seed for any random operations in the tests, ensuring consistent results.