[yast/yast-python-bindings] d3dafb: Adapt Rakefile and Dockerfile for SLE-15-SP2
Branch: refs/heads/master Home: https://github.com/yast/yast-python-bindings Commit: d3dafb8bf2eec2896d2fc5f0b97d4b2d373559c8 https://github.com/yast/yast-python-bindings/commit/d3dafb8bf2eec2896d2fc5f0... Author: Ladislav Slezák <lslezak@suse.cz> Date: 2020-04-21 (Tue, 21 Apr 2020) Changed paths: M Dockerfile M Rakefile Log Message: ----------- Adapt Rakefile and Dockerfile for SLE-15-SP2 Commit: 97e597bb9a1f017416b792ed8f5eb6e07dd7fd0f https://github.com/yast/yast-python-bindings/commit/97e597bb9a1f017416b792ed... Author: Petr Pavlu <petr.pavlu@suse.com> Date: 2021-02-13 (Sat, 13 Feb 2021) Changed paths: M src/YPython.cc Log Message: ----------- Normalize Python exception values before processing them An exception value returned by PyErr_Fetch() can be in certain situations "unnormalized", which means the value does not have to be an instance of the returned exception type. This typically happens when an exception is set from a native library. For instance:
PyObject *w = Py_BuildValue("(i,i)", 123, 456); PyErr_SetObject(NativeError, w);
The exception value is in this case a tuple object and not an instance of NativeError, until the exception gets normalized. Code in YPython::PyErrorHandler() passes an obtained exception value directly to traceback.format_exception(). This method however expects that the value is already a valid exception object and fails quickly with an AttributeError when that is not the case. This subsequently results in an unhandled error in YPython::PyErrorHandler() and in a SystemError when other Python/C API functions are invoked. The patch fixes the problem by calling PyErr_NormalizeException() in YPython::PyErrorHandler() to normalize the value to be an exception object. Commit: 9342276816a1333d922ff7ebf9eda64501c5a9c2 https://github.com/yast/yast-python-bindings/commit/9342276816a1333d922ff7eb... Author: Petr Pavlu <petr.pavlu@suse.com> Date: 2021-02-22 (Mon, 22 Feb 2021) Changed paths: M src/YPython.cc Log Message: ----------- Fix a leaked reference to the traceback module PyImport_ImportModule("traceback") in YPython::PyErrorHandler() returns a new reference. Add a call to Py_XDECREF() once the code is done with the module to avoid leaking its reference. Commit: e0a2bb6722a29ffe2a53f2a51c3acee50930abd0 https://github.com/yast/yast-python-bindings/commit/e0a2bb6722a29ffe2a53f2a5... Author: Petr Pavlu <petr.pavlu@suse.com> Date: 2021-02-22 (Mon, 22 Feb 2021) Changed paths: M package/yast2-python-bindings.changes M package/yast2-python-bindings.spec Log Message: ----------- Bump version & changelog Commit: b023478808127c5e12a7e3915f3385b03d232bf5 https://github.com/yast/yast-python-bindings/commit/b023478808127c5e12a7e391... Author: Ladislav Slezák <lslezak@suse.cz> Date: 2021-03-31 (Wed, 31 Mar 2021) Changed paths: M .github/workflows/ci.yml M Rakefile Log Message: ----------- Adapt Rakefile and GitHub Actions for SLE-15-SP3 Commit: ffb87ad4f2898077a9236ecec3e175efb61c06de https://github.com/yast/yast-python-bindings/commit/ffb87ad4f2898077a9236ece... Author: David Mulder <dmulder@suse.com> Date: 2021-03-31 (Wed, 31 Mar 2021) Changed paths: M package/yast2-python-bindings.changes M package/yast2-python-bindings.spec M src/YPython.cc Log Message: ----------- Merge pull request #36 from petrpavlu/SLE-15-SP2-exception-formatting Fix backtrace formatting in YPython::PyErrorHandler() Commit: 1b48b77382355a8871e179f68e9b3231628cc163 https://github.com/yast/yast-python-bindings/commit/1b48b77382355a8871e179f6... Author: Petr Pavlu <petr.pavlu@suse.com> Date: 2021-08-16 (Mon, 16 Aug 2021) Changed paths: M package/yast2-python-bindings.changes M package/yast2-python-bindings.spec M src/YPython.cc Log Message: ----------- Merge remote-tracking branch 'origin/SLE-15-SP2' Commit: 2c226e6bd433bd306a45aff1df3e11f72225a396 https://github.com/yast/yast-python-bindings/commit/2c226e6bd433bd306a45aff1... Author: David Díaz <1691872+dgdavid@users.noreply.github.com> Date: 2021-08-18 (Wed, 18 Aug 2021) Changed paths: M package/yast2-python-bindings.changes M package/yast2-python-bindings.spec M src/YPython.cc Log Message: ----------- Merge pull request #38 from petrpavlu/SLE-15-SP3-exception-formatting Fix backtrace formatting in YPython::PyErrorHandler() (Merge SLE-15-SP2 into SLE-15-SP3) Commit: a328027e3edf6240bc95b67331b1062243869704 https://github.com/yast/yast-python-bindings/commit/a328027e3edf6240bc95b673... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-08-18 (Wed, 18 Aug 2021) Changed paths: M .github/workflows/ci.yml M Rakefile M package/yast2-python-bindings.changes M package/yast2-python-bindings.spec M src/YPython.cc Log Message: ----------- Merge remote-tracking branch 'origin/SLE-15-SP3' into sync-sp3-master Commit: 7b06a006bc52ab5de23bb78adbfbe39b3dd02101 https://github.com/yast/yast-python-bindings/commit/7b06a006bc52ab5de23bb78a... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-08-18 (Wed, 18 Aug 2021) Changed paths: M .github/workflows/ci.yml M Rakefile Log Message: ----------- Revert "Adapt Rakefile and GitHub Actions for SLE-15-SP3" This reverts commit b023478808127c5e12a7e3915f3385b03d232bf5. Commit: 9a8472c06baf0bd795afbfebd3f4d6974f916310 https://github.com/yast/yast-python-bindings/commit/9a8472c06baf0bd795afbfeb... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-08-18 (Wed, 18 Aug 2021) Changed paths: M package/yast2-python-bindings.changes Log Message: ----------- Fix changelog To have changes in sequence. Commit: 03138218b394d82f4ff7866abd54890d9a790f4b https://github.com/yast/yast-python-bindings/commit/03138218b394d82f4ff7866a... Author: David Díaz <1691872+dgdavid@users.noreply.github.com> Date: 2021-08-18 (Wed, 18 Aug 2021) Changed paths: M package/yast2-python-bindings.changes M package/yast2-python-bindings.spec M src/YPython.cc Log Message: ----------- Merge pull request #40 from yast/sync-sp3-master Fix backtrace formatting in YPython::PyErrorHandler() [Merge SLE-15-SP3 into master] Compare: https://github.com/yast/yast-python-bindings/compare/8dd1105c49a0...03138218...
participants (1)
-
David Díaz