From 2df6d438c9f9502aa486e7659444f4914b9695a2 Mon Sep 17 00:00:00 2001 From: Victor Blomqvist Date: Sun, 22 Dec 2024 22:01:12 +0100 Subject: [PATCH] Prep 6.10.0 --- CHANGELOG.rst | 23 ++++++++++++++++++----- CITATION.cff | 4 ++-- README.rst | 2 +- TODO.txt | 1 + pymunk/_pyglet15_util.py | 4 ++-- pymunk/_version.py | 2 +- pymunk/vec2d.py | 4 ++-- pyproject.toml | 2 +- 8 files changed, 28 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6026f29f..f9706d70 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,10 +3,23 @@ Changelog ========= -.. Pymunk 6.10.0?? - Changes: - - Added from_polars() static method to Vec2d to easily create Vec2ds from polar coordinates. - - Improved docs (of Vec2d) +Pymunk 6.10.0 (2024-12-22) +-------------------------- + +**Pyodode/pyscript fixes** + +This is a minor update to Pymunk that make the Pyodide wheels working again. +It also introduces tests in the build to prevent similar issues in the future. + +Changes: + +- Added from_polars() static method to Vec2d to easily create Vec2ds from + polar coordinates. +- Improved docs (of Vec2d) +- Relax CFFI version requirement for pyodide to let it work even before + Pyodide updates CFFI. +- Test pyodide wheels when built. + Pymunk 6.9.0 (2024-10-13) ------------------------- @@ -14,7 +27,7 @@ Pymunk 6.9.0 (2024-10-13) **Python 3.13** This is a minor update to Pymunk with wheels for CPython 3.13. In addition, -with this release Pymunk no longer officialy support Python 3.7, since its not +with this release Pymunk no longer officially support Python 3.7, since its not supported anymore, and CFFI, which Pymunk uses, no longer provides wheels for it. In addition, Pypy is somewhat broken until they release a version with latest CFFI. Details on the Pypy issue here: diff --git a/CITATION.cff b/CITATION.cff index 05171e89..26a348ba 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -5,6 +5,6 @@ authors: given-names: "Victor" title: "Pymunk" abstract: "A easy-to-use pythonic rigid body 2d physics library" -version: 6.9.0 -date-released: 2024-10-13 +version: 6.10.0 +date-released: 2024-12-22 url: "https://pymunk.org" diff --git a/README.rst b/README.rst index 7be8574d..3496d044 100644 --- a/README.rst +++ b/README.rst @@ -18,7 +18,7 @@ the Pymunk webpage for some examples. 2007 - 2024, Victor Blomqvist - vb@viblo.se, MIT License -This release is based on the latest Pymunk release (6.9.0), +This release is based on the latest Pymunk release (6.10.0), using Chipmunk2D 7 rev dfc2fb8ca023ce6376fa2cf4a7f91c92ee08a970. diff --git a/TODO.txt b/TODO.txt index 5e670706..0bf413a7 100644 --- a/TODO.txt +++ b/TODO.txt @@ -35,6 +35,7 @@ v6.x - Think about the copyright notice in some files. Keep / put everywere / remove? - Constraint private accumulated over previous time step properties are not saved when pickle. - Add a test to check that version property is correctly set matching setup.py (and readme?) +- Make space step size default 1/60, and/or make it possible to set on the space instead of pasing in to step function to make api easier to use "right" v7+ (all potentially breaking changes) --- diff --git a/pymunk/_pyglet15_util.py b/pymunk/_pyglet15_util.py index 154d8307..2e8a6f28 100644 --- a/pymunk/_pyglet15_util.py +++ b/pymunk/_pyglet15_util.py @@ -133,9 +133,9 @@ def draw_circle( c.opacity = color[3] self.draw_shapes.append(c) cc = pos + Vec2d.from_polar(radius, angle) - c = outline_color.as_int() + oc = outline_color.as_int() l = pyglet.shapes.Line( - pos.x, pos.y, cc.x, cc.y, width=1, color=c[:3], batch=self.batch, group=fg + pos.x, pos.y, cc.x, cc.y, width=1, color=oc[:3], batch=self.batch, group=fg ) self.draw_shapes.append(l) diff --git a/pymunk/_version.py b/pymunk/_version.py index 601d848f..be727aff 100644 --- a/pymunk/_version.py +++ b/pymunk/_version.py @@ -32,7 +32,7 @@ cp = _chipmunk_cffi.lib ffi = _chipmunk_cffi.ffi -version = "6.9.0" +version = "6.10.0" chipmunk_version = "%s-%s" % ( ffi.string(cp.cpVersionString).decode("utf-8"), diff --git a/pymunk/vec2d.py b/pymunk/vec2d.py index 388dea8c..e73374fd 100644 --- a/pymunk/vec2d.py +++ b/pymunk/vec2d.py @@ -21,8 +21,8 @@ # SOFTWARE. # ---------------------------------------------------------------------------- -"""This module contain the Vec2d class that is used in all of pymunk when a -vector is needed. +"""This module contains the Vec2d class that is used in all of Pymunk when a +2d vector is needed. It is easy to create Vec2ds:: diff --git a/pyproject.toml b/pyproject.toml index e3812e90..95c8ae57 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta" [project] name = "pymunk" -version = "6.9.0" # remember to change me for new versions! +version = "6.10.0" # remember to change me for new versions! # Require cffi >1.14.0 since that (and older) has problem with returing structs from functions. # Require cffi >= 1.17.1 since older cant work with latest setuptools version dependencies = [