python -m pip install git+https://github.com/MIPI-Alliance/private-disco-tool.git
py -m pip install git+https://github.com/MIPI-Alliance/private-disco-tool.git
-
Clone the repository and move into the project directory:
git clone https://github.com/MIPI-Alliance/disco-tool cd private-disco-tool
-
Create and activate a virtual environment (recommended):
Installing dependencies to a virtual environment avoids conflicts with the existing version of Python and Python libraries on your machine.
# linux python3 -m venv .venv source .venv/bin/activate
# Windows python -m venv .venv .venv\Scripts\Activate.ps1
-
Install dependencies:
pip install -r requirements.txt
From the root (private-disco-tool) move into the package folder and run the main file:
# linux
python3 src/disco/disco_aui_manager.py# Windows
python src\disco\disco_aui_manager.pyWhen debugging in an IDE such as VS Code, set src/disco/disco_aui_manager.py as the startup file.
The unit tests live in src\disco\test.py and use Python's unittest framework.
From the repository root (private-disco-tool), run the test file with:
# linux
python3 src/disco/test.py# Windows
python src\disco\test.pyThe test file will write the results to log_file.txt.
# Windows
pyinstaller --onefile --console --clean --collect-all wx --add-data=".\private-disco-tool\src\disco\images;images" .\private-disco-tool\src\disco\disco_aui_manager.pyThe build file will be created at private-disco-tool\dist. When releaseing the file, please zip the executable and use the following naming convention: DisCo_Tool_v1.x.x.zip.