Installation for Development¶
To set up the project for development, clone the repository and install it along with the dev extra dependencies:
git clone https://github.com/gambitproject/draw_tree
cd draw_tree
pip install -e ".[dev]"Testing¶
The project includes a comprehensive test suite using pytest.
To run all tests:
pytest tests/ -vTo run tests with coverage reporting:
pytest tests/ --cov=draw_tree --cov-report=htmlReleases¶
To release a new version of draw_tree:
Update the version number in
pyproject.toml.Update the version number in
src/draw_tree/__init__.py.Create a pull request targeting the
mainbranch with the changes.Once the pull request is approved and merged, update your local
mainbranch:git checkout main git pull origin mainCreate and push a new tag corresponding to the version:
git tag vX.X.X git push origin tag vX.X.XFinally, create a new Release on GitHub based on the pushed tag.