1. 14 Sep, 2020 2 commits
  2. 13 Sep, 2020 1 commit
  3. 12 Sep, 2020 1 commit
    • fix: support NVIDIA-PGI HPC SDK (#2475) · 38370a87
      * Added guards to the includes
      
      Added new CI config
      
      Added new trigger
      
      Changed CI workflow name
      
      Debug CI
      
      Debug CI
      
      Debug CI
      
      Debug CI
      
      Added flags fro PGI
      
      Disable Eigen
      
      Removed tests that fail
      
      Uncomment lines
      
      * fix: missing include
      
      fix: minor style cleanup
      
      tests: support skipping
      
      ci: remove and tighten a bit
      
      fix: try msvc workaround for pgic
      
      * tests: split up prealoc tests
      
      * fix: PGI compiler fix
      
      * fix: PGI void_t only
      
      * fix: try to appease nvcc
      
      * ci: better ordering for slow tests
      
      * ci: minor improvements to testing
      
      * ci: Add NumPy to testing
      
      * ci: Eigen generates CUDA warnings / PGI errors
      
      * Added CentOS7 back for a moment
      
      * Fix YAML
      
      * ci: runs-on missing
      
      * centos7 is missing pytest
      
      * ci: use C++11 on CentOS 7
      
      * ci: test something else
      
      * Try just adding flags on CentOS 7
      
      * fix: CentOS 7
      
      * refactor: move include to shared location
      
      * Added verbose flag
      
      * Try to use system cmake3 on CI
      
      * Try to use system cmake3 on CI, attempt2
      
      * Try to use system cmake3 on CI, attempt3
      
      * tests: not finding pytest should be a warning, not a fatal error
      
      * tests: cleanup
      
      * Weird issue?
      
      * fix: final polish
      
      Co-authored-by: Andrii Verbytskyi <andrii.verbytskyi@mpp.mpg.de>
      Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
      Co-authored-by: Andrii Verbytskyi <averbyts@cern.ch>
      andriish committed
  4. 11 Sep, 2020 1 commit
  5. 10 Sep, 2020 2 commits
  6. 09 Sep, 2020 1 commit
  7. 08 Sep, 2020 1 commit
  8. 06 Sep, 2020 3 commits
  9. 05 Sep, 2020 2 commits
  10. 04 Sep, 2020 1 commit
  11. 03 Sep, 2020 1 commit
  12. 01 Sep, 2020 1 commit
  13. 31 Aug, 2020 2 commits
  14. 28 Aug, 2020 2 commits
    • Fixing `pybind11::bytes()` ambiguous conversion issue. · 3c061f21
      Adding missing `bytes` type to `test_constructors()`, to exercise the code change.
      
      The changes in the PR were cherry-picked from PR #2409 (with a very minor
      modification in test_pytypes.py related to flake8). Via PR #2409, these
      changes were extensively tested in the Google environment, as summarized here:
      https://docs.google.com/document/d/1TPL-J__mph_yHa1quDvsO12E_F5OZnvBaZlW9IIrz8M/
      The changes in this PR did not cause an issues at all.
      
      Note that `test_constructors()` before this PR passes for Python 2 only
      because `pybind11::str` can hold `PyUnicodeObject` or `PyBytesObject`. As a
      side-effect of this PR, `test_constructors()` no longer relies on this
      permissive `pybind11::str` behavior. However, the permissive behavior is still
      exercised/exposed via the existing `test_pybind11_str_raw_str()`.
      
      The test code change is designed to enable easy removal later, when Python 2
      support is dropped.
      
      For completeness: confusingly, the non-test code changes travelled through PR
      
      Example `ambiguous conversion` error fixed by this PR:
      ```
      pybind11/tests/test_pytypes.cpp:214:23: error: ambiguous conversion for functional-style cast from 'pybind11::detail::item_accessor' (aka 'accessor<accessor_policies::generic_item>') to 'py::bytes'
                  "bytes"_a=py::bytes(d["bytes"]),
                            ^~~~~~~~~~~~~~~~~~~~
      pybind11/include/pybind11/detail/../pytypes.h:957:21: note: candidate constructor
          PYBIND11_OBJECT(bytes, object, PYBIND11_BYTES_CHECK)
                          ^
      pybind11/include/pybind11/detail/../pytypes.h:957:21: note: candidate constructor
      pybind11/include/pybind11/detail/../pytypes.h:987:15: note: candidate constructor
      inline bytes::bytes(const pybind11::str &s) {
                    ^
      1 error generated.
      ```
      Ralf W. Grosse-Kunstleve committed
    • Fix bug roundtripping datetime.time objects after midnight in eastern hemisphere… · 6a192781
      Fix bug roundtripping datetime.time objects after midnight in eastern hemisphere timezones (#2417) (#2438)
      
      * Fix bug roundtripping datetime.time objects after midnight in eastern hemisphere timezones (#2417)
      
      * tests: check more timezones
      
      * Fix review remarks: remove useless comment and skip setting TZ environment variable on Windows
      Yannick Jadoul committed
  15. 26 Aug, 2020 3 commits
  16. 25 Aug, 2020 1 commit
  17. 24 Aug, 2020 2 commits
  18. 23 Aug, 2020 2 commits
  19. 22 Aug, 2020 2 commits
  20. 21 Aug, 2020 2 commits
  21. 20 Aug, 2020 4 commits
  22. 19 Aug, 2020 3 commits
    • tests: avoid putting build products into source directory (#2353) · 04fdc44f
      * tests: keep source dir clean
      
      * ci: make first build inplace
      
      * ci: drop dev setting (wasn't doing anything)
      
      * tests: warn if source directory is dirty
      Henry Schreiner committed
    • feat: new FindPython support (#2370) · 1729aae9
      * feat: FindPython support
      
      * refactor: rename to PYBIND11_FINDPYTHON
      
      * docs: Caps fixes
      
      * feat: NOPYTHON mode
      
      * test: check simple call
      
      * docs: add changelog/upgrade guide
      
      * feat: Support Python3 and Python2
      
      * refactor: Use targets in tests
      
      * fix: support CMake 3.4+
      
      * feat: classic search also finds virtual environments
      
      * docs: some updates from @wjakob's review
      
      * fix: wrong name for QUIET mode variable, reported by @skoslowski
      
      * refactor: cleaner output messaging
      
      * fix: support debug Python's in FindPython mode too
      
      * fixup! refactor: cleaner output messaging
      
      * fix: missing pybind11_FOUND and pybind11_INCLUDE_DIR restored to subdir mode
      
      * fix: nicer reporting of Python / PyPy
      
      * fix: out-of-order variable fix
      
      * docs: minor last-minute cleanup
      Henry Schreiner committed