Commands fail if --manifest is a relative path.
未关闭
@ericsnowcurrently 已经在做这个了。
开始于 2022年1月20日。
- 主要语言
- Python
- 星标
- 1k
- 派生
- 203
- 平均合并
- 1 小时 20 分钟
- 30 天内合并 PR
- 2
描述
$ # python3 -m pyperformance list --manifest pyperformance/data-files/benchmarks/MANIFEST
$ python3 -m pyperformance list --manifest ./pyperformance/data-files/benchmarks/MANIFEST
switching to a venv.
...
Traceback (most recent call last):
File "<py-install>/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "<py-install>/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "<pyperformance-root>/pyperformance/__main__.py", line 2, in <module>
pyperformance.cli.main()
File "<pyperformance-root>/pyperformance/cli.py", line 308, in main
_main()
File "<pyperformance-root>/pyperformance/cli.py", line 294, in _main
benchmarks = _benchmarks_from_options(options)
File "<pyperformance-root>/pyperformance/cli.py", line 224, in _benchmarks_from_options
manifest = _manifest_from_options(options)
File "<pyperformance-root>/pyperformance/cli.py", line 218, in _manifest_from_options
return _manifest.load_manifest(options.manifest)
File "<pyperformance-root>/pyperformance/_manifest.py", line 28, in load_manifest
return BenchmarksManifest._from_sections(sections, resolve, filename)
File "<pyperformance-root>/pyperformance/_manifest.py", line 69, in _from_sections
self._add_sections(sections, resolve)
File "<pyperformance-root>/pyperformance/_manifest.py", line 113, in _add_sections
for filename, section, data in sections:
File "<pyperformance-root>/pyperformance/_manifest.py", line 279, in _parse_manifest_file
filename = _utils.resolve_file(filename, relroot)
File "<pyperformance-root>/pyperformance/_utils.py", line 64, in resolve_file
raise NotImplementedError(relroot)
NotImplementedError: ./pyperformance/data-files/benchmarks
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。