1. Jun 11, 2024
    • Ralf W. Grosse-Kunstleve's avatar
      [smart_holder] Fix terrible merge accident: `PYBIND11_INTERNALS_SH_DEF`... · 21d81fc2
      Ralf W. Grosse-Kunstleve authored
      [smart_holder] Fix terrible merge accident: `PYBIND11_INTERNALS_SH_DEF` missing in `PYBIND11_INTERNALS_ID` and `PYBIND11_MODULE_LOCAL_ID` (#5159)
      
      * Fix oversight: Add `-DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"` for new `manylinux` job (Manylinux on 🐍 3.13t • GIL).
      
      * Fix terrible merge accident introduced with pybind/pybind11#5085: `PYBIND11_INTERNALS_SH_DEF` was accidentally removed from `PYBIND11_INTERNALS_ID` and `PYBIND11_MODULE_LOCAL_ID`.
      21d81fc2
  2. Jun 10, 2024
  3. Jun 08, 2024
  4. Jun 07, 2024
  5. May 30, 2024
  6. May 28, 2024
  7. May 27, 2024
  8. May 25, 2024
  9. May 24, 2024
  10. May 23, 2024
  11. May 11, 2024
  12. May 07, 2024
  13. Apr 10, 2024
  14. Apr 03, 2024
  15. Apr 02, 2024
  16. Mar 28, 2024
  17. Mar 27, 2024
    • Sebastian Berg's avatar
      feat: make `numpy.h` compatible with both NumPy 1.x and 2.x (#5050) · 705efcce
      Sebastian Berg authored
      
      
      * API: Make `numpy.h` compatible with both NumPy 1.x and 2.x
      
      * TST: Update numpy dtype flags test to not covert flags to char
      
      * API: Add `numpy2.h` instead and make `numpy.h` safe
      
      This means that users of `numpy.h` cannot be broken, but need to
      update to `numpy2.h` if they want to compile for NumPy 2.
      
      Using Macros simply and didn't bother to try to remove unnecessary
      code paths.
      
      * API: Rather than `numpy2.h` use a define for the user.
      
      * Thread `PYBIND11_NUMPY2_SUPPORT` through things and try to adept test matrix
      
      * Small fixups (shouldn't matter)?
      
      * Fixup.  Does upgrading scipy help?  (it shouldn't?)
      
      (Some other small fixup)
      
      * Use NumPy 2 nightlies for ubuntu-latest job also
      
      * BUG: Fix numpy.bool check
      
      * TST: Fix complexwarning
      
      * BUG: Fix the fact that only the 50 slot is filled with the copy alias
      
      (There were 3 functions all doing the same, only this slot survived 2.x)
      
      * TST: One more test tweak
      
      * TST: Use "long" name for long, since it changed on windows
      
      * TST: Apparently we didn't always have ulong, so just use `L`
      
      * TST: Enforce dtype='l' for test as default isn't long anymore on windows
      
      * Rename macro and invert logic to PYBIND11_NUMPY_1_ONLY
      
      * PYBIND11_INTERNAL_NUMPY_1_ONLY_DETECTED
      
      * Test and code comment expansion
      
      * CI: Use pre-releases of numpy/scipy from pip via explicit version
      
      * CI: NumPy 2 only available on almalinux (as it is Python >=3.9)
      
      * MAINT: Match name more exactly and adopt error phrasing
      
      * MAINT: Pushed early, move helper to be private member
      
      * fix error message compilation when using NumPy 1.x-only backcompat
      
      * silence name shadowing warning
      
      * chore: minor optimization
      
      Signed-off-by: default avatarHenry Schreiner <henryschreineriii@gmail.com>
      
      ---------
      
      Signed-off-by: default avatarHenry Schreiner <henryschreineriii@gmail.com>
      Co-authored-by: default avatarRalf W. Grosse-Kunstleve <rwgk@google.com>
      Co-authored-by: default avatarHenry Schreiner <henryschreineriii@gmail.com>
      705efcce
    • Henry Schreiner's avatar
      e0f2c715
  18. Mar 21, 2024