2. Setting up the Development Environment#
These are the instructions you would follow to do modifications to the Maeser package itself.
2.1. Cloning the Repository#
Open your terminal or command prompt.
Navigate to the directory where you want to clone the repository.
Run the following command to clone the repository:
git clone https://github.com/byu-cpe/Maeser
2.2. Create a Virtual Environment#
It is highly recommended that you use a python virtual environment for your system. Instructions are given in the User Setup Guide for doing so.
2.3. Installing Dependencies#
Change to the cloned directory:
cd Maeser
Install the project in editable mode using pip:
pip install -e .
This will install Maeser in a way that allows you to make changes to the source code and have them reflected immediately.
Install poetry itself if you haven’t previously done so. If you are working in a virtual environment you can simply do:
pip install poetry
Then, install the project dependencies:
poetry install
2.4. Running Tests#
After installing the dependencies, you can run the test suite to ensure everything is working correctly:
pytest tests
2.5. Building Documentation#
If you’re working on the project documentation, you can build it locally using Sphinx:
cd sphinx-docs
make html
This will generate the HTML documentation in the sphinx-docs/_build/html
directory.
2.6. Additional Steps#
Set up any required environment variables or configuration files.
Refer to the project’s README or contributing guidelines for more information on development workflows, coding standards, and other relevant details.