1. May 11, 2024
  2. May 07, 2024
  3. Apr 10, 2024
  4. Apr 02, 2024
  5. Mar 28, 2024
  6. 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
  7. Mar 21, 2024
  8. Feb 14, 2024
  9. Feb 06, 2024
  10. Jan 29, 2024
  11. Jan 17, 2024
  12. Jan 14, 2024
  13. Jan 08, 2024
  14. Jan 02, 2024
  15. Dec 30, 2023
  16. Dec 15, 2023
  17. Dec 14, 2023
  18. Dec 07, 2023
  19. Dec 06, 2023
  20. Nov 30, 2023