git: 754664fa6f89 - main - www/py-django-stubs-ext: Add py-django-stubs-ext 5.1.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Feb 2025 21:19:11 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=754664fa6f890d56e4f06ec21def63e0ee8ae2d6 commit 754664fa6f890d56e4f06ec21def63e0ee8ae2d6 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2025-02-07 20:08:53 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2025-02-07 21:15:50 +0000 www/py-django-stubs-ext: Add py-django-stubs-ext 5.1.2 django-stubs contains type stubs and a custom mypy plugin to provide more precise static types and type inference for Django framework. Django uses some Python "magic" that makes having precise types for some code patterns problematic. This is why we need this project. The final goal is to be able to get precise types for most common patterns. --- www/Makefile | 1 + www/py-django-stubs-ext/Makefile | 25 +++++++++++++++++++++++++ www/py-django-stubs-ext/distinfo | 3 +++ www/py-django-stubs-ext/pkg-descr | 5 +++++ 4 files changed, 34 insertions(+) diff --git a/www/Makefile b/www/Makefile index 7e99906b4163..2c6710b435cf 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1624,6 +1624,7 @@ SUBDIR += py-django-statici18n SUBDIR += py-django-staticinline SUBDIR += py-django-storages + SUBDIR += py-django-stubs-ext SUBDIR += py-django-tables2 SUBDIR += py-django-tagging SUBDIR += py-django-taggit diff --git a/www/py-django-stubs-ext/Makefile b/www/py-django-stubs-ext/Makefile new file mode 100644 index 000000000000..4c58c967fe1e --- /dev/null +++ b/www/py-django-stubs-ext/Makefile @@ -0,0 +1,25 @@ +PORTNAME= django-stubs-ext +PORTVERSION= 5.1.2 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= django_stubs_ext-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Monkey-patching and extensions for django-stubs +WWW= https://github.com/typeddjango/django-stubs + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=0:www/py-django42@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/www/py-django-stubs-ext/distinfo b/www/py-django-stubs-ext/distinfo new file mode 100644 index 000000000000..f752dfe2bb69 --- /dev/null +++ b/www/py-django-stubs-ext/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1738606369 +SHA256 (django_stubs_ext-5.1.2.tar.gz) = 421c0c3025a68e3ab8e16f065fad9ba93335ecefe2dd92a0cff97a665680266c +SIZE (django_stubs_ext-5.1.2.tar.gz) = 9629 diff --git a/www/py-django-stubs-ext/pkg-descr b/www/py-django-stubs-ext/pkg-descr new file mode 100644 index 000000000000..544fd8d1f497 --- /dev/null +++ b/www/py-django-stubs-ext/pkg-descr @@ -0,0 +1,5 @@ +django-stubs contains type stubs and a custom mypy plugin to provide more +precise static types and type inference for Django framework. Django uses some +Python "magic" that makes having precise types for some code patterns +problematic. This is why we need this project. The final goal is to be able to +get precise types for most common patterns.