[BUG] xmlcli 2.2.6 doesn't include xmlcli.config when built as wheel
- Lingua principale
- Python
- Stelle
- 32
- Fork
- 15
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**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**
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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`.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100