aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-08-24Merge pull request #198 from yilei/push_up_to_469768218Yilei "Dolee" Yang
Push up to 469768218
2022-08-24Merge commit for internal changes.Yilei Yang (杨一磊)
2022-08-24Expose the public APIs as the `__all__` attribute in `absl/flags/__init__.py`.Yilei Yang
This also makes sphinx autodoc generate docs for exposed APIs. Also make `absl.flags`'s docstring compatible with reST. PiperOrigin-RevId: 469768218 Change-Id: I6fd3807de05d6803a0aa73b3872555e53d504e8d
2022-08-22 Add support for readthedocs.io.Bill Yoshimi
PiperOrigin-RevId: 469296283 Change-Id: Ia5c54c633586b90ab57aa81b5813878fa49997dd
2022-08-19Updates the absl `assertRaisesWithPredicateMatch` and ↵Matt Doyle
`assertRaisesWithLiteralMatch` method to also store the caught exception object in the returned context manager's `exception` attribute. PiperOrigin-RevId: 468744160 Change-Id: Iebc6e20d2084d1d078f5dd989d705209a94e1e45
2022-08-19Update some of the docstrings to be compatible with `reST`, in preparation ↵Yilei Yang
to add generated docs by Sphinx/readthedocs. This is just an initial pass, far from great documentations. PiperOrigin-RevId: 468721475 Change-Id: I5b4f9b2127add933d7eb56414b4fa1751cdacb3d
2022-07-25Make it possible to pass keyword args to exception().Abseil Team
PiperOrigin-RevId: 463213585 Change-Id: Ibeea24bb64c116ab5a998032910a033f1c0c08a4
2022-07-18Merge pull request #195 from yilei/push_up_to_461698919upstream/v1.2.0Yilei "Dolee" Yang
Push up to 461698919
2022-07-18Merge commit for internal changes.Yilei Yang (杨一磊)
2022-07-18Preparing the release of absl-py 1.2.0.Yilei Yang
PiperOrigin-RevId: 461698919 Change-Id: Iaf4b66876dcc2ca647ff85696bca992f6d1da257
2022-07-18Work around a Pytype issue in `DEFINE_multi_enum_class`'s return value where ↵Yilei Yang
an iterable of concrete enum values are used as the default. PiperOrigin-RevId: 461656002 Change-Id: Ic6d0699ad4f507d9f6ae24ab4aad0d7b8b19bd63
2022-07-14Make `TempFileCleanup.SUCCESS` work with Python 3.11 after ↵Yilei Yang
https://github.com/python/cpython/pull/28180. After the change, the errors from the test case were no longer buffered in `_Outcome`. Instead, we need to take a note of errors on the `TestResult` before, then compare errors after. PiperOrigin-RevId: 461070558 Change-Id: I7d9f769cd46143a886bc5edeb224804acd8dbaf9
2022-07-07Add metadata files am: 63f98de5b1 am: f821ce5bad am: 246a633324 am: ↵Yifan Hong
acceb038cf am: 2f43d21c3f Original change: https://android-review.googlesource.com/c/platform/external/python/absl-py/+/2133321 Change-Id: Ide45738cebbf2588c578c6bae3086c9161327077 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07Merge tag 'v1.1.0' into master am: 41ad18dfef am: b34751929e am: e5a8a27b1b ↵Yifan Hong
am: 5cba050b09 am: 443d66edda Original change: https://android-review.googlesource.com/c/platform/external/python/absl-py/+/2130052 Change-Id: I912577fc29b70643cd3c1131cf3fcf95999703ab Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07Add metadata files am: 63f98de5b1 am: f821ce5bad am: 246a633324 am: acceb038cfYifan Hong
Original change: https://android-review.googlesource.com/c/platform/external/python/absl-py/+/2133321 Change-Id: I8d3f40d399c895f5a82579bf6f324aa6bc09de44 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07Merge tag 'v1.1.0' into master am: 41ad18dfef am: b34751929e am: e5a8a27b1b ↵Yifan Hong
am: 5cba050b09 Original change: https://android-review.googlesource.com/c/platform/external/python/absl-py/+/2130052 Change-Id: I6ea42207cb18e43d7e968a25d5240ca1a612fcf8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07Add metadata files am: 63f98de5b1 am: f821ce5bad am: 246a633324Yifan Hong
Original change: https://android-review.googlesource.com/c/platform/external/python/absl-py/+/2133321 Change-Id: If162f1245945d3c4c8b09a058b90ea25a178a952 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07Merge tag 'v1.1.0' into master am: 41ad18dfef am: b34751929e am: e5a8a27b1bYifan Hong
Original change: https://android-review.googlesource.com/c/platform/external/python/absl-py/+/2130052 Change-Id: I3834675d7747668db43b1f37ad89cd85f63ddf2c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07Add metadata files am: 63f98de5b1 am: f821ce5badYifan Hong
Original change: https://android-review.googlesource.com/c/platform/external/python/absl-py/+/2133321 Change-Id: Ib86dc094a7b1a5ba7f2b36b8f086b086af02074c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07Merge tag 'v1.1.0' into master am: 41ad18dfef am: b34751929eYifan Hong
Original change: https://android-review.googlesource.com/c/platform/external/python/absl-py/+/2130052 Change-Id: I8bba1d63137c6c6887ffab9dfe1539e46b74b612 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07Add metadata files am: 63f98de5b1platform-tools-33.0.3Yifan Hong
Original change: https://android-review.googlesource.com/c/platform/external/python/absl-py/+/2133321 Change-Id: Id3e2f92ae1ff1a640d8344b6fb32655ec37055ac Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07Merge tag 'v1.1.0' into master am: 41ad18dfefYifan Hong
Original change: https://android-review.googlesource.com/c/platform/external/python/absl-py/+/2130052 Change-Id: I4fcacf0c8f4c98b6f22ef9f272f4c12dbfde162a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-21Add metadata filesandroid-wear-13.0.0_r0.8android-wear-13.0.0_r0.6android-wear-13.0.0_r0.4android-wear-13.0.0_r0.3android-wear-13.0.0_r0.18android-wear-13.0.0_r0.16android-wear-13.0.0_r0.15android-wear-13.0.0_r0.14android-wear-13.0.0_r0.12android-wear-13.0.0_r0.10master-kernel-build-2022android-msm-p11-5.15-tm-wear-kr3-dr-p11-d1android-msm-p11-5.15-tm-wear-kr3-dr-p11android-msm-eos-android13-wear-kr3-pixel-watchandroid-msm-eos-5.15-tm-wear-kr3-pixel-watchandroid-msm-eos-5.15-tm-wear-kr3-dr-eosYifan Hong
Bug: 227705464 Bug: 236118730 Change-Id: I8c1f86ea7b15e5e56fe9f2915d526df1d756ef56 Signed-off-by: Yifan Hong <elsk@google.com>
2022-06-16Merge tag 'v1.1.0' into masterYifan Hong
Test: none Bug: 227705464 Bug: 236118730 Change-Id: I28557fa16390caefaac5d21bbc5c0881ad511797 Signed-off-by: Yifan Hong <elsk@google.com>
2022-06-16Initial empty repositoryBill Rassieur
2022-06-13Use type annotations instead of type comments for this method.Abseil Team
PiperOrigin-RevId: 454734291 Change-Id: I043f77b129a411a9f517b37800df3ea729cb7a59
2022-06-09Re-work how side effects are avoided when getting the non flags `argv` when ↵Yilei Yang
`absltest.main()` is called inside `app.run()`. We just want to remove the defined flags from the original `sys.argv` without affect anything. At that point, flags are already parsed by `app.run()`. The original code also has an issue with validators and multi- flags. Calling `FLAGS(sys.argv)` will duplicate the flag values then run flag validators, which can fail before the flag values are restored. PiperOrigin-RevId: 454052335 Change-Id: I24a3af6bb3c68dbc17ebc54a2c99e08b1a10d60a
2022-06-08Remove the unnecessary Python 2 related future imports.Yilei Yang
PiperOrigin-RevId: 453697925 Change-Id: I24a9fbbe2a690d7101b7190f4b4976d16bd0942f
2022-06-01Merge pull request #191 from yilei/push_up_to_452372418upstream/v1.1.0Yilei "Dolee" Yang
Push up to 452372418
2022-06-01Merge commit for internal changes.Yilei Yang (杨一磊)
2022-06-01Preparing the release of absl-py 1.1.0.Yilei Yang
PiperOrigin-RevId: 452372418 Change-Id: Id1efa24457e5240dd39cdb5858523e1f35ce01be
2022-05-23Make FlagHolder unconditionally generic.John Aslanides
Now that we've dropped Python 2 support, we can drop the conditional import of `typing`. PiperOrigin-RevId: 450471818 Change-Id: I6c4efc7b6943b9794b2a3cf1eba90d330d6b73fd
2022-05-06Remove the dependency on six since it's no longer used.Yilei Yang
PiperOrigin-RevId: 447093436 Change-Id: I1538d556cc96a4155b2c43ade70f1966b6b5bd28
2022-05-06Remove the py2/py3 compatibility module _collections_abc.Yilei Yang
PiperOrigin-RevId: 447005334 Change-Id: Iea86a969093640a18663d3d135648329c45e9954
2022-05-05Remove the use of six in absl.flags.Yilei Yang
PiperOrigin-RevId: 446842401 Change-Id: Ic66c537d810dda858318a95e5f7b2242f58f7c75
2022-04-11Remove unused comments related to Python 2 compatibility.Yilei Yang
PiperOrigin-RevId: 440945020 Change-Id: I78d78173ca4a122208950176104e9ae722616e42
2022-03-29Merge pull request #190 from yilei/push_up_to_436585035Yilei "Dolee" Yang
Push up to 436585035
2022-03-29Merge commit for internal changes.Yilei Yang (杨一磊)
2022-03-22Remove the use of third party `mock` package and future imports in these tests.Yilei Yang
Also remove the mock package in bazel WORKSPACE file. PiperOrigin-RevId: 436585035 Change-Id: I7f8eafac5f7b10dc8f580db20c7ae60711dfdf12
2022-03-21Remove comments, license is declared in the LICENSE file.Yilei Yang
PiperOrigin-RevId: 436293697 Change-Id: I4ebf90127a781162636fa728c8899d76937dbca6
2022-03-21Remove the use of six in absl.testing.Yilei Yang
PiperOrigin-RevId: 436216380 Change-Id: I1058b3893eaf6e18c2872c2cf2533c3109bb972f
2022-03-16Fix some lint errors.Yilei Yang
The test helper change is for a test that will be released in a future version. PiperOrigin-RevId: 435099266 Change-Id: I870a7a6386f5ecca4e349b1211b92c723dfd8c54
2022-03-04Improve the type annotations for assertRaisesWith{Literal,Predicate}Match.Rebecca Chen
PiperOrigin-RevId: 432505574 Change-Id: I581809fc35b40fd477a111154065a281c53eee00
2022-02-22Enumerate possible values in multi_enum flag help.Abseil Team
PiperOrigin-RevId: 430280700 Change-Id: I62ca45c7b794989f9e8ee66094fb73c5ac7a6840
2022-02-08Prevent the truthiness of absl.flags Flag instances from being tested in a ↵Gregory P. Smith
bool context (not useful) to avoid situations where someone really wanted to refer to `their_flag.value` instead. This prevents logic bugs. There were ~10 problems found by this and cleaned up in our internal codebase. PiperOrigin-RevId: 427295923 Change-Id: Ifc9e086133986cc14d052a06889a93c1ab0ff688
2022-02-07Cleanup the use of `six` and future imports in `absl.logging`.Yilei Yang
PiperOrigin-RevId: 426998346 Change-Id: I6b7ad5496864aee2bfff9b7cdff4ed70fd790a34
2022-02-04Merge https://github.com/abseil/abseil-py/pull/186.Yilei Yang
PiperOrigin-RevId: 426506531 Change-Id: I7a291ac06fc88c9970d58241538a7bdc3ffd7fa4
2022-02-04Merge pull request #186 from Maxim-38RUS-Zabelin/mainYilei "Dolee" Yang
Delete PrefixFormatterTest in favor of ABSLLogPrefixTest.
2022-02-04Delete PrefixFormatterTest in favor of ABSLLogPrefixTest.Maksim Zabelin
2022-02-04Merge pull request #187 from yilei/push_up_to_426467477Yilei "Dolee" Yang
Push up to 426467477