1. 10 Sep, 2020 1 commit
  2. 09 Sep, 2020 1 commit
  3. 06 Sep, 2020 1 commit
  4. 31 Aug, 2020 2 commits
  5. 07 Aug, 2020 1 commit
  6. 05 Aug, 2020 1 commit
  7. 21 Jul, 2020 1 commit
  8. 11 Jul, 2020 1 commit
  9. 10 Jul, 2020 1 commit
  10. 03 Jul, 2020 1 commit
  11. 27 Jun, 2020 2 commits
    • Pino Toscano's avatar
      scripting: remove char* hacks · 56956099
      Pino Toscano authored
      The Python C API has been using const char * arguments for the APIs
      we use, so there is (hopefully) no more need to use temporary strings.
      Also, docs and examples show that static strings are fine.
      
      Hence, remove the hacks used when calling PyImport_AppendInittab,
      PyRun_SimpleString, and PyImport_AddModule, and directly pass static
      C strings.
      56956099
    • Pino Toscano's avatar
      cmake: fallback to "python" as boost component · 67eaa48a
      Pino Toscano authored
      In case there is no "python3" component, look for "python"; in case
      it represents Python 2, it should be rejected by the build checks
      later on.
      67eaa48a
  12. 18 Jun, 2020 2 commits
  13. 17 Jun, 2020 2 commits
  14. 08 Jun, 2020 1 commit
  15. 04 Jun, 2020 6 commits
  16. 20 May, 2020 2 commits
  17. 17 May, 2020 1 commit
  18. 11 May, 2020 5 commits
  19. 10 May, 2020 1 commit
  20. 09 May, 2020 1 commit
  21. 05 May, 2020 2 commits
  22. 03 May, 2020 4 commits
    • Pino Toscano's avatar
      cmake: switch python & boost-python search to py3 · 1fdeff25
      Pino Toscano authored
      Python 2 is EOL now, and Python 3 has been available in distros for
      years already, so it is time to switch exclusively to Python 3.
      
      The actual changes to the BoostPython module are:
      - look for the python3 boost component (instead of python): while boost
        upstream does not provide it, most of the distros do; the alternative
        would be to look for the pythonXY components, which is not ideal...
      - look for the python libraries >= 3, setting as additional versions
        for the cmake module all the non-EOL Python 3 versions
      - set as Python versions for pkg-config all the non-EOL ones, using the
        embed version starting from Python 3.8 [1]
      
      [1] https://bugs.python.org/issue36721
      
      BUG: 419237
      FIXED-IN: 20.07.80
      1fdeff25
    • Pino Toscano's avatar
      scripting: use PyErr_NormalizeException · 8ef1d20c
      Pino Toscano authored
      make sure the Python objects for the exception are normalized; not doing
      so seems working fine with Python 2.7, however with Python 3.8 it is
      needed to be able to call traceback.format_exception() later with those
      objects
      8ef1d20c
    • Pino Toscano's avatar
      scripting: update Python-Kig highlight definition · c36a3ccd
      Pino Toscano authored
      synchronize it from the current Python definition in
      syntax-highlighting, adding our customizations on top
      c36a3ccd
    • Pino Toscano's avatar
      scripting: properly enable line numbers · a3e63345
      Pino Toscano authored
      use the KTextEditor ConfigInterface to enable the line numbers, instead
      of trying to trigger the action for it
      a3e63345