diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2026-07-09 00:59:45 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2026-07-09 05:20:14 +0000 |
| commit | fe4aebafda8c016259a64744fce859488d47a81c (patch) | |
| tree | 89460d34f2a08cc5a7c1fe3c514b80936c068964 | |
| parent | 761f57b3214094235529b4f41eb77faf9de385d4 (diff) | |
devel/py-optype: New port: Building Blocks for Precise & Flexible Type Hints
| -rw-r--r-- | devel/Makefile | 1 | ||||
| -rw-r--r-- | devel/py-optype/Makefile | 25 | ||||
| -rw-r--r-- | devel/py-optype/distinfo | 3 | ||||
| -rw-r--r-- | devel/py-optype/pkg-descr | 4 |
4 files changed, 33 insertions, 0 deletions
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. |
