intel / intel/xml-cli

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

Open
#97 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
32
Forks
15
PR merge metrics
No merged PRs in 30d

Description

**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**

Contributor guide

Open the contributing guide

Research direction

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`.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.