git: fe4aebafda8c - main - devel/py-optype: New port: Building Blocks for Precise & Flexible Type Hints
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jul 2026 05:20:20 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fe4aebafda8c016259a64744fce859488d47a81c
commit fe4aebafda8c016259a64744fce859488d47a81c
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-09 00:59:45 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-09 05:20:14 +0000
devel/py-optype: New port: Building Blocks for Precise & Flexible Type Hints
---
devel/Makefile | 1 +
devel/py-optype/Makefile | 25 +++++++++++++++++++++++++
devel/py-optype/distinfo | 3 +++
devel/py-optype/pkg-descr | 4 ++++
4 files changed, 33 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index e1a29b25020a..63acd758e922 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5556,6 +5556,7 @@
SUBDIR += py-opster
SUBDIR += py-optik
SUBDIR += py-optree
+ SUBDIR += py-optype
SUBDIR += py-orca
SUBDIR += py-ordered-set
SUBDIR += py-ordereddict
diff --git a/devel/py-optype/Makefile b/devel/py-optype/Makefile
new file mode 100644
index 000000000000..b6b8cb1889d8
--- /dev/null
+++ b/devel/py-optype/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= optype
+PORTVERSION= 0.18.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Building Blocks for Precise & Flexible Type Hints
+WWW= https://github.com/jorenham/optype/
+
+LICENSE= MIT
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}uv-build>0:devel/py-uv-build@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.10:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 concurrent autoplist
+
+NO_ARCH= yes
+
+post-extract:
+ @${REINPLACE_CMD} -e 's/^license = "\([^"]*\)"/license = {text = "\1"}/' -e '/^license-files/d' ${WRKSRC}/pyproject.toml
+
+.include <bsd.port.mk>
diff --git a/devel/py-optype/distinfo b/devel/py-optype/distinfo
new file mode 100644
index 000000000000..9f89602db54b
--- /dev/null
+++ b/devel/py-optype/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783064071
+SHA256 (optype-0.18.0.tar.gz) = ea10dee61b15ca299ed0d97025d362585c4dfc5481159bb999a1d0d414bbcb04
+SIZE (optype-0.18.0.tar.gz) = 59967
diff --git a/devel/py-optype/pkg-descr b/devel/py-optype/pkg-descr
new file mode 100644
index 000000000000..e4931a2a4294
--- /dev/null
+++ b/devel/py-optype/pkg-descr
@@ -0,0 +1,4 @@
+Optype provides building blocks for precise and flexible type hints in
+Python. It offers utilities for creating expressive type annotations
+that go beyond the standard typing module, enabling more accurate static
+type checking and improved code documentation.