mirror of
https://github.com/openharmony/developtools_integration_verification.git
synced 2026-07-22 07:05:30 -04:00
932a68b33e
- Add spdx_converter.py to convert license names to SPDX standard identifiers - Add generate_reference_data.py to generate reference_data.json from README.OpenSource files - Update data/spdx.json with latest SPDX license list (712 licenses) - Update test/reference_data.json with SPDX-standardized license identifiers - Add unit tests for SPDX converter (10 test methods, 28 subtests) - Add Python project configuration files (pyproject.toml, requirements.txt) Features: - Converts license variants like "MIT License" -> "MIT", "GPL-2.0" -> "GPL-2.0-only" - Handles WITH exception format (e.g., "Apache-2.0 WITH LLVM-exception") - Supports multiple license separators (;, /, ,, or, OR) - Validates all generated license identifiers against SPDX standard All license identifiers in reference_data.json are now valid SPDX standard. Signed-off-by: Jinguang Dong <dongjinguang@huawei.com>