Anurag-S1ngh opened a new pull request, #4548:
URL: https://github.com/apache/iceberg-python/pull/4548

   Closes #4502
   
   # Rationale for this change
   
   `strictyaml` has not had a release since March 2023 and vendors an outdated 
copy of `ruamel.yaml`. PyIceberg only calls `strictyaml.load(yml_str).data` 
without a schema, which keeps every scalar as a string.
   
   Replace it with `PyYAML`'s `BaseLoader`. `BaseLoader` also keeps every 
scalar as a string, so `.pyiceberg.yaml` values such as `4`, `yes`, and `1.0` 
are still returned as strings and `Config.get_int`/`get_bool` keep their 
current behavior.
   
   `uv lock` regenerates the lockfile and removes `strictyaml`.
   
   ## Are these changes tested?
   
   - `pytest tests/utils/test_config.py` (21 passed)
   - `ruff check` and `ruff format --check` on the changed files
   - Added a test that parses unquoted numbers and boolean-like strings from 
the config file
   
   ## Are there any user-facing changes?
   
   The `strictyaml` dependency is replaced by `pyyaml`. Configuration file 
parsing behavior is unchanged.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to