This document outlines the steps required to build and prepare the uxsimpp package for distribution.
The following software must be installed:
- Python 3.9 or later
- C++ compiler
- Windows: Visual Studio Build Tools
- Linux: GCC
- macOS: Clang
- CMake
# Create a virtual environment
python -m venv venv
# Activate the virtual environment
# Windows
venv\Scripts\activate
# Linux/macOS
source venv/bin/activate
pip install scikit-build-core pybind11 cmake ninja pytest build
Verify that the package functions correctly by executing the following test:
pytest tests/test_verification.py -v
python -m build
Executing this command will generate the following files in the dist directory:
uxsimpp-0.1.0.tar.gz- Source distributionuxsimpp-0.1.0-cp39-cp39-win_amd64.whl- Wheel package (file name varies by platform)
pip uninstall -y uxsimpp
pip install dist/uxsimpp-0.1.0*.whl
pytest tests/test_verification.py -v
pip install twine
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*