git: 772a759e8fbc - main - devel/py-pytokens: Update to 0.4.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Feb 2026 05:18:41 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=772a759e8fbcf6657c1b546c92d951158f681542
commit 772a759e8fbcf6657c1b546c92d951158f681542
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-02-03 04:44:43 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-02-03 05:09:45 +0000
devel/py-pytokens: Update to 0.4.1
Changes: https://github.com/tusharsadhwani/pytokens/commits/main
---
devel/py-pytokens/Makefile | 10 +++++++---
devel/py-pytokens/distinfo | 6 +++---
devel/py-pytokens/files/patch-pyproject.toml | 11 +++++++++++
3 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/devel/py-pytokens/Makefile b/devel/py-pytokens/Makefile
index 8bf1fc0f7cfa..c714a43bcaf4 100644
--- a/devel/py-pytokens/Makefile
+++ b/devel/py-pytokens/Makefile
@@ -1,5 +1,5 @@
PORTNAME= pytokens
-PORTVERSION= 0.3.0
+PORTVERSION= 0.4.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +11,16 @@ WWW= https://github.com/tusharsadhwani/pytokens
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mypy>=0:devel/py-mypy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent pep517
-NO_ARCH= yes
+MAKE_ENV= PYTOKENS_USE_MYPYC=1
+
+post-install:
+ ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
.include <bsd.port.mk>
diff --git a/devel/py-pytokens/distinfo b/devel/py-pytokens/distinfo
index e6b337293665..7af51eb97722 100644
--- a/devel/py-pytokens/distinfo
+++ b/devel/py-pytokens/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1763853128
-SHA256 (pytokens-0.3.0.tar.gz) = 2f932b14ed08de5fcf0b391ace2642f858f1394c0857202959000b68ed7a458a
-SIZE (pytokens-0.3.0.tar.gz) = 17644
+TIMESTAMP = 1769874368
+SHA256 (pytokens-0.4.1.tar.gz) = 292052fe80923aae2260c073f822ceba21f3872ced9a68bb7953b348e561179a
+SIZE (pytokens-0.4.1.tar.gz) = 23015
diff --git a/devel/py-pytokens/files/patch-pyproject.toml b/devel/py-pytokens/files/patch-pyproject.toml
new file mode 100644
index 000000000000..34ad955832e7
--- /dev/null
+++ b/devel/py-pytokens/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2026-01-30 00:50:45 UTC
++++ pyproject.toml
+@@ -37,7 +37,7 @@ dev = [
+ ]
+
+ [build-system]
+-requires = ["setuptools>=69", "wheel", "mypy"]
++requires = ["setuptools>=61", "wheel", "mypy"]
+ build-backend = "setuptools.build_meta"
+
+ [tool.setuptools]