[rocprofiler-compute] Pin dependencies and fix test configuration paths, remove setuptools dependency (#2821)
* Pin dependencies and fix test paths for package layout - Pin all dependencies in requirements.txt to specific versions to ensure stability and reproducibility. - Update test_autogen_config.py to correctly resolve source paths for both development and installed package layouts. - Validated compatibility with Python 3.9, 3.10, 3.11, and 3.12. * Remove setuptools dependency since we dont support pip install and instead use cmake
This commit is contained in:
@@ -30,8 +30,15 @@ from pathlib import Path
|
||||
import pytest
|
||||
|
||||
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
||||
HASH_DB = PROJECT_ROOT / "src/utils/.config_hashes.json"
|
||||
ANALYSIS_CONFIGS = PROJECT_ROOT / "src/rocprof_compute_soc/analysis_configs"
|
||||
|
||||
# In development, source is under src/. In installed package, it is at the root.
|
||||
if (PROJECT_ROOT / "src").exists():
|
||||
SRC_ROOT = PROJECT_ROOT / "src"
|
||||
else:
|
||||
SRC_ROOT = PROJECT_ROOT
|
||||
|
||||
HASH_DB = SRC_ROOT / "utils/.config_hashes.json"
|
||||
ANALYSIS_CONFIGS = SRC_ROOT / "rocprof_compute_soc/analysis_configs"
|
||||
|
||||
|
||||
def md5(path: Path) -> str:
|
||||
|
||||
Reference in New Issue
Block a user