Development Setup¶
This guide will help you set up your development environment for contributing to ESIHub.
Prerequisites¶
- Python 3.11 or higher
- poetry (Python package manager)
- Git
Setting Up Your Development Environment¶
-
Fork the ESIHub repository on GitHub.
-
Clone your fork locally:
git clone https://github.com/siege-green/esihub.git cd esihub
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
-
On macOS and Linux:
source venv/bin/activate
-
Install the development dependencies:
poetry install
Running Tests¶
To run the test suite:
pytest
Code Style¶
We use Black for code formatting and isort for import sorting. You can format your code by running:
black .
isort .
Building Documentation¶
To build the documentation locally:
cd docs
make html
The built documentation will be in the docs/_build/html
directory.
Setting Up ESI API Credentials¶
To run integration tests or use ESIHub for development, you'll need to set up ESI API credentials:
- Go to the EVE Developers Portal.
- Create a new application or use an existing one.
- Set the following environment variables with your credentials:
export ESI_CLIENT_ID=your_client_id export ESI_CLIENT_SECRET=your_client_secret export ESI_CALLBACK_URL=your_callback_url
Now you're all set to start developing with ESIHub!