ff0d2603e1
- update to 2.12.0: * Support for enum kebab case. * Apply source order: init > env > dotenv > secrets > defaults and pres… * Add NestedSecretsSettings source * Strip non-explicit default values. * Coerce env vars if strict is True. * Restore init kwarg names before returning final state dictionary. * Drop Python3.9 support * Adapt test_protected_namespace_defaults for dev. Pydantic * Add Python 3.14 * Prepare release 2.12 - update to 2.11.0: * CLI Serialize Support * Inspect type aliases to determine if an annotation is complex * Remove parsing of command line arguments from CliSettingsSource.__init__. * turn off allow_abbrev on subparsers * CLI Serialization Fixes * Fix PydanticModel type checking. * Avoid env_prefix falling back to env vars without prefix * Warn if model_config sets unused keys for missing settings sources * Included endpoint_url kwarg in AWSSecretsManagerSettingsSource class * Fix typo ("Accesing") in the "Adding sources" docs * CLI Windows Path Fix * Cli root model support
Dirk Mueller2025-12-28 20:24:39 +00:00
dfc15150f2
- Update to 2.10.1 * Fix UnboundLocalError error in _replace_field_names_case_insensitively * Remove unknown file reference in documentation * Prepare release 2.10.1 - Update to 2.10.0 * Fix running tests when azure-keyvault-secrets is not installed * Fix running tests when google-cloud-secret-manager is not installed * Support loading a specific nested key from YAML in YamlConfigSettingsSource * Fix CLI suppression for model group help * Fix missing DEFAULT_PATH import * Fix case-insensitive handling of nested aliases in EnvironmentSettingsSource * Azure Key Vault case insensitive support and dash-underscore translation * fix: Respect 'cli_parse_args' from model_config with settings_customise_sources * Bump astral-sh/setup-uv * Update packages by * Update README.md * Fix CI badge * Update dependencies * Fix coverage report * Fix _consume_object_or_array on unbalanced brackets in JSON strings * add region as a parameter to aws secret manager * Expose GCP Secret Manager case sensitive option * Update deps * feat: Add cli_shortcuts to CLI settings * Expose AWS Secrets Manager case sensitive option * Prepare release 2.10.0 - remove otional test dependencies
Daniel Garcia2025-07-01 09:01:11 +00:00
082e820302
Accepting request 1272302 from devel:languages:python
Ana Guerrero2025-04-25 20:17:55 +00:00
8ca27fd8ae
- Update to 2.9.1: * Drop support for Python 3.8 * Switch to typing-inspection * Refactor sources.py into a subpackage * Add support for AWS Secrets Manager * Fix minor typo: conotations => connotations * Azure Key Vault: Don't load disabled secret * Add support for GCP Secret Manager * CLI JSON Optional Default * Fix for env nested enum * CLI submodel suppress * Cli retrieve unknown args * Update pydantic - Drop patches: * fix-settings-dump.patch * use-typing_objects.patch
Steve Kowalik2025-04-24 05:54:41 +00:00
6400f49133
Accepting request 1267000 from devel:languages:python
Ana Guerrero2025-04-11 14:45:28 +00:00
b393ce4c0c
- Update to 2.8.1: * Fix for init source kwarg alias resolution * Revert usage of positional only argument in BaseSettings.__init__ * Revert use of object instead of Any * CLI support for optional and variadic positional args * Improve env_prefix config doc * Add env_nested_max_split setting * Avoid using Any in BaseSettings signature to avoid mypy errors * Asynchronous CLI methods in CliApp * Don't explode env vars if env_nested_delimiter is empty - Add patch use-typing_objects.patch: * Use typing_inspection.typing_objects rather than isinstance. - Refreshed patch fix-settings-dump.patch
Steve Kowalik2025-04-04 04:54:24 +00:00
5e05958622
Accepting request 1240690 from devel:languages:python
Ana Guerrero2025-01-29 15:09:41 +00:00
e4a8a0d837
- Update to 2.7.1: * Move preferred alias resolution to private method * Fix test_protected_namespace_defaults with -Wdefault * Make tests more robust to the running environment * Fix rendering of annotations in code example * Fix alias resolution for default settings source. * Use the class name in the __repr__ implementations * Fix default help text for union of submodels. * Add support for CliMutuallyExclusiveGroup. * Disable abbreviations on internal parser. * Fix Secret field parsing * Fix alias resolution to use preferred key. * Strip annotated when getting submodels during CLI parsing. * Removing return type from the function in test * Relax default protected_namespaces * Add support for CLI kebab case flag. * Change reference of default values validation in documentation * Improve field value parsing by adding NoDecode and ForceDecode annotations * Fix attribute error on Python 3.9 with typing.Sequence * Add Python 3.13 support * Adding support for populate_by_name * Refactor path_type_label * Fix nested model field with alias parsing * Fix PathType typing in case of sequence * Add cli_ignore_unknown_args config option. * Fix AzureKeyVaultSettingsSource problem in case of field with underscore * Add cli_flag_prefix_char config option. * Fix nested model AliasChoices in validation alias * Add CLI App Support
Steve Kowalik2025-01-28 02:23:18 +00:00
492f548e7b
Accepting request 1218762 from devel:languages:python
Ana Guerrero2024-10-29 13:31:51 +00:00
32b68a6f83
- Update to 2.4.0: * Fix regex flags accidentally passed as count * Deprecate read_env_file and move it to DotEnvSettingsSource * Fix a bug when loading empty yaml file * feat: Enable access to the current state in settings sources * Add support for short options * Add Azure Key Vault settings source * Add cli_exit_on_error config option
Steve Kowalik2024-09-10 04:58:20 +00:00
d804c84ea9
Accepting request 1186240 from devel:languages:python
Ana Guerrero2024-07-09 18:02:54 +00:00
ffb9010f83
- update to 2.3.4: * add in-place reloading in docs * Nested pydantic dataclasses and doc fixes. * Remove leftover docstring causing warning on pydantic docs build - update to 2.3.3: * Fix an intriduced bug in parsing json field with discriminated union * Add CliSettingsSource alias handling for AliasChoices and AliasPath. - update to 2.3.2: * Initialize CLI source on demand. * Fix command line help from argparse formatting problem * Fix issue with nested model uppercase field name in case insensitive mode - update to 2.3.1: * Fix a regression in parsing env value for nested dict - update to 2.3.0: * Add environment parsing support for enums. * Improve explode_env_vars for better dict handling * add PyprojectTomlConfigSettingsSource * Fix broken link in AliasChoices class * Update Pydantic * fix: superfluous deep env conflicts with non-dict model leaf * fix: a second level of environment nesting expected a dict * Fix an issue when inner types of a discriminated union with a callable discriminator were not correctly identified as complex. * Fix a bug when we have case insentive field in nested model * Add CLI Settings Source
Dirk Mueller2024-07-01 18:05:23 +00:00
f40c4004b6
Accepting request 1163261 from devel:languages:python
Ana Guerrero2024-03-29 12:09:11 +00:00
a28b60ca93
Accepting request 1162942 from home:ecsos:python
Markéta Machová2024-03-28 08:08:51 +00:00
a5fbc080a9
Accepting request 1156812 from devel:languages:python
Ana Guerrero2024-03-14 16:42:12 +00:00