Skip to content

Commit

Permalink
Prep 6.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
viblo committed Dec 22, 2024
1 parent 8dff21e commit 2df6d43
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 14 deletions.
23 changes: 18 additions & 5 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,31 @@ 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)
-------------------------

**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:
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ the Pymunk webpage for some examples.

2007 - 2024, Victor Blomqvist - [email protected], 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.


Expand Down
1 change: 1 addition & 0 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
---
Expand Down
4 changes: 2 additions & 2 deletions pymunk/_pyglet15_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion pymunk/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
4 changes: 2 additions & 2 deletions pymunk/vec2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 2df6d43

Please sign in to comment.