Skip to content

Commit f6bf849

Browse files
committed
Drop support for Python 3.8
1 parent 2d6e031 commit f6bf849

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

.github/workflows/wheels.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
11+
os:
12+
[ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
1213

1314
steps:
1415
- uses: actions/checkout@v4
@@ -21,10 +22,10 @@ jobs:
2122
python3 -c "import pathlib,glob;pathlib.Path('GITHUB_ENV').write_text('SDIST_PATH' + glob.glob('dist/*.tar.gz')[0])"
2223
2324
- name: Build wheels
24-
uses: pypa/cibuildwheel@v2.22.0
25+
uses: pypa/cibuildwheel@v2.23.1
2526
env:
2627
CIBW_BUILD:
27-
"cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* pp39-* pp310-*"
28+
"cp39-* cp310-* cp311-* cp312-* cp313-* pp39-* pp310-* pp311-*"
2829
# "cp38-* cp39-* cp310-* cp311-* cp312-* cp313-*"
2930
CIBW_TEST_COMMAND: "python -m pymunk.tests"
3031
# CIBW_BUILD_VERBOSITY: 3
@@ -56,7 +57,7 @@ jobs:
5657
- uses: actions/checkout@v4
5758
with:
5859
submodules: true
59-
- uses: pypa/cibuildwheel@v2.22.0
60+
- uses: pypa/cibuildwheel@v2.23.1
6061
env:
6162
CIBW_PLATFORM: pyodide
6263
PYMUNK_BUILD_SLIM: 1

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ Older Pythons
152152

153153
- Support for Python 2 (and Python 3.0 - 3.5) was dropped with Pymunk 6.0.
154154
- Support for Python 3.6 was dropped with Pymunk 6.5.2.
155-
- Support for Python 3.7 was dropped with Pymunk 6.9.0
155+
- Support for Python 3.7 was dropped with Pymunk 6.9.0.
156+
- Support for Python 3.8 was dropped with Pymunk 7.0.0.
156157

157158
If you use any of these legacy versions of Python, please use an older
158159
Pymunk version. (It might work on newer Pymunks as well, but it's not tested,

pymunk/body.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,18 @@ def constraints(self) -> Set["Constraint"]:
660660

661661
@property
662662
def shapes(self) -> Set["Shape"]:
663-
"""Get the shapes attached to this body."""
663+
"""Get the shapes attached to this body.
664+
665+
In case you only have a single shape attached to the body you can
666+
unpack it out easily:
667+
668+
>>> from pymunk import Circle
669+
>>> b = Body(1)
670+
>>> circle = Circle(b, 2)
671+
>>> [shape] = b.shapes
672+
>>> shape == circle
673+
True
674+
"""
664675
return set(self._shapes)
665676

666677
def local_to_world(self, v: Tuple[float, float]) -> Vec2d:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ classifiers = [
3333
"Programming Language :: Python",
3434
"Programming Language :: Python :: 3",
3535
]
36-
requires-python = ">=3.8"
36+
requires-python = ">=3.9"
3737

3838
[project.optional-dependencies]
3939
dev = ["pyglet", "pygame", "sphinx", "aafigure", "wheel", "matplotlib", "numpy"]

0 commit comments

Comments
 (0)