bazelbuild / rules_cc

C++ Rules for Bazel
https://bazel.build
Apache License 2.0
189 stars 94 forks source link

Update dependency io_abseil_py to v2 - autoclosed #197

Closed renovate-bot closed 1 month ago

renovate-bot commented 1 year ago

This PR contains the following updates:

Package Type Update Change
io_abseil_py http_archive major v1.4.0 -> v2.1.0

Release Notes

abseil/abseil-py (io_abseil_py) ### [`v2.1.0`](https://togithub.com/abseil/abseil-py/releases/tag/v2.1.0) [Compare Source](https://togithub.com/abseil/abseil-py/compare/v2.0.0...v2.1.0) ##### Added - (flags) Added `absl.flags.override_value` function to provide `FlagHolder` with a construct to modify values. The new interface parallels `absl.flags.FlagValues.__setattr__` but checks that the provided value conforms to the flag's expected type. - (testing) Added a new method `absltest.TestCase.assertDataclassEqual` that tests equality of `dataclass.dataclass` objects with better error messages when the assert fails. ##### Changed - (flags) `absl.flags.argparse_flags.ArgumentParser` now correctly inherits an empty instance of `FlagValues` to ensure that absl flags, such as `--flagfile`, `--undefok` are supported. - (testing) Do not exit 5 if tests were skipped on Python 3.12. This follows the CPython change in [https://github.com/python/cpython/pull/113856](https://togithub.com/python/cpython/pull/113856). ##### Fixed - (flags) The flag `foo` no longer retains the value `bar` after `FLAGS.foo = bar` fails due to a validation error. - (testing) Fixed an issue caused by [this Python 3.12.1 change](https://togithub.com/python/cpython/pull/109725) where the test reporter crashes when all tests are skipped. ### [`v2.0.0`](https://togithub.com/abseil/abseil-py/releases/tag/v2.0.0) [Compare Source](https://togithub.com/abseil/abseil-py/compare/v1.4.0...v2.0.0) ##### New - Support Python 3.12. ##### Changed - `absl-py` no longer supports Python 3.6. It has reached end-of-life for more than a year now. - (logging) `logging.exception` can now take `exc_info` as argument, with default value `True`. Prior to this change setting `exc_info` would raise `KeyError`, this change fixes this behaviour. - (testing) For Python 3.11+, the calls to `absltest.TestCase.enter_context` are forwarded to `unittest.TestCase.enterContext` (when called via instance) or `unittest.TestCase.enterClassContext` (when called via class) now. As a result, on Python 3.11+, the private `_cls_exit_stack` attribute is not defined on `absltest.TestCase` and `_exit_stack` attribute is not defined on its instances. - (testing) `absltest.TestCase.assertSameStructure()` now uses the test case's equality functions (registered with `TestCase.addTypeEqualityFunc()`) for comparing leaves of the structure. - (testing) `abslTest.TestCase.fail()` now names its arguments `(self, msg=None, user_msg=None)`, and not `(self, msg=None, prefix=None)`, better reflecting the behavior and usage of the two message arguments. - `DEFINE_enum`, `DEFINE_multi_enum`, and `EnumParser` now raise errors when `enum_values` is provided as a single string value. Additionally, `EnumParser.enum_values` is now stored as a list copy of the provided `enum_values` parameter. - (testing) Updated `paramaterized.CoopTestCase()` to use Python 3 metaclass idioms. Most uses of this function continued working during the Python 3 migration still worked because a Python 2 compatibility `__metaclass__` variables also existed. Now pure Python 3 base classes without backwards compatibility will work as intended. - (testing) `absltest.TestCase.assertSequenceStartsWith` now explicitly fail when passed a `Mapping` or `Set` object as the `whole` argument.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.