git: fc3c3eb3d493 - main - math/py-rectangle-packer: update 2.0.2 → 2.1.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Jun 2026 17:11:49 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fc3c3eb3d4939e9fbfdb3fb399819cfe3050b002
commit fc3c3eb3d4939e9fbfdb3fb399819cfe3050b002
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-23 17:08:30 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-23 17:11:29 +0000
math/py-rectangle-packer: update 2.0.2 → 2.1.0
---
math/py-rectangle-packer/Makefile | 13 ++++++++-----
math/py-rectangle-packer/distinfo | 6 +++---
math/py-rectangle-packer/files/patch-pyproject.toml | 10 ++++++++++
math/py-rectangle-packer/files/patch-setup.py | 14 ++++++++++++++
4 files changed, 35 insertions(+), 8 deletions(-)
diff --git a/math/py-rectangle-packer/Makefile b/math/py-rectangle-packer/Makefile
index 7961e650865e..0f87a9084ab4 100644
--- a/math/py-rectangle-packer/Makefile
+++ b/math/py-rectangle-packer/Makefile
@@ -1,6 +1,5 @@
PORTNAME= rectangle-packer
-DISTVERSION= 2.0.2
-PORTREVISION= 1
+DISTVERSION= 2.1.0
CATEGORIES= math python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,8 +10,11 @@ WWW= https://github.com/Penlect/rectangle-packer
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
USES= python
-USE_PYTHON= autoplist cython0 distutils unittest
+USE_PYTHON= pep517 autoplist cython unittest
USE_GITHUB= yes
GH_ACCOUNT= Penlect
@@ -22,7 +24,8 @@ TEST_WRKSRC= ${WRKSRC}/test
post-install:
@${STRIP_CMD} \
- ${STAGEDIR}${PYTHON_SITELIBDIR}/rpack/_core${PYTHON_TAG}.so \
- ${STAGEDIR}${PYTHON_SITELIBDIR}/rpack/_rpack${PYTHON_TAG}.so
+ ${STAGEDIR}${PYTHON_SITELIBDIR}/rpack/_core${PYTHON_TAG}.so
+
+# tests as of 2.1.0: Ran 85 tests in 2.154s, OK (skipped=1)
.include <bsd.port.mk>
diff --git a/math/py-rectangle-packer/distinfo b/math/py-rectangle-packer/distinfo
index 4c8143b36c56..becf3f595520 100644
--- a/math/py-rectangle-packer/distinfo
+++ b/math/py-rectangle-packer/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1697012375
-SHA256 (Penlect-rectangle-packer-2.0.2_GH0.tar.gz) = bb3ff302baa1f60bfe16b3bd5d3967c7437e695eeae7c4550688ce57345d8d29
-SIZE (Penlect-rectangle-packer-2.0.2_GH0.tar.gz) = 98022
+TIMESTAMP = 1782232213
+SHA256 (Penlect-rectangle-packer-2.1.0_GH0.tar.gz) = 549e8b8d99b874a06f9cf878384722bd238ea736eb2f3883a14618907aad4933
+SIZE (Penlect-rectangle-packer-2.1.0_GH0.tar.gz) = 7534015
diff --git a/math/py-rectangle-packer/files/patch-pyproject.toml b/math/py-rectangle-packer/files/patch-pyproject.toml
new file mode 100644
index 000000000000..b21b3150fba3
--- /dev/null
+++ b/math/py-rectangle-packer/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
+--- pyproject.toml.orig 2026-06-23 16:33:51 UTC
++++ pyproject.toml
+@@ -1,6 +1,6 @@ requires = [
+ [build-system]
+ requires = [
+- "setuptools>=69",
++ "setuptools",
+ "wheel",
+ "Cython>=3.0",
+ ]
diff --git a/math/py-rectangle-packer/files/patch-setup.py b/math/py-rectangle-packer/files/patch-setup.py
new file mode 100644
index 000000000000..e8e63b408e5a
--- /dev/null
+++ b/math/py-rectangle-packer/files/patch-setup.py
@@ -0,0 +1,14 @@
+-- Exclude the "benchmark" package from installation. It is a benchmarking
+-- utility included in the source distribution but not intended to be installed
+-- as a top-level package, where it would conflict with other packages.
+--- setup.py.orig 2026-06-23 16:35:00 UTC
++++ setup.py
+@@ -37,7 +37,7 @@ setup(
+ keywords="pack rectangle packing rectangles enclosing 2D",
+ url="https://github.com/Penlect/rectangle-packer",
+ ext_modules=ext_modules,
+- packages=find_packages(exclude=("test",)),
++ packages=find_packages(exclude=("test", "benchmark")),
+ include_package_data=True,
+ python_requires=">=3.9",
+ classifiers=[