Skip to content

Commit cb51f78

Browse files
authored
Merge pull request #287 from mattip/pypy3.12
add pypy3.12 wheel
2 parents d0ba4dd + 611c7d9 commit cb51f78

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎.github/workflows/cibuildwheel.yml‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: build-wheels
1+
name: cibuildwheel
22

33
# Controls when the workflow will run
44
on:
55
# Triggers the workflow on push or pull request events but only for the master branch
66
push:
7-
branches: [ master, unstuck-vmprof ]
7+
branches: [ master ]
88
pull_request:
9-
branches: [ master, unstuck-vmprof ]
9+
branches: [ master ]
1010

1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:
@@ -52,17 +52,19 @@ jobs:
5252

5353

5454
build_pypy_wheels:
55-
name: Build pypy wheels
55+
name: Build pypy wheels and sdist
5656
runs-on: ubuntu-24.04
5757
strategy:
5858
fail-fast: false
59+
matrix:
60+
python_version: ['pypy-3.11', 'pypy-3.12']
5961

6062
steps:
6163
# Note: not inside a docker
6264
- uses: actions/checkout@v7
6365
- uses: actions/setup-python@v7
6466
with:
65-
python-version: 'pypy-3.11'
67+
python-version: ${{ matrix.python_version }}
6668

6769
- name: Install system libraries
6870
run: sudo apt install -y libunwind-dev libelf-dev libdwarf-dev rename

‎.github/workflows/tests.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: test
22

33
on:
44
push:
5-
branches: [master, unstuck-vmprof]
5+
branches: [master]
66
pull_request:
7-
branches: [master, unstuck-vmprof]
7+
branches: [master]
88
workflow_dispatch:
99

1010
jobs:

‎vmprof/test/test_run.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ def test_nested_call():
191191
t = t['']
192192
assert len(t.children) == 1
193193
assert 'function_foo' in t[''].name
194-
if sys.version_info >= (3, 12):
194+
# PEP 709 (inlined comprehensions) is CPython 3.12+, PyPy still creates
195+
# a separate <listcomp> code object and frame.
196+
if sys.version_info >= (3, 12) and '__pypy__' not in sys.builtin_module_names:
195197
assert len(t[''].children) == 0
196198
else:
197199
assert len(t[''].children) == 1

0 commit comments

Comments
 (0)