Releases: lebrice/SimpleParsing
Releases · lebrice/SimpleParsing
v0.1.6 - Bugfixes for Literal[None], minor improvements
What's Changed
- Drop python 3.7 + Setup Poetry + CodeCov + Pre-Commit by @lebrice in #300
- Fix the benchmark workflow by @lebrice in #302
- Fix the 'upload' benchmark workflow by @lebrice in #303
- Add codecov inline PR comments by @lebrice in #305
- Fix is_optional(Literal[None]) by @krzentner in #323
- Try to use stdlib tomllib before tomli by @bkad in #318
New Contributors
- @krzentner made their first contribution in #323
- @bkad made their first contribution in #318
Full Changelog: v0.1.5...v0.1.6
What's Changed
- Drop python 3.7 + Setup Poetry + CodeCov + Pre-Commit by @lebrice in #300
- Fix the benchmark workflow by @lebrice in #302
- Fix the 'upload' benchmark workflow by @lebrice in #303
- Add codecov inline PR comments by @lebrice in #305
- Fix is_optional(Literal[None]) by @krzentner in #323
- Try to use stdlib tomllib before tomli by @bkad in #318
- Try to fix broken(?) python-publish.yml by @lebrice in #324
New Contributors
- @krzentner made their first contribution in #323
- @bkad made their first contribution in #318
Full Changelog: v0.1.5...v0.1.6
v0.1.5 - Faster import, rework serialization support + support TOML
What's Changed
- Faster import (lazy numpy) by @lebrice in #285
- Add support for TOML config files by @diggerk in #289
- Remove the benchmark-comment workflow for now by @lebrice in #291
- Disallow extra nonexistent fields by @anivegesana in #290
- fix broken link by @stas00 in #292
New Contributors
- @diggerk made their first contribution in #289
- @anivegesana made their first contribution in #290
- @stas00 made their first contribution in #292
Full Changelog: v0.1.4...v0.1.5
Add performance tests, `replace_subgroups`, and improve CI
What's Changed
- Simplify and Fix test_decorator.py by @lebrice in #273
- Remove PyTorch as a test dependency by @lebrice in #274
- Add
replace_subgroups
function by @zhiruiluo in #215 - add confilct_resolver_max_attempts property by @JonasFrey96 in #272
- Increase import performance (lru_cache) and add pytest-benchmark by @lebrice in #279
- Add Performance Regression tests to CI by @lebrice in #282
New Contributors
- @JonasFrey96 made their first contribution in #272
Full Changelog: v0.1.3...v0.1.4
Fix Literals, improve performance
What's Changed
- Fix AttributeError in field_parsing.py by @lebrice in #251
- Add lru_cache wrapper in docstring parsing by @lebrice in #252
- added example for how to use the flag helper by @LTluttmann in #256
- Lazy import of numpy/torch etc. by @breuleux in #253
- Fix literals for Python 3.9 by @brentyi in #260
- Add test to reproduce #259 by @lebrice in #262
- upgrade precommit hooks by @lebrice in #263
New Contributors
- @LTluttmann made their first contribution in #256
- @breuleux made their first contribution in #253
- @brentyi made their first contribution in #260
Full Changelog: v0.1.2...v0.1.3
v0.1.2.post1 - Bugfix and performance improvement
What's Changed
- Fix AttributeError in field_parsing.py by @lebrice in #251
- Add lru_cache wrapper in docstring parsing by @lebrice in #252
Full Changelog: v0.1.2...v0.1.2.post1
v0.1.2 - Partials (dynamic config dataclasses) + bugfixes
What's Changed
- fix postponed annotation when field is overwritten by @mixilchenko in #228
- Fix bad link in docs/README.md by @lebrice in #236
- [pre-commit-hook] Change flake8 repo to https://github.com/pycqa/flake8 by @zhiruiluo in #238
- Fix #247 by @rhaps0dy in #248
- Raise a warning on unsafe/lossy cast to int, float, and bools by @lebrice in #242
- Partials - Dynamic Config Dataclasses for arbitrary callables by @lebrice in #156
New Contributors
Full Changelog: v0.1.1...v0.1.2
v0.1.1
What's Changed
- Add test file for utils.mutable_field function by @lebrice in #218
- Add test to illustrate enum serialization, update save/load docstrings by @lebrice in #220
- Add support for frozen dataclass instances in
subgroups
by @lebrice in #224 - Make it possible to overwrite a decoding fn for a given type by @lebrice in #232
- Improve
load
/save
/to_dict
(see description) by @lebrice in #233 - Literal types no longer cause a warning on decoding by @norabelrose in #221
- Add tests to confirm that #160 and #161 are fixed by @lebrice in #234
New Contributors
- @norabelrose made their first contribution in #221
Full Changelog: v0.1.0...v0.1.1
v0.1.0
What's Changed
- Update the readme to feature the
parse
api, add tests by @lebrice in #165 - Add argument prefix to simple_parsing.parse by @JesseFarebro in #175
- support
dataclasses.InitVar
for python>=3.8 by @mixilchenko in #171 - Add
main
decorator for simple parsing of entry functions by @JesseFarebro in #176 - Fix typing for sp.main decorator by @JesseFarebro in #177
- Apply pre-commit hooks to all files by @lebrice in #178
- Also parse field help string from class docstring by @lebrice in #179
- Modify forward_refs_to_types to fix issue #181 by @zhiruiluo in #182
- Update global namespaces for postponed annotations by @zhiruiluo in #183
- Add better support for HuggingFace-style dataclasses by @lebrice in #172
- Rework of the subgroups feature + Minor Refactoring by @lebrice in #185
- Remove typing-inspect dependency by @lebrice in #193
- Add test for Issue 191 (subgroup destinations bug) by @lebrice in #194
- Fix confusing
default=True
bool behavior (Fix #68) by @Conchylicultor in #190 - Allow passing
functools.partial
as entries in thesubgroups
dict by @lebrice in #196 - Fix small bug in type hints of
subgroups
fn by @lebrice in #200 - Reorder some of the methods of
ArgumentParser
by @lebrice in #202 - Fix the
Dataclass
protocol and make it typing-only by @lebrice in #207 - Fix typing of the
choice
function by @lebrice in #208 - Add Python 3.11 Support, rework
mutable_field
function by @lebrice in #213 - Adding the
simple_parsing.replace
function by @zhiruiluo in #212 - [breaking] Rework
flag
function, restrictnargs
on bool fields by @lebrice in #206 - Fix error handling issues with
replace
function by @lebrice in #214 - Broaden
from_dict
applicability to non-Serializable dataclasses by @lebrice in #217
New Contributors
- @JesseFarebro made their first contribution in #175
- @zhiruiluo made their first contribution in #182
- @Conchylicultor made their first contribution in #190
Full Changelog: v0.0.21...v0.1.0
V0.0.21.post1 - Decorators, InitVar, Bugfixes
What's Changed
- Update the readme to feature the
parse
api, add tests by @lebrice in #165 - Add argument prefix to simple_parsing.parse by @JesseFarebro in #175
- support
dataclasses.InitVar
for python>=3.8 by @mixilchenko in #171 - Add
main
decorator for simple parsing of entry functions by @JesseFarebro in #176 - Fix typing for sp.main decorator by @JesseFarebro in #177
- Apply pre-commit hooks to all files by @lebrice in #178
- Also parse field help string from class docstring by @lebrice in #179
- Modify forward_refs_to_types to fix issue #181 by @zhiruiluo in #182
New Contributors
- @JesseFarebro made their first contribution in #175
- @zhiruiluo made their first contribution in #182
Full Changelog: v0.0.21...v0.0.21.post1
v0.0.21 - Literals, Defaults from Config files
What's Changed
- Fields with default value of
None
are treated as optional (even if type annotation is wrong) by @lebrice in #151 - Drop support for Python 3.6 by @lebrice in #153
- Add support for simple Literal fields by @lebrice in #152
- Export enums in main package init by @lebrice in #155
- Add pre-commit and run on all files by @lebrice in #154
- Add better support for setting defaults from Config files by @lebrice in #158
- Fix bug in docstring parsing, docstrings inherit from bases by @lebrice in #164
- Add
parse
to all forsimple_parsing.parse
by @lebrice in #170
Full Changelog: v0.0.20...v0.0.21