- 09 Jan, 2024 3 commits
-
-
This change builds on https://github.com/google/pywrapcc/pull/30022. PiperOrigin-RevId: 597047935
Ralf W. Grosse-Kunstleve committed -
PiperOrigin-RevId: 597043524
pybind11_abseil authors committed -
PiperOrigin-RevId: 597039706
pybind11_abseil authors committed
-
- 08 Jan, 2024 1 commit
-
-
Preparation for changing pybind11 handling of callbacks with `Status`, `StatusOr` returns to capture C++ exceptions. PiperOrigin-RevId: 596700611
Ralf W. Grosse-Kunstleve committed
-
- 03 Jan, 2024 1 commit
-
-
Secondary changes: * pybind11 needs to be pinned to a version right before https://github.com/pybind/pybind11/pull/4786 was merged, to avoid `ctest` `permission denied` errors (to be debugged separately). * `find_package(PythonLibs REQUIRED)` is removed. It is deprecated (https://github.com/pybind/pybind11/blob/master/docs/faq.rst) and evidently not needed. * More complete logging. PiperOrigin-RevId: 595435856
Ralf W. Grosse-Kunstleve committed
-
- 12 Dec, 2023 1 commit
-
-
PiperOrigin-RevId: 590290022
Ralf W. Grosse-Kunstleve committed
-
- 06 Nov, 2023 1 commit
-
-
PiperOrigin-RevId: 579841851
Matt McDonald committed
-
- 31 Oct, 2023 1 commit
-
-
The header was meant to be deprecated for >1 year, but this was not documented. Also adopt the ``` // IWYU pragma: always_keep // See pybind11/docs/type_caster_iwyu.rst ``` comment used in https://github.com/google/pywrapcc/pull/30073. Currently pybind11/docs/type_caster_iwyu.rst only exists in google/pywrapcc#30073, but the intend is to upstream the changes (see PR description). See also: https://clangd.llvm.org/design/include-cleaner PiperOrigin-RevId: 578314470
Ralf W. Grosse-Kunstleve committed
-
- 20 Oct, 2023 2 commits
-
-
E.g. see https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md. PiperOrigin-RevId: 575331556
Thomas Köppe committed -
This is a functional no-op. Note that `_` was deprecated already in Dec 2021 (https://github.com/pybind/pybind11/pull/3423). PiperOrigin-RevId: 575085924
Ralf W. Grosse-Kunstleve committed
-
- 18 Oct, 2023 1 commit
-
-
It is unclear what exactly broke testing with the standard command: ``` ./scripts/google_run_tests.sh --make_jobs=48 ``` ``` /usr/local/google/home/rwgk/tmp/pybind11_abseil/tmp_build/_deps/abseil-cpp-src/absl/strings/internal/str_format/extension.h:34:6: warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword 34 | enum class FormatConversionChar : uint8_t; | ~~~~ ^~~~~ | ----- /usr/local/google/home/rwgk/tmp/pybind11_abseil/tmp_build/_deps/abseil-cpp-src/absl/strings/internal/str_format/extension.h:34:33: error: found ‘:’ in nested-name-specifier, expected ‘::’ 34 | enum class FormatConversionChar : uint8_t; | ^ | :: ``` Updating abseil-cpp to the same version as used in the bazel WORKSPACE file fixes the cmake build failures. PiperOrigin-RevId: 574639457Ralf W. Grosse-Kunstleve committed
-
- 10 Oct, 2023 1 commit
-
-
PiperOrigin-RevId: 572292285
Matt McDonald committed
-
- 25 Sep, 2023 1 commit
-
-
Doc fixes: Update filename in README.md, remove obsolete and broken references to pybind11_protobuf. Fixes in response to https://github.com/pybind/pybind11_abseil/issues/10 PiperOrigin-RevId: 568278228
Ralf W. Grosse-Kunstleve committed
-
- 06 Sep, 2023 2 commits
-
-
PiperOrigin-RevId: 563208705
pybind11_abseil authors committed -
Resolves `-Wunused-parameter` warnings in external environments. PiperOrigin-RevId: 563117864
Ralf W. Grosse-Kunstleve committed
-
- 18 Aug, 2023 1 commit
-
-
PiperOrigin-RevId: 558257360
pybind11_abseil authors committed
-
- 17 Aug, 2023 1 commit
-
-
Originally developed under https://github.com/pybind/pybind11_abseil/pull/8 PiperOrigin-RevId: 557837688
pybind11_abseil authors committed
-
- 15 Aug, 2023 2 commits
-
-
PiperOrigin-RevId: 557291840
Ralf W. Grosse-Kunstleve committed -
PiperOrigin-RevId: 557226797
pybind11_abseil authors committed
-
- 11 Aug, 2023 2 commits
-
-
This is to help with whitespace cleanup in the cmake files currently under development under https://github.com/pybind/pybind11_abseil/pull/7 PiperOrigin-RevId: 556026304
Ralf W. Grosse-Kunstleve committed -
Observed while locally testing https://github.com/pybind/pybind11_abseil/pull/7: ``` In file included from /usr/local/google/home/rwgk/forked/pybind11_abseil/pybind11_abseil/tests/absl_example.cc:23: /usr/local/google/home/rwgk/forked/pybind11_abseil/pybind11_abseil/absl_casters.h: In member function ‘bool pybind11::detail::type_caster<absl::lts_20211102::Duration>::load(pybind11::handle, bool)’: /usr/local/google/home/rwgk/forked/pybind11_abseil/pybind11_abseil/absl_casters.h:194:48: warning: ‘bool pybind11::handle::operator==(const pybind11::handle&) const’ is deprecated: Use obj1.is(obj2) instead [-Wdeprecated-declarations] 194 | if (src == object(py_duration_t.attr("max"))) { | ^ In file included from /usr/local/google/home/rwgk/forked/pybind11_abseil/tmp_build/_deps/pybind11-src/include/pybind11/detail/type_caster_base.h:12, from /usr/local/google/home/rwgk/forked/pybind11_abseil/tmp_build/_deps/pybind11-src/include/pybind11/cast.h:15, from /usr/local/google/home/rwgk/forked/pybind11_abseil/tmp_build/_deps/pybind11-src/include/pybind11/attr.h:14, from /usr/local/google/home/rwgk/forked/pybind11_abseil/tmp_build/_deps/pybind11-src/include/pybind11/detail/class.h:1, from /usr/local/google/home/rwgk/forked/pybind11_abseil/tmp_build/_deps/pybind11-src/include/pybind11/pybind11.h:13, from /usr/local/google/home/rwgk/forked/pybind11_abseil/tmp_build/_deps/pybind11-src/include/pybind11/complex.h:12, from /usr/local/google/home/rwgk/forked/pybind11_abseil/pybind11_abseil/tests/absl_example.cc:6: /usr/local/google/home/rwgk/forked/pybind11_abseil/tmp_build/_deps/pybind11-src/include/pybind11/pytypes.h:290:10: note: declared here 290 | bool operator==(const handle &h) const { return m_ptr == h.m_ptr; } | ^~~~~~~~ ``` PiperOrigin-RevId: 555974032
Ralf W. Grosse-Kunstleve committed
-
- 09 Aug, 2023 1 commit
-
-
Bump pinned Abseil to latest LTS (20230802.0). Remove C++ 11 support as newest Abseil does not support it. PiperOrigin-RevId: 555248466
pybind11_abseil authors committed
-
- 04 Aug, 2023 1 commit
-
-
PiperOrigin-RevId: 553889862
Ralf W. Grosse-Kunstleve committed
-
- 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
-