intel / intel/xml-cli

[BUG] xmlcli 2.2.6 doesn't include xmlcli.config when built as wheel

オープン
#97 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
32
フォーク
15
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
build binary distributions doesn't include 'xmlcli.config' when built as wheel,

**To Reproduce**
build with standard binary package build
cd repo root
`python -m build `

import xmlcli.modules.nvram
causes traceback on import of xmlcli.modules.nvram
```
import xmlcli.modules.nvram
Traceback (most recent call last):
File "", line 1, in
import xmlcli.modules.nvram
File "/usr/lib/python3/dist-packages/xmlcli/modules/nvram.py", line 14, in
from xmlcli import XmlCli as _cli
File "/usr/lib/python3/dist-packages/xmlcli/XmlCli.py", line 11, in
from .common import configurations
File "/usr/lib/python3/dist-packages/xmlcli/common/configurations.py", line 53, in
ENCODING = XMLCLI_CONFIG.get("GENERAL_SETTINGS", "ENCODING")
File "/usr/lib/python3.13/configparser.py", line 812, in get
d = self._unify_values(section, vars)
File "/usr/lib/python3.13/configparser.py", line 1186, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'GENERAL_SETTINGS'
```

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
ls /usr/lib/python3/dist-packages/xmlcli/
UefiFwParser.py XmlCliLib.py __init__.py _version.py common restricted tools
XmlCli.py XmlIniParser.py __pycache__ access modules start_xmlcli.py

**Platform Information (please complete the following information):**
- OS: Linux
- interactive python
- BIOS version label N/A
- Source of the BIOS/IFWI image N/A

**Additional context**

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by running `python -m build` from the repository root and inspect the resulting wheel contents for `xmlcli.config`. Read `xmlcli/common/configurations.py` and reproduce the `import xmlcli.modules.nvram` failure. Done means the built wheel includes the configuration content and that import no longer raises `NoSectionError`.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
build-system
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。