[BUG] xmlcli 2.2.6 doesn't include xmlcli.config when built as wheel
- 主要语言
- 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