diff --git a/.github/workflows/github-deploy.yml b/.github/workflows/github-deploy.yml index 69675a4..b3508ef 100644 --- a/.github/workflows/github-deploy.yml +++ b/.github/workflows/github-deploy.yml @@ -16,12 +16,19 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04, windows-2019, macos-11] + architecture: [x86_64, arm64] + platform: [manylinux2014, musllinux_1_1] steps: - uses: actions/checkout@v4 - name: Build wheels uses: pypa/cibuildwheel@v2.17.0 + env: + CIBW_ARCHS_MACOS: ${{ matrix.architecture }} + CIBW_PLATFORM: ${{ matrix.platform }} # Set platform based on matrix + CIBW_BUILD_VERBOSITY: 1 + - uses: actions/upload-artifact@v4 with: path: ./wheelhouse/*.whl diff --git a/CHANGELOG b/CHANGELOG index a6ddce5..e32a834 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,10 @@ CHANGELOG ========= +1.6.1 (2024-10-31) + +- Fix error not cleared from an internal PyObject_GetAttrString call + 1.6.0 (2023-12-07) - Drop support 2.7-3.5 and clean backward compatible code (pull/152) diff --git a/setup.py b/setup.py index 9fd4048..0345247 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ HOMEPAGE = "https://github.com/sumerc/yappi" NAME = "yappi" -VERSION = "1.6.0" +VERSION = "1.6.1" _DEBUG = False # compile/link code for debugging _PROFILE = False # profile yappi itself diff --git a/yappi/_yappi.c b/yappi/_yappi.c index 56187c9..030acf3 100644 --- a/yappi/_yappi.c +++ b/yappi/_yappi.c @@ -688,8 +688,12 @@ _code2pit(PyFrameObject *fobj, uintptr_t current_tag) if (class_name) { pit->name = PyStr_FromFormat("%s.%s", PyStr_AS_CSTRING(class_name), PyStr_AS_CSTRING(cobj->co_name)); Py_DECREF(class_name); + } else { + PyErr_Clear(); } Py_DECREF(class_obj); + } else { + PyErr_Clear(); } } }