1. 09 Jan, 2024 5 commits
  2. 08 Jan, 2024 1 commit
  3. 03 Jan, 2024 1 commit
  4. 12 Dec, 2023 1 commit
  5. 06 Nov, 2023 1 commit
  6. 31 Oct, 2023 1 commit
  7. 20 Oct, 2023 2 commits
  8. 18 Oct, 2023 1 commit
    • Update abseil-cpp version in top_level_CMakeLists.txt to restore testing. · 6c181d3d
      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: 574639457
      Ralf W. Grosse-Kunstleve committed
  9. 10 Oct, 2023 1 commit
  10. 25 Sep, 2023 1 commit
  11. 06 Sep, 2023 2 commits
  12. 18 Aug, 2023 1 commit
  13. 17 Aug, 2023 1 commit
  14. 15 Aug, 2023 2 commits
  15. 11 Aug, 2023 2 commits
    • Copy pybind11_protobuf/.pre-commit-config.yaml to pybind11_abseil/.pre-commit-config.yaml · 41f3de4d
      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
    • Resolve pybind11 deprecation warning. · e01527cd
      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
  16. 09 Aug, 2023 1 commit
  17. 04 Aug, 2023 1 commit
  18. 31 Jul, 2023 2 commits
  19. 03 Jul, 2023 1 commit
  20. 30 Jun, 2023 1 commit
  21. 06 Jun, 2023 1 commit
    • Change pybind11_abseil `absl::Time` to-python conversion to return a datetime… · afa0489d
      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
  22. 24 May, 2023 1 commit
  23. 18 May, 2023 2 commits
  24. 16 May, 2023 3 commits
  25. 04 May, 2023 1 commit
    • Make `absl::Time` from-python conversion (almost) identical to a Google-internal… · 1caf1890
      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
  26. 03 May, 2023 2 commits
  27. 24 Apr, 2023 1 commit