15 Commits

Author SHA256 Message Date
abfb3aad0c - Update to version 2.1.0
* 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
2024-06-13 09:58:36 +00:00
f921434980 Accepting request 1170943 from home:andriinikitin:branches:devel:languages:python
use %{?sle15allpythons} instead of  %{?sle15_python_module_pythons} to allow building   protobuf for SLE15-SP6 in NON_Public:BuildOPS:hefur

OBS-URL: https://build.opensuse.org/request/show/1170943
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=26
2024-04-30 12:59:19 +00:00
8739563a91 Accepting request 1113854 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1113854
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=24
2023-09-28 11:47:48 +00:00
b3b0e78044 Accepting request 1088978 from system:homeautomation:home-assistant:unstable
- 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
2023-05-25 11:12:10 +00:00
2cd35a121a Accepting request 1003775 from home:pgajdos:python
- version update to 1.2.0
  ## 1.2.0 (2022-07-18)
  *   Fixed a crash in Python 3.11 when `TempFileCleanup.SUCCESS` is used.
  ## 1.1.0 (2022-06-01)
  *   `Flag` instances now raise an error if used in a bool context. This prevents
      the occasional mistake of testing an instance for truthiness rather than
      testing `flag.value`.
  *   `absl-py` no longer depends on `six`.
- do not require python-six

OBS-URL: https://build.opensuse.org/request/show/1003775
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=20
2022-09-15 12:17:55 +00:00
6714195d93 Accepting request 937817 from home:bnavigator:branches:devel:languages:python
- 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
2021-12-09 16:56:42 +00:00
f1cd4c84fb Accepting request 848854 from home:jayvdb:branches:devel:languages:python
- Add Provides python-absl-py

OBS-URL: https://build.opensuse.org/request/show/848854
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=17
2020-11-16 21:03:04 +00:00
4610b9ab15 Accepting request 845664 from home:mslacken:ml
- updated to 0.11.0:
  * Various fixes

OBS-URL: https://build.opensuse.org/request/show/845664
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=15
2020-11-03 10:48:57 +00:00
Tomáš Chvátal
c4cabfb46e - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=13
2020-04-22 10:04:07 +00:00
Tomáš Chvátal
dd75f49671 - Update to 0.9.0:
* work with python 3.8

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=11
2020-03-09 08:10:38 +00:00
Tomáš Chvátal
5f0dd33886 - Update to 0.8.0:
* absltest.expectedFailureIf: a variant of unittest.expectedFailure that allows a condition to be given.
  * few bugfixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=9
2019-09-10 13:29:36 +00:00
Tomáš Chvátal
c2172eda2a - Update to 0.7.1:
* Various fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=7
2019-07-04 12:28:30 +00:00
53064eb2e6 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=4
2018-12-04 13:12:21 +00:00
Tomáš Chvátal
2ea5936a85 - Require enum34 also on runtime when on python2
- Install license

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=2
2018-10-17 07:48:53 +00:00
Tomáš Chvátal
ddcf9ebc44 Accepting request 642547 from home:mslacken:ml
fixed tests and use diect github relased source

OBS-URL: https://build.opensuse.org/request/show/642547
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=1
2018-10-17 07:46:40 +00:00