1. 02 Jun, 2019 2 commits
  2. 08 Feb, 2019 8 commits
    • Pino Toscano's avatar
      python: exclude the embedded PyCXX from krazy checks · 70587b4e
      Pino Toscano authored
      Otherwise the local copy will get local changes, and diverge from the
      upstream PyCXX.  The joy of embedded copies...
      70587b4e
    • Pino Toscano's avatar
      python: bump PyCXX to 7.1.0 · d350f27d
      Pino Toscano authored
      Bump the embedded copy of PyCXX to 7.1.0, using only the Python2 sources
      with a layout that matches the upstream sources (and thus it is easier
      to build the sources with no changes).
      
      Adapt krosspython to the new PyCXX:
      - adjust the paths to sources, and to includes to the new layout of the
        files
      - build the new cxx_exceptions.cxx
      - build with -DPYCXX_PYTHON_2TO3 to use all the compatibility functions
        not available in Python 3
      - build the C sources as C99, as they use C99 features
      - explicitly use PyCxx_ssize_t as type for a couple of methods, instead
        of 'int' used by old versions
      - unambiguate one Py::MethodDefExt constructor call
      d350f27d
    • Pino Toscano's avatar
      python: simplify dicts comparisons · d837a8c0
      Pino Toscano authored
      unittests supports it already, so no need to code it manually.
      d837a8c0
    • Pino Toscano's avatar
      python: use a decorator to skip tests based on imports · babf591e
      Pino Toscano authored
      Create a decorator to skip a test in case a module is not installed,
      and use it for the two tests that use PyQt5.
      babf591e
    • Pino Toscano's avatar
      python: initialize PythonExtension only once · 0517b41c
      Pino Toscano authored
      Make sure to initialize the methods, attributes, etc of PythonExtension
      only once, instead of at every contructor execution.  While this is not
      a problem with the current version of PyCXX, it will be a problem with
      newer versions.
      0517b41c
    • Pino Toscano's avatar
      python: modernize usage of assert_() · 05b9267d
      Pino Toscano authored
      Switch away from the deprecated assert_(), using the more appropriate
      versions: assertTrue(), assertEqual(), assertNotEqual(), and assertIn().
      Because of this, split a few 'cond1 and cond2' asserts into multiple
      checks.
      
      While doing all the changes, try to not exceed 80 columns.
      05b9267d
    • Pino Toscano's avatar
      python: PEP8 empty lines · 73104079
      Pino Toscano authored
      Add empty lines as needed.
      73104079
    • Pino Toscano's avatar
      python: PEP8 whitespace changes · af272429
      Pino Toscano authored
      - reindent the code to 4 spaces per indentation level, instead of tabs
      - add extra whitespace after ',' or ':'
      - remove extra spaces after '('/'(', and before ')'/']'
      . remove trailing whitespaces
      
      This commit is best viewed with 'git diff -w'.
      af272429
  3. 04 Feb, 2019 1 commit
  4. 28 Mar, 2018 1 commit
  5. 09 Nov, 2017 1 commit
  6. 08 Nov, 2017 1 commit
  7. 26 Jul, 2017 1 commit
    • Tobias C. Berner's avatar
      Fix build on FreBSD · 81e17bf1
      Tobias C. Berner authored
      Summary:
      kross-interpreters/python/cxx/Objects.hxx:1081:15: error: cannot initialize
            a member subobject of type 'int' with an rvalue of type 'nullptr_t'
                  , offset( NULL )
                    ^       ~~~~
      
      Reviewers: #freebsd, aspotashev
      
      Differential Revision: https://phabricator.kde.org/D6928
      81e17bf1
  8. 20 Jan, 2017 1 commit
  9. 20 Jun, 2016 1 commit
  10. 18 Jun, 2016 1 commit
  11. 17 Jun, 2016 9 commits
  12. 15 Jun, 2016 2 commits
  13. 20 Jun, 2015 2 commits
  14. 12 May, 2015 9 commits