git: 414d337b23ab - main - sysutils/py-puremagic: Update to 2.2.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Sep 2026 19:21:32 UTC
The branch main has been updated by michaelo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=414d337b23ab91883a61ad6fefcc04c4d0c4a680
commit 414d337b23ab91883a61ad6fefcc04c4d0c4a680
Author: Pete Diamond <lazeraman@gmail.com>
AuthorDate: 2026-09-21 17:57:56 +0000
Commit: Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-09-21 19:20:49 +0000
sysutils/py-puremagic: Update to 2.2.0
Co-authored-by: Michael Osipov <michaelo@FreeBSD.org>
PR: 298690
Approved by: james@french.id.au (maintainer)
---
sysutils/py-puremagic/Makefile | 12 +++++-------
sysutils/py-puremagic/distinfo | 6 +++---
sysutils/py-puremagic/files/patch-pyproject.toml | 16 ++++++++++++++++
3 files changed, 24 insertions(+), 10 deletions(-)
diff --git a/sysutils/py-puremagic/Makefile b/sysutils/py-puremagic/Makefile
index 1b8056569e9d..cf1bfa3aeac4 100644
--- a/sysutils/py-puremagic/Makefile
+++ b/sysutils/py-puremagic/Makefile
@@ -1,6 +1,5 @@
PORTNAME= puremagic
-DISTVERSION= 1.30
-PORTREVISION= 1
+DISTVERSION= 2.2.0
CATEGORIES= sysutils python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,14 +11,13 @@ WWW= https://pypi.org/project/puremagic/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
USES= python
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517 pytest
NO_ARCH= yes
-do-test:
- cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= test/
-
.include <bsd.port.mk>
diff --git a/sysutils/py-puremagic/distinfo b/sysutils/py-puremagic/distinfo
index 806fde130ac6..feec3b48347f 100644
--- a/sysutils/py-puremagic/distinfo
+++ b/sysutils/py-puremagic/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1774498109
-SHA256 (puremagic-1.30.tar.gz) = f9ff7ac157d54e9cf3bff1addfd97233548e75e685282d84ae11e7ffee1614c9
-SIZE (puremagic-1.30.tar.gz) = 314785
+TIMESTAMP = 1789698680
+SHA256 (puremagic-2.2.0.tar.gz) = eb4bddf07c177c4b434554b92165b67449f5a51e152b976202d6254498810eef
+SIZE (puremagic-2.2.0.tar.gz) = 1189752
diff --git a/sysutils/py-puremagic/files/patch-pyproject.toml b/sysutils/py-puremagic/files/patch-pyproject.toml
new file mode 100644
index 000000000000..32a3fe560c7f
--- /dev/null
+++ b/sysutils/py-puremagic/files/patch-pyproject.toml
@@ -0,0 +1,16 @@
+--- pyproject.toml.orig 2026-04-08 01:39:44 UTC
++++ pyproject.toml
+@@ -6,11 +6,11 @@ readme = "README.rst"
+ name = "puremagic"
+ description = "Pure python implementation of magic file detection"
+ readme = "README.rst"
+-license = "MIT"
++license = { text = "MIT" }
+ authors = [
+ { name = "Chris Griffith", email = "chris@cdgriffith.com" },
+ ]
+-requires-python = ">=3.12"
++requires-python = ">=3.10"
+ classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Intended Audience :: Developers",