Files
orisys-sdk/tools/downstream_sync_manifest.json
T
ykcheungab ceb06f5702 为基础示例接入按设备 ID 选择的力标定
让使用者从本地目录选标定并看见实际单位。短片回放及相关测试通过。
2026-10-05 14:02:40 +08:00

55 lines
2.4 KiB
JSON

{
"version": 1,
"downstreams": [
{
"name": "orisys-sdk-release",
"path": "../orisys-sdk-release",
"sync": [
{"from": "docs", "to": "docs", "include": ["get_started.md", "api.md"]},
{"from": "examples", "to": "examples", "exclude": ["__pycache__", "*.pyc", "*.pyo"]},
{"from": "config", "to": "config", "include": ["box.json", "finger.json", "mini.json"]},
{"from": "data/calibrations", "to": "data/calibrations", "include": [
".gitignore",
"box/.gitkeep",
"mini/.gitkeep",
"finger/.gitkeep"
]},
{"from": "sensors", "to": "sensors", "include": [
"box/sensor.json",
"box/force_calibration.json",
"finger/sensor.json",
"finger/manifest.json",
"mini/sensor.json"
]}
],
"checks": [
"{python} -c \"import pathlib, py_compile; files=sorted(pathlib.Path('examples').rglob('*.py')); [py_compile.compile(str(f), doraise=True) for f in files]; print('compiled %d example module(s)' % len(files))\"",
"{python} -c \"import pathlib, sys; bad=[str(p) for p in pathlib.Path('.').rglob('*') if p.is_file() and p.suffix in ('.md','.py') and 'examples/products' in p.read_text(encoding='utf-8', errors='ignore').replace(chr(92),'/')]; print('stale products paths:' if bad else 'no stale products paths'); [print(' ', x) for x in bad]; sys.exit(1 if bad else 0)\"",
"{python} -c \"import pathlib, sys; leaked=[str(p) for p in pathlib.Path('.').rglob('*') if p.name in ('publishing.md','pypi_readme.md')]; print('internal docs leaked into the public repo:', leaked); sys.exit(1 if leaked else 0)\""
]
},
{
"name": "sensor-bench",
"path": "../sensor-bench",
"sync": [
{"from": "config", "to": "config", "include": ["box.json", "mini.json", "dd06-ov-0810.json"]}
],
"checks": [
"{python} tests/test_smoke.py"
]
},
{
"name": "finger-bench",
"path": "../finger-bench",
"sync": [
{"from": "config", "to": "config", "include": ["finger.json", "dd02-ov.json"]},
{"from": "assets/finger", "to": "assets/finger"}
],
"checks": [
"{python} tests/test_smoke.py",
"{python} -c \"import pathlib; t=pathlib.Path('README.md').read_text(encoding='utf-8'); print('README still mentions examples/products' if 'examples/products' in t else 'README products path ok')\""
]
}
]
}