Diff below updates py-msgpack to 1.0.7. As far as I can tell this update
is just a maintenance release with no big changes:
https://github.com/msgpack/msgpack-python/compare/v1.0.5...v1.0.7

This release relies on Cython-3.0, which we do not have. Cython-0.29.30
still works. Patched pyproject.toml to exclude source files being
packaged.

Tests run successfully, and all consumers - except
sysutils/borgbackup/2.0 - build. I have a separate diff for the latter
in my tree. Run tested with both borgbackup-1.2 and -2.0 on amd64.

Comments / OK?


diff --git Makefile Makefile
index bf892d5cbdf..7bb89b01eee 100644
--- Makefile
+++ Makefile
@@ -1,6 +1,6 @@
 COMMENT =              messagepack (de)serializer
 
-MODPY_EGG_VERSION =    1.0.5
+MODPY_EGG_VERSION =    1.0.7
 EPOCH =                        0
 DISTNAME =             msgpack-${MODPY_EGG_VERSION}
 PKGNAME =              py-msgpack-${MODPY_EGG_VERSION}
diff --git distinfo distinfo
index 1003d9d1b40..aefa6b0aa62 100644
--- distinfo
+++ distinfo
@@ -1,2 +1,2 @@
-SHA256 (msgpack-1.0.5.tar.gz) = wHVUQoTq3Fzdxw9HVzMdmdy8FrK71ISdFfiq5M820xw=
-SIZE (msgpack-1.0.5.tar.gz) = 127834
+SHA256 (msgpack-1.0.7.tar.gz) = Vy78k9t6TSfkBFAZdcptLZd1cFwtkiOQ2Hj892jZLIc=
+SIZE (msgpack-1.0.7.tar.gz) = 166311
diff --git patches/patch-pyproject_toml patches/patch-pyproject_toml
new file mode 100644
index 00000000000..535c82299e2
--- /dev/null
+++ patches/patch-pyproject_toml
@@ -0,0 +1,26 @@
+Allow use of Cython>=0.29.30, which we have in ports.
+
+Do not package source files.
+
+Index: pyproject.toml
+--- pyproject.toml.orig
++++ pyproject.toml
+@@ -2,7 +2,7 @@
+ requires = [
+     # Also declared in requirements.txt, if updating here please also update
+     # there
+-    "Cython~=3.0.0",
++    "Cython~=0.29.30",
+     "setuptools >= 35.0.2",
+ ]
+ build-backend = "setuptools.build_meta"
+@@ -41,6 +41,9 @@ Changelog = "https://github.com/msgpack/msgpack-python
+ 
+ [tool.setuptools.dynamic]
+ version = {attr = "msgpack.__version__"}
++
++[tool.setuptools.exclude-package-data]
++"*" = ["*.cpp", "*.h", "*.pyx"]
+ 
+ [tool.black]
+ line-length = 100

Reply via email to