This repository is what's known as a monorepo. It contains multiple projects, each of which is a standalone library or command-line tool (or both). Individual projects are located in the projects/
directory.
Everything else in this repository is shared infrastructure, such as build scripts, integration tests, developer tools, and documentation.
Getting Started
git clone https://github.com/uoft-networking/tools uoft-tools
cd uoft-tools
./run
(this will install uv if you don't already have it, and create a python3.10 virtual environment in .venv/
with all the projects installed in "editable mode")To get the most out of your dev experience in this monorepo, consider the following optional steps you can take:
source .venv/bin/activate
to activate the virtual environment in your current shelldirenv allow .
, so that you don't have to manually activate the virtual environment every time you open a new shell.venv/bin/python
as python interpreter (this should be automatically done in VSCode)This repository is configured to support pytest autodiscovery. Any IDE which supports pytest should be able to run tests without any additional configuration.
You can also run tests from the command line using ./run test-all
or ./run test <project>
.
To install a project into your regular pipx installation, run pipx install --pip-args "--config-settings 'dependencies=local'" ./projects/<project>
.
To install a package globally on your machine, (ex. when installing onto a shared tool server), run ./run global-install <project>
./run new-project <project>
All projects in this repository are versioned together. There is a single version number which is shared by all projects. Version info is stored in git tags.
TODO: document project release process