- 31 Jul, 2023 2 commits
-
-
PiperOrigin-RevId: 552607322
Richard Levasseur committed -
PiperOrigin-RevId: 552597793
Xiaofei Wang committed
-
- 03 Jul, 2023 1 commit
-
-
Move existing raw_ptr_from_capsule.h to cpp_capsule_tools/ subdirectory, factoring out void_ptr_from_capsule.h. PiperOrigin-RevId: 545245445
Ralf W. Grosse-Kunstleve committed
-
- 30 Jun, 2023 1 commit
-
-
This change replaces the third party dateutil.tz.gettz with the builtin zoneinfo.ZoneInfo to construct a timezone object of a given IANA time zone when converting an absl::Time to a Python datetime.datetime object. PiperOrigin-RevId: 544627455
pybind11_abseil authors committed
-
- 06 Jun, 2023 1 commit
-
-
Change pybind11_abseil `absl::Time` to-python conversion to return a datetime object with UTC timezone. The original motivation for this change was to achieve compatibility with absl/python behavior (currently only used Google-internally), but it is a good change in its own right: `absl::Time` does not carry any timezone information, using the local timezone in the to-python conversion is far more complicated than using the UTC timezone, in particular because 1. it makes the to-python conversion dependent on zoneinfo or equivalent. 2. potentially (and confusingly) 3 instead of 2 timezones can appear in a from-python - to-python conversion roundtrip, e.g. starting with a non-local timezone in Python, implicit UTC timezone in C++, then the local timezone when converted back to Python. If this CL causes a breakage ---------------------------- The most likely root cause is a latent inconistency/bug in handling timezones, most notably due to a "naive" datetime object in the mix: * https://docs.python.org/3/library/datetime.html#aware-and-naive-objects In such a case, callers need to be updated to pass "aware" datetime objects instead. In the general case, this is the only way to ensure system-wide consistency. As a side-effect, such fixes are likely to prevent or resolve issues during DST transitions. PiperOrigin-RevId: 538240189
Ralf W. Grosse-Kunstleve committed
-
- 24 May, 2023 1 commit
-
-
The new member function was added with https://github.com/pybind/pybind11/pull/4674 PiperOrigin-RevId: 534952040
Ralf W. Grosse-Kunstleve committed
-
- 18 May, 2023 2 commits
-
-
While working on https://github.com/pybind/pybind11/pull/4674 I came to realize that this include is not needed here. Note however that the pybind11/cast.h changes under https://github.com/pybind/pybind11/pull/4601 are still needed, therefore pybind11_abseil still requires current pybind11 master. PiperOrigin-RevId: 533182724
Ralf W. Grosse-Kunstleve committed -
PiperOrigin-RevId: 532970607
Xiaofei Wang committed
-
- 16 May, 2023 3 commits
-
-
PiperOrigin-RevId: 532586991
Ralf W. Grosse-Kunstleve committed -
PiperOrigin-RevId: 532576894
Ralf W. Grosse-Kunstleve committed -
PiperOrigin-RevId: 532564187
Xiaofei Wang committed
-
- 04 May, 2023 1 commit
-
-
Make `absl::Time` from-python conversion (almost) identical to a Google-internal implementation under absl/python. Note that the unit tests are unchanged (in the entire Google codebase). The remaining very subtle differences between `type_caster<absl::Time>::load()` and the corresponding from-python conversion under absl/python are related to the pybind11 two-pass overload resolution feature that does not exist in PyCLIF. As a side-effect, this change removes long-obsolete remnants of Python 2 support. PiperOrigin-RevId: 529457660
Ralf W. Grosse-Kunstleve committed
-
- 03 May, 2023 2 commits
-
-
Add support for `absl::InfiniteFuture`, `absl::InfinitePast`, matching established Google-internal conventions under absl/python. Also replace floating-point arithmetic in the handling of microseconds with integer arithmetic, to sidestep subtle round-off issues. See the source code comment in the new `internal::GetTimestampMicrosFromDateTimeObj()` function for details. PiperOrigin-RevId: 529169464
Ralf W. Grosse-Kunstleve committed -
This conversion muddles the concepts of * a particular point of time in a day, **independent of a particular date**, and * a particular date + time. This conversion was added only recently, but after more consideration, that was a mistake. PiperOrigin-RevId: 529062347
Ralf W. Grosse-Kunstleve committed
-
- 24 Apr, 2023 1 commit
-
-
For compatibility with Google-internal Clif_PyObjAs/From implementations. This is to support the PyCLIF-pybind11 integration. PiperOrigin-RevId: 526718225
Ralf W. Grosse-Kunstleve committed
-
- 19 Apr, 2023 1 commit
-
-
Civil Time Unit conversions compatibility between pybind11_abseil & Google-internal Clif_PyObjAs/From implementations. This is to support the PyCLIF-pybind11 integration. PiperOrigin-RevId: 525462353
Ralf W. Grosse-Kunstleve committed
-
- 14 Apr, 2023 1 commit
-
-
PiperOrigin-RevId: 524369017
Xiaofei Wang committed
-
- 30 Mar, 2023 1 commit
-
-
PiperOrigin-RevId: 520495543
Xiaofei Wang committed
-
- 29 Mar, 2023 1 commit
-
-
PiperOrigin-RevId: 520478536
Xiaofei Wang committed
-
- 28 Feb, 2023 1 commit
-
-
PiperOrigin-RevId: 512783089
Xiaofei Wang committed
-
- 13 Feb, 2023 1 commit
-
-
PiperOrigin-RevId: 509255012
pybind11_abseil authors committed
-
- 10 Feb, 2023 1 commit
-
-
PiperOrigin-RevId: 508543167
pybind11_abseil authors committed
-
- 09 Feb, 2023 1 commit
-
-
PiperOrigin-RevId: 508428006
Xiaofei Wang committed
-
- 08 Feb, 2023 1 commit
-
-
PiperOrigin-RevId: 508145496
pybind11_abseil authors committed
-
- 01 Feb, 2023 1 commit
-
-
PiperOrigin-RevId: 506344539
pybind11_abseil authors committed
-
- 06 Jan, 2023 1 commit
-
-
The file doesn't exist, and using the exported target causes downstream errors. For one, TensorFlow's license checker errors on these non-existing LICENSE files PiperOrigin-RevId: 500257122
pybind11_abseil authors committed
-
- 20 Dec, 2022 1 commit
-
-
This change replaces references to a number of deprecated NumPy type aliases (np.bool, np.int, np.float, np.complex, np.object, np.str) with their recommended replacement (bool, int, float, complex, object, str). NumPy 1.24 drops the deprecated aliases, so we must remove uses before updating NumPy. PiperOrigin-RevId: 496626719
Peter Hawkins committed
-
- 13 Dec, 2022 1 commit
-
-
PiperOrigin-RevId: 495002753
Ralf W. Grosse-Kunstleve committed
-
- 06 Dec, 2022 1 commit
-
-
PiperOrigin-RevId: 493294082
Ralf W. Grosse-Kunstleve committed
-
- 05 Dec, 2022 1 commit
-
-
To enable (limited) testing of `@pybind11_abseil:status` without the `@pybind11_abseil/tests:status_example_test` dependency. PiperOrigin-RevId: 493092289
Ralf W. Grosse-Kunstleve committed
-
- 01 Dec, 2022 1 commit
-
-
This change supports the PyCLIF-pybind11 integration. PiperOrigin-RevId: 492044996
Ralf W. Grosse-Kunstleve committed
-
- 30 Nov, 2022 1 commit
-
-
This change supports the PyCLIF-pybind11 integration. PiperOrigin-RevId: 491973864
Ralf W. Grosse-Kunstleve committed
-
- 21 Nov, 2022 1 commit
-
-
PiperOrigin-RevId: 489996384
Ralf W. Grosse-Kunstleve committed
-
- 12 Nov, 2022 1 commit
-
-
PiperOrigin-RevId: 487943835
Ralf W. Grosse-Kunstleve committed
-
- 08 Nov, 2022 2 commits
-
-
PiperOrigin-RevId: 487063854
Ralf W. Grosse-Kunstleve committed -
For interoperability with other Python binding systems (e.g. SWIG). PiperOrigin-RevId: 487000705
Ralf W. Grosse-Kunstleve committed
-
- 02 Nov, 2022 2 commits
-
-
PiperOrigin-RevId: 485653868
Xiaofei Wang committed -
Current motivation: Testing after https://github.com/pybind/pybind11_bazel/pull/46 was merged. Convert pybind11_bazel dependency to FLOATING (we own it). PiperOrigin-RevId: 485626325
Ralf W. Grosse-Kunstleve committed
-
- 01 Nov, 2022 1 commit
-
-
PiperOrigin-RevId: 485430599
Xiaofei Wang committed
-
- 31 Oct, 2022 1 commit
-
-
Preparation for enabling presubmit UBSAN testing. UBSAN error fixed by this CL: ``` SUMMARY: UndefinedBehaviorSanitizer: nullptr-with-nonzero-offset third_party/pybind11_abseil/tests/status_example.cc:111:66 in ``` PiperOrigin-RevId: 485136235
Ralf W. Grosse-Kunstleve committed
-