This directory contains build and release automation scripts for the python-hyperway project.
Synchronizes the version number from src/hyperway/_version.py to sonar-project.properties.
Usage:
python scripts/update_version.pyWhat it does:
- Imports the current version from
hyperway.__version__ - Updates the
sonar.projectVersionline insonar-project.properties
Automated Usage: This script is automatically run by GitHub Actions during:
- Release builds (before building the package)
- SonarCloud analysis (before running analysis)
See Version Management Documentation for more details.
Generates code coverage reports for SonarQube/SonarCloud analysis.
Usage:
# Run all configured Python versions
./scripts/generate_coverage.sh
# Run specific Python version
./scripts/generate_coverage.sh py312What it does:
- Runs tests using
toxwith coverage enabled - Generates
coverage.xmlin the project root - Provides feedback on coverage report generation
- Verifies the coverage file was created successfully
Output:
coverage.xml- Code coverage report in Cobertura format
See SonarQube Documentation for more details.
Additional build and release automation tools will be added to this directory as needed.