Version 3.10¶
Version 3.10.0¶
💥 New features:
Issue #81 - Modernize the internationalization utilities
The
guidata.utils.gettext_helpersmodule, based on thegettextmodule, has been deprecated.It has been replaced by a new module
guidata.utils.translations, which provides a more modern and flexible way to handle translations, thanks to thebabellibrary.This change introduces a new script for managing translations, which may be used as follows:
Scan for new translations:
python -m guidata.utils.translations scan --name <name> --directory <directory>or
guidata-translations scan --name <name> --directory <directory>
Compile translations:
python -m guidata.utils.translations compile --name <name> --directory <directory>or
guidata-translations compile --name <name> --directory <directory>
More options are available, see the help message of the script:
python -m guidata.utils.translations --helpor
guidata-translations --help
Development environment:
Historically, the default Python interpreter for development was handled by the
PPSTACK_PYTHONEXEenvironment variable, for example to run VS Code tasks with the correct Python interpreter.This approach has been replaced by relying on the virtual environment management as provided by VS Code itself, which is more standard and compatible with various tools.
🛠️ Bug fixes:
Issue #88 -
DictItemdefault value persists across dataset instances (missingdeepcopy)This issue is as old as the
DictItemclass itself.When using a
DictItemin a dataset, if a value is set to the item instance, this value was incorrectly used as the default for the next instance of the same dataset class.This happened because a
deepcopywas not made when setting the defaults of the class items inguidata.dataset.datatypes.The fix ensures that each dataset instance has its own independent default value for
DictItem, preventing side effects from one instance to another.