* Added:
+ (flags) Added absl.flags.override_value function to provide
FlagHolder with a construct to modify values.
+ (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 python/cpython#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
where the test reporter crashes when all tests are skipped.
- Update to version 2.0.0
* Changed
+ absl-py no longer supports Python 3.6.
+ Support Python 3.12.
+ (logging) logging.exception can now take exc_info as
argument, with default value True.
+ (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.
+ (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.
+ (testing) absltest.TestCase.assertSequenceStartsWith now
explicitly fail when passed a Mapping or Set object as the
whole argument.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=28
- version update to 1.4.0
New
(testing) Added @flagsaver.as_parsed: this allows saving/restoring flags
using string values as if parsed from the command line and will also reflect
other flag states after command line parsing, e.g. .present is set.
Changed
(logging) If no log dir is specified logging.find_log_dir() now falls back
to tempfile.gettempdir() instead of /tmp/.
Fixed
(flags) Additional kwargs (e.g. short_name=) to DEFINE_multi_enum_class
are now correctly passed to the underlying Flag object.
OBS-URL: https://build.opensuse.org/request/show/1088978
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=22
- Update to version 1.0.0
* absl-py no longer supports Python 2.7, 3.4, 3.5. All versions
have reached end-of-life for more than a year now.
* New releases will be tagged as vX.Y.Z instead of pypi-vX.Y.Z in
the git repo going forward.
- Release notes for 0.15.0
* (testing) #128: When running bazel with its --test_filter=
flag, it now treats the filters as unittest's -k flag in Python
3.7+.
- Release notes for 0.14.1
* Top-level LICENSE file is now exported in bazel.
- Release notes for 0.14.0
* #171: Creating argparse_flags.ArgumentParser with
argument_default= no longer raises an exception when other
absl.flags flags are defined.
* #173: absltest now correctly sets up test filtering and fail
fast flags when an explicit argv= parameter is passed to
absltest.main.
- Release notes for 0.13.0
* (app) Type annotations for public app interfaces.
* (testing) Added new decorator @absltest.skipThisClass to
indicate a class contains shared functionality to be used as a
base class for other TestCases, and therefore should be
skipped.
* (app) Annotated the flag_parser paramteter of run as
keyword-only. This keyword-only constraint will be enforced at
runtime in a future release.
* (app, flags) Flag validations now include all errors from
disjoint flag sets, instead of fail fast upon first error from
all validators. Multiple validators on the same flag still
fails fast.
- Release notes for 0.12.0
* (flags) Made EnumClassSerializer and EnumClassListSerializer
public.
* (flags) Added a required: Optional[bool] = False parameter to
DEFINE_* functions.
* (testing) flagsaver overrides can now be specified in terms of
FlagHolder.
* (testing) parameterized.product: Allows testing a method over
cartesian product of parameters values, specified as a
sequences of values for each parameter or as kwargs-like dicts
of parameter values.
* (testing) Added public flag holders for --test_srcdir and
--test_tmpdir. Users should use absltest.TEST_SRCDIR.value and
absltest.TEST_TMPDIR.value instead of FLAGS.test_srcdir and
FLAGS.test_tmpdir.
* (flags) Made CsvListSerializer respect its delimiter argument.
OBS-URL: https://build.opensuse.org/request/show/937817
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=19